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
{{ message }}
Repository navigation
Commit f0ed27d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: examples/official-site/sqlpage/migrations/01_documentation.sql
-96Lines changed: 0 additions & 96 deletions
Original file line number
Diff line number
Diff line change
@@ -138,102 +138,6 @@ INSERT INTO example(component, description, properties) VALUES
138
138
{"title": "Encyclopedia", "link":"https://wikipedia.org", "description": "Wikipedia", "color": "blue", "icon":"world", "footer": "Owned by the Wikimedia Foundation"}
139
139
]'));
140
140
141
-
INSERT INTO component(name, icon, description) VALUES
142
-
('chart', 'timeline', 'A component that plots data. Line, area, bar, and pie charts are all supported. Each item in the component is a data point in the graph.');
('title', 'The name of the chart.', 'TEXT', TRUE, TRUE),
147
-
('type', 'The type of chart. One of: "line", "area", "bar", "column", "pie", "scatter", "bubble", "heatmap", "rangeBar", or "treemap". "column" is a synonym of "bar".', 'TEXT', TRUE, FALSE),
148
-
('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),
149
-
('xmin', 'The minimal value for the x-axis. When time is true, this can be a date or timestamp.', 'TEXT', TRUE, TRUE),
150
-
('xmax', 'The maximum value for the x-axis. When time is true, this can be a date or timestamp.', 'TEXT', TRUE, TRUE),
151
-
('ymin', 'The minimal value for the y-axis.', 'REAL', TRUE, TRUE),
152
-
('ymax', 'The maximum value for the y-axis.', 'REAL', TRUE, TRUE),
153
-
('xtitle', 'Title of the x axis, displayed below it.', 'TEXT', TRUE, TRUE),
154
-
('ytitle', 'Title of the y axis, displayed to its left.', 'TEXT', TRUE, TRUE),
155
-
('ztitle', 'Title of the z axis, displayed in tooltips.', 'TEXT', TRUE, TRUE),
156
-
('xticks', 'Number of intervals used to generate a numeric x-axis, normally producing one more tick position. On category and time axes, this is a target for label density, so the visible label count may differ.', 'INTEGER', TRUE, TRUE),
157
-
('yticks', 'Number of ticks on the y axis.', 'INTEGER', TRUE, TRUE),
158
-
('ystep', 'Step between ticks on the y axis.', 'REAL', TRUE, TRUE),
159
-
('marker', 'Marker size', 'REAL', TRUE, TRUE),
160
-
('labels', 'Whether to show the data labels on the chart or not.', 'BOOLEAN', TRUE, TRUE),
161
-
('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),
162
-
('stacked', 'Whether to cumulate values from different series. Supported by the "line", "area" and "bar" chart types, and ignored by the others. Series are aligned on their x values, and a series that has no value for a given x counts as zero there.', 'BOOLEAN', TRUE, TRUE),
163
-
('toolbar', 'Whether to display a toolbar at the top right of the chart, that offers downloading the data as CSV.', 'BOOLEAN', TRUE, TRUE),
164
-
('show_legend', 'Whether to display the legend listing all chart series. Defaults to true.', 'BOOLEAN', TRUE, TRUE),
165
-
('logarithmic', 'Display the y-axis in logarithmic scale.', 'BOOLEAN', TRUE, TRUE),
166
-
('horizontal', 'Displays a bar chart with horizontal bars instead of vertical ones.', 'BOOLEAN', TRUE, TRUE),
167
-
('height', 'Height of the chart, in pixels. By default: 250', 'INTEGER', TRUE, TRUE),
168
-
-- item level
169
-
('x', 'The value of the point on the horizontal axis. Numeric values use continuous, proportionate positioning; text values are evenly spaced categories. Set the top-level time property for dates and timestamps.', 'REAL', FALSE, FALSE),
170
-
('y', 'The value of the point on the vertical axis', 'REAL', FALSE, FALSE),
171
-
('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),
172
-
('link', 'A URL to open when the data point is clicked. The tooltip value also links to the point, as does a text x value when shown as the tooltip title.', 'URL', FALSE, TRUE),
173
-
('label', 'An alias for parameter "x". On a row that draws a reference line, the text to display next to the line. Labels are plain text; HTML markup is displayed literally.', 'TEXT', FALSE, TRUE),
174
-
('value', 'An alias for parameter "y"', 'REAL', FALSE, TRUE),
175
-
('series', 'If multiple series are represented and share the same y-axis, this parameter can be used to distinguish between them. Series names are plain text; HTML markup is displayed literally.', 'TEXT', FALSE, TRUE),
176
-
('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),
177
-
('yline_end', 'Makes the yline a band instead of a line, reaching to this value.', 'REAL', FALSE, TRUE),
178
-
('xline', 'Draws a reference line across the chart at this position of the x axis instead of plotting a point, to mark an event such as a deployment. A date or a timestamp when time is set, otherwise one of the x values.', 'TEXT', FALSE, TRUE),
179
-
('xline_end', 'Makes the xline a band instead of a line, reaching to this value.', 'TEXT', FALSE, TRUE),
180
-
('color', 'The name of a color for what this row draws: the bar, slice or point it plots, or the reference line it draws. Defaults to the color of the series for a data point, and to grey for a reference line.', 'COLOR', FALSE, TRUE)
181
-
) x;
182
-
INSERT INTO example(component, description, properties) VALUES
183
-
('chart', 'An area chart representing a time series, using the top-level property `time`.
184
-
Ticks on the x axis are adjusted automatically, and ISO datetimes are parsed and displayed in a readable format.', json('[
185
-
{
186
-
"component": "chart",
187
-
"title": "Quarterly Revenue",
188
-
"type": "area",
189
-
"color": "blue-lt",
190
-
"marker": 5,
191
-
"time": true
192
-
},
193
-
{"x":"2022-01-01T00:00:00Z","y":15},
194
-
{"x":"2022-04-01T00:00:00Z","y":46},
195
-
{"x":"2022-07-01T00:00:00Z","y":23},
196
-
{"x":"2022-10-01T00:00:00Z","y":70},
197
-
{"x":"2023-01-01T00:00:00Z","y":35},
198
-
{"x":"2023-04-01T00:00:00Z","y":106},
199
-
{"x":"2023-07-01T00:00:00Z","y":53}
200
-
]')),
201
-
('chart', 'A pie chart.', json('[{"component":"chart", "title": "Answers", "type": "pie", "labels": true},
('chart', 'A TreeMap Chart allows you to display hierarchical data in a nested layout. This is useful for visualizing the proportion of each part to the whole.',
208
-
json('[
209
-
{"component":"chart", "type": "treemap", "title": "Quarterly Results By Region (in k$)", "labels": true },
0 commit comments