Angular Data GridChart Tool Panels

Enterprise

The Chart Tool Panels allow users to change the selected chart type and customise the data and chart formatting.

The Chart Tool Panels are accessed by selecting Edit Chart from the Chart Menu in the top-right corner of the chart. Note they can also be opened via configuration (see examples in this section), or programmatically through the Grid API, see Open / Close Chart Tool Panels.

Chart Tool Panel

The Chart Panel can be used to change the chart type and chart theme.

Chart Settings Panel

Chart Panel

It is possible to configure which chart groups and chart types are included and in which order via the chartToolPanelsDef grid option:

Note that the Chart Panel key is settingsPanel.

The full list of chart groups with the corresponding chart types are shown below:

The contents and order of chart menu items in the Context Menu will match the ChartGroupsDef configuration.

The example below shows a subset of the provided chart groups with the chart types reordered. Note the following:

  • Only the Pie, Columns and Bar chart groups are shown in the chart panel.
  • Only the Pie, Columns and Bar chart groups are shown in the Context Menu when you right click the grid.
  • Note the order of the chart groups and their chart types matches the order they are specified in chartGroupsDef.
  • The Chart Panel is configured to be open by default via defaultToolPanel: 'settings'.

Set Up Tool Panel

The Set Up Panel can be used to change the chart category and series. It is not applicable for Pivot Charts.

Chart Set Up Panel

Chart Set Up Panel

It is possible to configure which groups are shown, the order in which they appear and whether they are opened by default via the chartToolPanelsDef grid option:

Note that the Set Up Panel key is dataPanel.

The default list and order of the Set Up Panel groups are as shown below:

<ag-grid-angular
    [chartToolPanelsDef]="chartToolPanelsDef"
    /* other grid options ... */ />

this.chartToolPanelsDef = {
    dataPanel: {
        groups: [
            { type: 'categories', isOpen: true },
            { type: 'series', isOpen: true },
            { type: 'seriesChartType', isOpen: true }
        ]
    }
};

The seriesChartType group is only shown in Combination Charts.

The following example shows some Set Up Panel customisations. Note the following:

  • The Categories group is not included.
  • The Series group is closed by default.
  • The Set Up Panel is configured to be open by default via defaultToolPanel: 'data'.

Customize Tool Panel

The Customize Panel allows users to format the chart where the available formatting options differ between chart types.

Chart Customize Panel

Chart Customize Panel

It is possible to configure which groups are shown, the order in which they appear and whether they are opened by default via the chartToolPanelsDef grid option: