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.
To install the module, use the command line to run this command in an Apostrophe project's root directory:
npm install @bodonkey/charting-extension
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.