Socket
Book a DemoInstallSign in
Socket

highcharts-browserify

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highcharts-browserify

Highcharts wrapper for browserify

latest
Source
npmnpm
Version
2.0.2
Version published
Maintainers
1
Created
Source

highcharts-browserify

Browserify bundle for Highcharts.

Installation

$ npm install --save highcharts-browserify

How to use

var $ = require('jquery');
var HighCharts = require('highcharts-browserify');

new Highcharts.Chart({
  chart: {
    renderTo: $('#my-chart')
  },
  // ... more options - see http://api.highcharts.com/highcharts
});

More graph types

Several extra graph types are included as modules. By requiring the graph type you need, highcharts will be extended to support that graph type.

var $ = require('jquery');
var HighCharts = require('highcharts-browserify/modules/solid-gauge');

new Highcharts.Chart({
  chart: {
    type: 'solidgauge',
    renderTo: $('#my-chart')
  },
  // ... more options - see http://www.highcharts.com/articles/2-news/46-gauges-ranges-and-polar-charts-in-beta
});

Themes

Just require the theme you want to use. Highcharts will automatically be configured to use that theme. See the themes documentation for more information.

var $ = require('jquery');
var HighCharts = require('highcharts-browserify');
require('highcharts-browserify/themes/dark-blue');

new Highcharts.Chart({
  chart: {
    renderTo: $('#my-chart')
  },
  // ... more options - see http://api.highcharts.com/highcharts
});

Modules

Similarly to themes, just require the highcharts module you want to use. See below exemplary usage for data module:

var HighCharts = require('highcharts-browserify');
require('highcharts-browserify/modules/data');

var fetchedData = ... //fetch data

new Highcharts.Chart({
  data: fetchedData
  // ... more options - see http://api.highcharts.com/highcharts
});

Collaborators

highcharts-browserify is only possible due to the excellent work of the following collaborators:

Keywords

chart

FAQs

Package last updated on 13 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts