Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

ChartJS API

No security coverage Maintenance fixes only 855 sites

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/

Drupal 10–11

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

Activity

Tracked releases
3
Tracked since
Jan 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0 Stable 10–11 Aug 20, 2024
2.x-dev Dev 10–11 Feb 20, 2024
2.0.0-rc0 Pre-release 10 Jan 15, 2024