Charting

View as Markdown

Summary

  • AdapTable works with AG Grid Charts (Enterprise) and optional external chart libraries
  • AdapTable adds persistence in Adaptable State, named chart definitions, custom display locations, layout-driven opening, UI entitlements, and external-chart integration
  • Run-time behaviour is covered in Using Charts; design-time setup in Configuring Charts

AdapTable fully supports AG Grid charting and adds features around chart accessibility, persistence, and placement.

Topics in this Section

Using Charts

  • Save, open, close, edit, and delete charts at run time
  • Read-only chart definitions
  • Re-open charts after restart (Application State)

Configuring Charts

  • Chart definitions and chart containers
  • Open charts on startup and when layouts change
  • Multiple charts in one container

External Chart Libraries

  • Highcharts and other libraries
  • External definitions in State
  • Custom chart containers

Charts Technical Reference

  • Charting State and Options
  • Charting API
  • External charting callbacks

Setup

Integrated AG Grid charts require Enterprise chart modules and enableCharts on gridOptions:

  • Register IntegratedChartsModule with AgChartsEnterpriseModule — see AG Grid Modules
  • Set enableCharts: true (and usually cellSelection: true) in gridOptions

External charting does not use AG Grid integrated charts; see External Chart Libraries.

Saving Charts

Charts created in AG Grid can be saved into Adaptable State.

The saveChartBehaviour property in Charting Options has 3 potential values:

  • auto: all created charts are saved automatically in Adaptable State
  • manual: a popup is shown prompting the user to save the chart and provide a name
  • none: charts are not saved into AdapTable State (the default value)

Find Out More

See Using Charts for run-time saving, opening, and managing charts

Saving AG Grid Charts
Fork
  • This demo shows how straightforward it is to save AG Grid Charts in AdapTable
  • Because saveChartBehaviour in Charting Options is set to manual, a Notification appears when creating a Chart
  • Any charts which are created will then appear in the Charts Toolbar, Tool Panel and Status Panel where they can be re-opened if required
Try It Out
  • Create a chart using the currently selected cells and give it a name in the popup provided
  • Close the chart and see that you can open it again at any time using the Charts Toolbar
Loading demo…

Displaying Charts

AdapTable can be configured to display charts in various locations provided by users.

There is no restriction on the number of Charts which can be displayed in each location.

Find Out More

See Configuring Charts for more information and accompanying demos

External Charts

AdapTable supports both AG Grid Charts (the most common use case) and External Charts.

Developers are able to provide their own charts, and use AdapTable to save and re-render them as required.

Find Out More

See External Chart Libraries for full details

Cross Filter Charts

Cross Filtering Charts is semi-supported in AdapTable.

Changing a Filter in AdapTable will update the Chart; however changing the chart will not update the Filter.

Note

Filtering the grid from chart interactions is not supported today

Cross Filter Charts
Fork
  • Two linked charts are opened when AdapTable loads; grid filters drive the chart data
Try It Out
  • Filter the Language and License columns and see the Charts update
  • Note: Changing the Chart will not filter the Grid
Loading demo…

UI Entitlements

The UI Entitlements behaviour for Charts is as expected for Full and Hidden Access Levels.

The ReadOnly Entitlement behaviour is that Charts will display, and users can create AG Grid charts, but will not be permitted to save them.

See Module Entitlements for Charting module access.

FAQ

Can I save Charts into AdapTable State? Yes — set saveChartBehaviour to manual or auto in Charting Options. This capability was introduced in AdapTable Version 12.

Where do I configure chart locations and design-time definitions? See Configuring Charts.

Can I use Highcharts or another library instead of AG Grid Charts? Yes — see External Chart Libraries.

Where are Options, State, and API documented? See Charts Technical Reference.