Out-of-the-box examples

Last updated on
25 March 2018

This is documentation for Drupal 7, which is no longer supported. Learn more and find resources for Drupal 7 sites

The following only applies to Charts 7.x. This was taken out for Drupal 8.x.

By simply installing the charts module, and without any additional configuration, a new view is added to your site that contains 2 examples of creating a chart using the views UI (user interface) to create charts.

You can see the charts created via this new view in your own site by navigating to charts/examples or by using a menu link with a title like Charts examples. After doing so, a page is shown with 2 sub-menu tabs:

  • the 1st tab is titled Built-in examples (this example is used to showcase Using the Charts API). Visit the Charts demo site for an online preview of it.
  • the 2nd tab is titled Views example, and is what is created from the new view created during the installation of the charts module. As an alternative to using this tab, just navigate to charts/examples/views in your site. You should then see a column chart and a pie chart, which are followed by a tabular display also. Both charts and the table display contain data about the total number of nodes for each of the available content types. Visit the Charts demo site for an online preview of it.

Assuming you're authorized (by your site admin) to do so, use the link to edit the view, via a link like /admin/structure/views/view/charts_demo/edit/page). Via the typical views UI, you will then see the magic about the 2 displays of this view, created by the charts module, i.e.:

  • The Column chart, attached before the page display of the view.
  • The Pie chart, attached before the page display of the view.

Help improve this page

Page status: No known problems

You can: