Skip to content
Official shim repo for Highcharts releases
Branch: master
Clone or download
Latest commit 8c6661a Apr 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css v7.1.1 Apr 9, 2019
es-modules v7.1.1 Apr 9, 2019
gfx v7.0.0 Dec 11, 2018
indicators v7.1.1 Apr 9, 2019
lib v7.0.3 Feb 6, 2019
modules v7.1.1 Apr 9, 2019
themes v7.1.1 Apr 9, 2019
.gitignore v4.1.6 Jun 15, 2015
README.md Update README.md Jan 25, 2019
bower.json v7.1.1 Apr 9, 2019
globals.d.ts v7.1.0 Apr 1, 2019
globals.src.d.ts v7.1.0 Apr 1, 2019
highcharts-3d.d.ts v7.1.0 Apr 1, 2019
highcharts-3d.js v7.1.1 Apr 9, 2019
highcharts-3d.js.map v7.1.0 Apr 1, 2019
highcharts-3d.src.d.ts v7.1.0 Apr 1, 2019
highcharts-3d.src.js v7.1.1 Apr 9, 2019
highcharts-gantt.d.ts v7.1.0 Apr 1, 2019
highcharts-gantt.js v7.1.1 Apr 9, 2019
highcharts-gantt.js.map v7.1.1 Apr 9, 2019
highcharts-gantt.src.d.ts v7.1.0 Apr 1, 2019
highcharts-gantt.src.js v7.1.1 Apr 9, 2019
highcharts-more.d.ts v7.1.1 Apr 9, 2019
highcharts-more.js v7.1.1 Apr 9, 2019
highcharts-more.js.map v7.1.1 Apr 9, 2019
highcharts-more.src.d.ts v7.1.1 Apr 9, 2019
highcharts-more.src.js v7.1.1 Apr 9, 2019
highcharts.d.ts v7.1.1 Apr 9, 2019
highcharts.js v7.1.1 Apr 9, 2019
highcharts.js.map v7.1.1 Apr 9, 2019
highcharts.src.d.ts v7.1.1 Apr 9, 2019
highcharts.src.js v7.1.1 Apr 9, 2019
highmaps.d.ts v7.1.0 Apr 1, 2019
highmaps.js v7.1.1 Apr 9, 2019
highmaps.js.map v7.1.1 Apr 9, 2019
highmaps.src.d.ts v7.1.0 Apr 1, 2019
highmaps.src.js v7.1.1 Apr 9, 2019
highstock.d.ts v7.1.0 Apr 1, 2019
highstock.js v7.1.1 Apr 9, 2019
highstock.js.map v7.1.1 Apr 9, 2019
highstock.src.d.ts v7.1.0 Apr 1, 2019
highstock.src.js v7.1.1 Apr 9, 2019
package.json v7.1.1 Apr 9, 2019

README.md

Highcharts is a JavaScript charting library based on SVG, with fallbacks to VML and canvas for old browsers. This package also contains Highstock, the financial charting package, and Highmaps for geo maps.

This package is intended for supporting client-side JavaScript charting through bundlers like Parcel or Webpack and environments like Babel or TypeScript. If you indend to generate static charts on the server side, use the Highcharts node.js Export Server instead.

Download and install Highcharts

Please note that there are several ways to use Highcharts. For general installation instructions, see the docs.

Use our CDN

Instead of downloading, you can use our CDN to access files directly. See code.highcharts.com for details.

<script src="https://code.highcharts.com/highcharts.js"></script>

Install from npm

See npm documentation on how to get started with npm.

npm install --save highcharts

Install from Bower

See Bower documentation on how to get started with Bower.

bower install highcharts

Load Highcharts as a CommonJS module

Highcharts is using an UMD module pattern, as a result it has support for CommonJS. The following examples presumes you are using npm to install Highcharts, see Download and install Highcharts for more details.

// Load Highcharts
var Highcharts = require('highcharts');
// Alternatively, this is how to load Highstock. Highmaps is similar.
// var Highcharts = require('highcharts/highstock');

// Load the exporting module, and initialize it.
require('highcharts/modules/exporting')(Highcharts);

// Generate the chart
Highcharts.chart('container', {
  // options - see https://api.highcharts.com/highcharts
});

Load Highcharts as an ES6 module

Since Highcharts supports CommonJS, it can be loaded as an ES6 module with the use of transpilers. Two common transpilers are Babel and TypeScript. These have different interpretations of a CommonJS module, which affects your syntax. The following examples presumes you are using npm to install Highcharts, see Download and install Highcharts for more details.

Babel

import Highcharts from 'highcharts';
// Alternatively, this is how to load Highstock. Highmaps is similar.
// import Highcharts from 'highcharts/highstock';

// Load the exporting module.
import Exporting from 'highcharts/modules/exporting';
// Initialize exporting module.
Exporting(Highcharts);

// Generate the chart
Highcharts.chart('container', {
  // options - see https://api.highcharts.com/highcharts
});

TypeScript

import * as Highcharts from 'highcharts';
// Alternatively, this is how to load Highstock. Highmaps is similar.
// import Highcharts from 'highcharts/highstock';

// Load the exporting module.
import * as Exporting from 'highcharts/modules/exporting';
// Initialize exporting module.
Exporting(Highcharts);

// Generate the chart
Highcharts.chart('container', {
  // options - see https://api.highcharts.com/highcharts
});
You can’t perform that action at this time.