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
@@ -14,6 +14,7 @@
14
14
-`stacked` is now ignored on chart types that cannot stack, instead of displaying an empty chart.
15
15
- Screen readers now announce the title of the modal component instead of an unnamed dialog.
16
16
-`sqlpage.request_body` and `sqlpage.request_body_base64` now return NULL when the request has no body. A body that cannot be read, such as one exceeding the payload limit, is now reported as an error instead of being silently replaced with an empty body.
17
+
- 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
@@ -687,7 +687,10 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
687
687
('z', 'A third value carried by the point. Used as the bubble radius in a bubble chart, and shown in the tooltip under the name given by the top-level "ztitle".', 'REAL', FALSE, TRUE),
688
688
('label', 'An alias for parameter "x"', 'REAL', FALSE, TRUE),
689
689
('value', 'An alias for parameter "y"', 'REAL', FALSE, TRUE),
690
-
('series', 'If multiple series are represented and share the same y-axis, this parameter can be used to distinguish between them.', 'TEXT', FALSE, TRUE)
690
+
('series', 'If multiple series are represented and share the same y-axis, this parameter can be used to distinguish between them.', 'TEXT', FALSE, TRUE),
691
+
('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),
692
+
('yline_label', 'A text to display next to the yline.', 'TEXT', FALSE, TRUE),
693
+
('yline_color', 'The name of a color for the yline. Grey by default.', 'COLOR', FALSE, TRUE)
691
694
) x;
692
695
INSERT INTO example(component, description, properties) VALUES
693
696
('chart', 'An area chart representing a time series, using the top-level property `time`.
@@ -792,6 +795,65 @@ The `color` property sets the color of each series separately, in order.
0 commit comments