3.3.3.6 <chart> Control

Displays a chart (line, bar, pie) from a dataset.

<chart
    name="productsPerCategory"
    type="bar"
    dataset="productsPerCategory"
    width="1/1"
    xField="name"
    xLabel="Category"
    yField="countProductsPerCategory"
    yLabel="Product Count"
>
    <label>Products per Category</label>
</chart>
  • name: Required. Unique control name.

  • type: Required. The chart type (e.g., bar, line, pie).

  • dataset: Required. The <dataset> name from which data is pulled.

  • width: Optional. UI width hint.

  • xField, xLabel, yField, yLabel: Required. Defines the axis fields and labels.

  • <label>: Required. The label displayed above the chart.

Last updated