Skip to content

Commit 6ae4f35

Browse files
committed
Updating parameter types for "chart"
I think that all updated types, except for "xticks", should be labeled as REAL.
1 parent 7864bcf commit 6ae4f35

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CREATE TABLE parameter_type(
99
name TEXT PRIMARY KEY
1010
);
1111
INSERT INTO parameter_type(name) VALUES
12-
('BOOLEAN'), ('COLOR'), ('HTML'), ('ICON'), ('INTEGER'), ('JSON'), ('NUMBER'), ('REAL'), ('TEXT'), ('TIMESTAMP'), ('URL');
12+
('BOOLEAN'), ('COLOR'), ('HTML'), ('ICON'), ('INTEGER'), ('JSON'), ('REAL'), ('TEXT'), ('TIMESTAMP'), ('URL');
1313

1414
CREATE TABLE parameter(
1515
top_level BOOLEAN DEFAULT FALSE,
@@ -473,14 +473,14 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
473473
('title', 'The name of the chart.', 'TEXT', TRUE, TRUE),
474474
('type', 'The type of chart: "line", "area", "bar", "column", "pie", "scatter", "bubble", or "heatmap".', 'TEXT', TRUE, FALSE),
475475
('time', 'Whether the x-axis represents time. If set to true, the x values will be parsed and formatted as dates for the user.', 'BOOLEAN', TRUE, TRUE),
476-
('ymin', 'The minimal value for the y-axis.', 'NUMBER', TRUE, TRUE),
477-
('ymax', 'The maximum value for the y-axis.', 'NUMBER', TRUE, TRUE),
476+
('ymin', 'The minimal value for the y-axis.', 'REAL', TRUE, TRUE),
477+
('ymax', 'The maximum value for the y-axis.', 'REAL', TRUE, TRUE),
478478
('xtitle', 'Title of the x axis, displayed below it.', 'TEXT', TRUE, TRUE),
479479
('ytitle', 'Title of the y axis, displayed to its left.', 'TEXT', TRUE, TRUE),
480480
('ztitle', 'Title of the z axis, displayed in tooltips.', 'TEXT', TRUE, TRUE),
481-
('xticks', 'Number of ticks on the x axis.', 'NUMBER', TRUE, TRUE),
482-
('ystep', 'Step between ticks on the y axis.', 'NUMBER', TRUE, TRUE),
483-
('marker', 'Marker size', 'NUMBER', TRUE, TRUE),
481+
('xticks', 'Number of ticks on the x axis.', 'INTEGER', TRUE, TRUE),
482+
('ystep', 'Step between ticks on the y axis.', 'REAL', TRUE, TRUE),
483+
('marker', 'Marker size', 'REAL', TRUE, TRUE),
484484
('labels', 'Whether to show the data labels on the chart or not.', 'BOOLEAN', TRUE, TRUE),
485485
('color', 'The name of a color in which to display the chart. If there are multiple series in the chart, this parameter can be repeated multiple times.', 'COLOR', TRUE, TRUE),
486486
('stacked', 'Whether to cumulate values from different series.', 'BOOLEAN', TRUE, TRUE),
@@ -489,10 +489,10 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S
489489
('horizontal', 'Displays a bar chart with horizontal bars instead of vertical ones.', 'BOOLEAN', TRUE, TRUE),
490490
('height', 'Height of the chart, in pixels. By default: 250', 'INTEGER', TRUE, TRUE),
491491
-- item level
492-
('x', 'The value of the point on the horizontal axis', 'NUMBER', FALSE, FALSE),
493-
('y', 'The value of the point on the vertical axis', 'NUMBER', FALSE, FALSE),
494-
('label', 'An alias for parameter "x"', 'NUMBER', FALSE, TRUE),
495-
('value', 'An alias for parameter "y"', 'NUMBER', FALSE, TRUE),
492+
('x', 'The value of the point on the horizontal axis', 'REAL', FALSE, FALSE),
493+
('y', 'The value of the point on the vertical axis', 'REAL', FALSE, FALSE),
494+
('label', 'An alias for parameter "x"', 'REAL', FALSE, TRUE),
495+
('value', 'An alias for parameter "y"', 'REAL', FALSE, TRUE),
496496
('series', 'If multiple series are represented and share the same y-axis, this parameter can be used to distinguish between them.', 'TEXT', FALSE, TRUE)
497497
) x;
498498
INSERT INTO example(component, description, properties) VALUES

0 commit comments

Comments
 (0)