Skip to content

Commit 2cddbd7

Browse files
committed
chart example
see #324 (comment)
1 parent ec95147 commit 2cddbd7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/official-site/sqlpage/migrations/01_documentation.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,14 @@ INSERT INTO example(component, description, properties) VALUES
517517
'{"series": "Marketing", "x": 2022, "value": 15}, '||
518518
'{"series": "Human resources", "x": 2021, "value": 30}, '||
519519
'{"series": "Human resources", "x": 2022, "value": 55}]')),
520+
('chart', 'A line chart with multiple series.', json('[{"component":"chart", "title": "Revenue", "ymin": 0},
521+
{"series": "Chicago Store", "x": 2021, "value": 35},
522+
{"series": "Chicago Store", "x": 2022, "value": 15},
523+
{"series": "Chicago Store", "x": 2023, "value": 45},
524+
{"series": "New York Store", "x": 2021, "value": 30},
525+
{"series": "New York Store", "x": 2022, "value": 55},
526+
{"series": "New York Store", "x": 2023, "value": 19}
527+
]')),
520528
('chart', 'A scatter plot with multiple custom options.',
521529
json('[
522530
{"component":"chart", "title": "Gross domestic product and its growth", "type": "scatter",

0 commit comments

Comments
 (0)