Extensions & Integrations
Chart.js extension
This extension adds Chart.js functionality to your ApostropheCMS pages through a new widget and data-set piece type. You can easily add line, bar, scatter, bubble, pie, and doughnut charts.
>
npm i @bodonkey/charting-extension
This bundle of two extensions adds a new chart data piece-type to upload data sets for charting, as well as a chart widget to allow addition of a number of different chart types to your ApostropheCMS pages.
Installation
To install the module, use the command line to run this command in an Apostrophe project's root directory:
npm install @bodonkey/charting-extension
Usage
Add the bundle and individual extensions in the app.js
file:
require('apostrophe')({
shortName: 'my-project',
bundle: [ '@bodonkey/charting-extension' ],
modules: {
'chart-data': {},
'chart-widget': {}
}
});
The chart-data module will add a new piece-type for adding CSV data sets to your project. Data from these sets can then be used with the chart-widget that you can add to any area.