Skip to content

Commit feb899c

Browse files
committed
document the height property of charts
see #270
1 parent 91a1433 commit feb899c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
475475
('toolbar', 'Whether to display a toolbar at the top right of the chart, that offers downloading the data as CSV.', 'BOOLEAN', TRUE, TRUE),
476476
('logarithmic', 'Display the y-axis in logarithmic scale.', 'BOOLEAN', TRUE, TRUE),
477477
('horizontal', 'Displays a bar chart with horizontal bars instead of vertical ones.', 'BOOLEAN', TRUE, TRUE),
478+
('height', 'Height of the chart, in pixels. By default: 250', 'INTEGER', TRUE, TRUE),
478479
-- item level
479480
('x', 'The value of the point on the horizontal axis', 'NUMBER', FALSE, FALSE),
480481
('y', 'The value of the point on the vertical axis', 'NUMBER', FALSE, FALSE),
@@ -514,7 +515,7 @@ INSERT INTO example(component, description, properties) VALUES
514515
('chart', 'A scatter plot with multiple custom options.',
515516
json('[
516517
{"component":"chart", "title": "Gross domestic product and its growth", "type": "scatter",
517-
"xtitle": "Growth Rate", "ytitle": "GDP (Trillions USD)", "marker": 8,
518+
"xtitle": "Growth Rate", "ytitle": "GDP (Trillions USD)", "height": 500, "marker": 8,
518519
"xmin": 0, "xmax": 10, "ymin": 0, "ymax": 25, "yticks": 5},
519520
520521
{"series": "Brazil", "x": 2.5, "y": 2},

0 commit comments

Comments
 (0)