Closed
Description
I am using ng2-charts in our Angular application. It is working well so far. But run through the document, there is one line that you guys mention that Important
Embedding Chart.js in application is mandatory!
I checked the source of the file "node_modules/chart.js/src/chart.js". So basically it will contain all the CommonJS module, and it doesn't work on browser for sure.
/**
* @namespace Chart
*/
var Chart = require('./core/core')();
Chart.helpers = require('./helpers/index');
// @todo dispatch these helpers into appropriated helpers/helpers.* file and write unit tests!
require('./core/core.helpers')(Chart);
Chart.defaults = require('./core/core.defaults');
........
So my question is: Is this step required? If not, please remove it from the documentation. Otherwise people will be confused.
Metadata
Metadata
Assignees
Labels
No labels