Commit c9f9b01b authored by Paul Asmuth's avatar Paul Asmuth
Browse files

add pointchart 'labels' property

parent ec368e99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ Here are some more examples of plots generated by PlotFX:
      <img src="./examples/linecharts/lines_with_points.svg">
    </td>
    <td width="50%">
      <img src="./examples/pointcharts/examples_pointchart_with_labels.png?raw=true">
      <img src="./examples/pointcharts/pointchart_with_labels.svg">
    </td>
  </tr>
  <tr>
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ plot {

  layer {
    type: labels;
    label: csv('tests/testdata/city_temperatures_london.csv', temperature_str);
    labels: csv('tests/testdata/city_temperatures_london.csv', temperature_str);
  }

  legend {
−37 KiB
Loading image diff...
+21 −0
Original line number Diff line number Diff line
width: 1200px;
height: 480px;

plot {
  data: csv('examples/data/point_example.csv');
  x: x;
  y: y;
  group: series;

  axis-y-min: -40;
  axis-y-max: 60;

  axis-x-min: -60;
  axis-x-max: 60;

  layer {
    type: points;
    sizes: z;
    labels: z;
  }
}
+0 −13
Original line number Diff line number Diff line
IMPORT TABLE example_data
   FROM 'csv:examples/data/point_example.csv?headers=true';

DRAW POINTCHART WITH
   AXIS BOTTOM
   AXIS LEFT
   AXIS TOP
   AXIS RIGHT
   YDOMAIN -40, 60
   LABELS;

SELECT series AS series, x AS x, y AS y, z as z, z as label
   FROM example_data;
Loading