highcharts-commonjs

v4.1.7-1
Create interactive charts easily for your web projects.
highcharts

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);
npm i highcharts-commonjs

Metadata

Downloads

Maintainers