Depreciated. Used only for the Query function. The relation function uses Charts.
Sofawiki includes charts from Chartist.js.
Charts are used as an output option of the Query function. The columns have to be ordered like this:
- First column are the category labels
- Second and following columns are the data series
There are bar charts, line charts and pie charts. You can customize the look with options. See the Chartist API documentation directly for the available options.
The syntax for the output option is
OUTPUT CHART (BAR|LINE|PIE} Options?
where options are in JSON style without the outer curly braces.
SELECT town, first, second, other WHERE town !0 OUTPUT CHART BAR
OUTPUT CHART BAR stackBars: true
OUTPUT CHART LINE
OUTPUT CHART LINE showLine: false
Note: Still works with categories. You cannot have a x-y dot cloud.
OUTPUT CHART PIE