Skip to main content

ChartJs

The ChartJs component allows you to display a ChartJs using the Chart.js library.


The following section details ChartJs component's specific settings. For more details on the App editor, check the dedicated documentation or the App editor Quickstart:

The configuration is divided into two parts: X-axis data and an array of datasets. Each dataset hold the data for the Y-axis and the configuration for the plot (type, color, etc).

Configuration

NameTypeConnectableTemplatableDefaultDescription
X-axis datajsontruefalse[1, 2, 3, 4]Horizontal axis values or labels that are used to plot the data points on a chart.

Dataset

For each dataset, you can specify the data for the Y-axis and the configuration for the plot (type, color, etc). If you want to have an eval for every data point, you can switch to JSON mode. There can be several datasets.

NameTypeConnectableTemplatableDefaultDescription
NamestringfalsefalseDataset 1The name of your dataset.
Datajson (int)truefalse[25, 25, 50]The actual data of your chart.

Configuration

NameTypeConnectableTemplatableDefaultDescription
TypeselecttruefalsepieThe type of chart (bar, bubble, doughnut, line, pie, polarArea, radar, scatter).
OptionsjsontruefalseChartJs options object.