Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
ChartJS PHP
Create charts in code for Drupal 8/9
How to use
Add js library to page
'#attached' => [
'library' => [
'charts_js_php/chart'
]
]
To use chart in twig ensure you use the raw function
{{ chart|raw }}
Documentation
Full documentation is available at Charts.js website. There you can find what type of charts and associated properties are available.
Project information
- Module categories: Content Display
- Created by callum_speirs on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.