For using advanced chart gadget choose it from a list.
And then fill the configuration for the new gadget on your dashboard.
See example configuration:
And it will produce following chart:
Smart QL app uses Taucharts library for gadgets. In advanced gadget you can use almost any configuration item straight from Tauchart docs, except:
Our docs describe similar topics but emphasize use only in our app. |
Configuration in a gadget has a form of a JSON formatted text and it can be fairly complex.
{ "type": "scatterplot", "x": "PROJECT", "y": "ISSUES", "plugins": [ { "name": "tooltip" }, { "name": "legend" }, { "name": "export-to" } ], "guide": { "x": { "label": { "text": "custom label" } } } } |
There are only 3 obligatory elements to fill in a configuration: x, y, and type.
Element | Notes | |
---|---|---|
x | One of the dimensions of a chart. You can fill it only with a name of a column from your view. Example:
| |
y | One of the dimensions of a chart. | |
type | Type of a chart, possible values: scatterplot, line, bar, horizontalBar, stacked-bar, horizontal-stacked-bar, stacked-area. |
Though charts are rather 2D artifacts - more dimensions can be coded into a chart by using a size of a stroke and a color.
Element | Notes |
---|---|
size | One of the dimensions of a chart. The size encodes visually:
You can use only a column dimensions of type measure in size - see more info on dimensions. |
color | One of the dimensions of a chart. |