This module integrates the ChartJS library to render graphs within Drupal. It supports standard ChartJS graph types and adds a custom "halfdonut" type for half-doughnut charts, which can also display a title within the chart.
This module provides an integration API with the ChartJS library that provides "a graph render element" for generating graphs.
In addition to the standard graphs of GraphJS, a new type called "halfdonut" is added. With this, from a doughnut type graph, "half doughnut" type graphs can be generated.
Installation and configuration
ChartJS API Plugin can be installed like any other Drupal module. Place it in the modules directory for your site and enable it on the `admin/modules` page.
This module use lastest version of ChartJS.js library from CDN.
Parameters for "render element" array:
- data: Array with labels and datasets with same structure than the ChartJS.js library.
- graph_type: Chart type (line, bar, radar, pie... and halfdonut).
- id: Unique id for chart.
- options: Array with options of ChartJS.js library, with same structure.
- plugins: Plugins to activate. This module include halfdonutTotal plugin. This plugin display the title inside half doughnut.
- type: chartjs_api
You can find more info in ChartJs documentation:
http://www.chartjs.org/docs/latest/
Ask your assistant about ChartJS API
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
1 tracked project depends on this one
- AI Webform Sentiment Analysis 1 sites