The chart visual presents the data as chart. You can choose between these types:

  • Bar Chart

  • Line Chart

  • Pie Chart

  • Doughnut Pie

  • PolarArea

  • Radar

Labels

The Lables field expects a JSONPath which results in a list of Labels

Datasets

A data set represents a set of values from your data source. Enter a JSONPath expression which results in a list of values to show in the chart.

For an example we use the following data

[{
    "id": 1,
    "name": "Product 1",
    "price": 123,
    "category": "Notebooks"
},
{
    "id": 2,
    "name": "Product 2",
    "price": 345,
    "category": "Tablets"
    }
]
CODE


So a configuration for a visual could look similar to this:

Labels: $[*].category
Dataset: $[*].price
CODE