You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
-`column` charts now display vertical bars instead of nothing at all.
13
13
-`stacked` is now ignored on chart types that cannot stack, instead of displaying an empty chart.
14
14
- Screen readers now announce the title of the modal component instead of an unnamed dialog.
15
+
- Charts can display reference lines. A row with a `yline` is drawn as a line across the chart at that value of the y axis, with `yline_label` and `yline_color` for its text and its color. Reference lines are rows, so a chart can have as many of them as the query returns. A line follows its axis, so on a `horizontal` bar chart a `yline` is drawn down the chart rather than across it. They are not added to the total of a `stacked` chart, and are not filled in an `area` chart.
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/01_documentation.sql
+63-1Lines changed: 63 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -675,7 +675,10 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
675
675
('y', 'The value of the point on the vertical axis', 'REAL', FALSE, FALSE),
676
676
('label', 'An alias for parameter "x"', 'REAL', FALSE, TRUE),
677
677
('value', 'An alias for parameter "y"', 'REAL', FALSE, TRUE),
678
-
('series', 'If multiple series are represented and share the same y-axis, this parameter can be used to distinguish between them.', 'TEXT', FALSE, TRUE)
678
+
('series', 'If multiple series are represented and share the same y-axis, this parameter can be used to distinguish between them.', 'TEXT', FALSE, TRUE),
679
+
('yline', 'Draws a reference line across the chart at this value of the y axis instead of plotting a point, to show a limit such as a quota or an alarm threshold. Not drawn if it falls outside of the axis, so set ymax when the limit is above the data.', 'REAL', FALSE, TRUE),
680
+
('yline_label', 'A text to display next to the yline.', 'TEXT', FALSE, TRUE),
681
+
('yline_color', 'The name of a color for the yline. Grey by default.', 'COLOR', FALSE, TRUE)
679
682
) x;
680
683
INSERT INTO example(component, description, properties) VALUES
681
684
('chart', 'An area chart representing a time series, using the top-level property `time`.
@@ -780,6 +783,65 @@ The `color` property sets the color of each series separately, in order.
0 commit comments