@bodonkey/charting-extension
v1.1.0
Published
An extension to add charting with chart.js to ApostropheCMS.
Downloads
13
Maintainers
Readme
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.