Charts Overview

Last updated on
26 October 2018

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

Pie charts created with Google Chart or Highcharts

Charts module was built to unify all chart solutions into one single environment. With no or minimal changes, you will be able to switch charting libraries, such as from Google Charts to Highcharts (as of 7.x-2.x) or to Open Flash Chart (7.x-1.x only) or FusionCharts (7.x-1.x only). To accomplish that, a single chart data structure is used that is translated for each library to its specific options (parameters). You can even add support for yet another (your "own") charting library.

Various options are available to actually create charts via the charts module:

  1. Use the charts module directly e.g. to create a chart as part of the body of a node (using data that are hard-coded in such node).
  2. It can be used as a views style (views integration).
  3. Take advantage of the charts API to integrate it into your module, using a single function as the point of contact: charts_chart();.
  4. Visualize data stored in a database table (more dynamically), as explained in Chart some data stored in a database table (dynamically).

Note: please be aware that the charts documentation needs some major rework / enhancements, as mentioned also in #2231961: Enhance Charts documentation.

Help improve this page

Page status: No known problems

You can: