highcharts-commonjs
v4.1.7-1
Published
Create interactive charts easily for your web projects.
Downloads
28
Readme
Highcharts Wrapper for CommonJS
Example Usage
'use strict';
var Highcharts = require('highcharts-commonjs');
var someDOMDiv = ...;
// create chart
var chart = Highcharts.createChart(
// dom element to inject the chart
someDOMDiv,
// highcharts options
{
title: {
text: 'My chart'
},
...
},
// callback, called when initialization of chart is done
function() {
console.log('Chart initialized');
}
);
...
// destroy chart
Highcharts.destroy(chart);