GithubHelp home page GithubHelp logo

highcharts-meteor's Introduction

Official Meteor wrapper for Highcharts, Highstock and Highmaps libraries.

This package will not work with Meteor 1.3+.

To use Highcharts in Meteor 1.3+, install package from npm:

> meteor npm install --save highcharts

Now, include Highcharts in your project:

var Highcharts = require('highcharts');

More details you can find in the official documentation.

Installation

To install wrapper, simply run:

> meteor add highcharts:highcharts-meteor

Configuration

By default only Highcharts library, without any extra modules, is loaded. In client folder, open config.highcharts.json file and setup options. For example:

{
	"version": "4.2.1",		 	// Choose version of Highcharts/Highstock/Highmaps.
	"base": "highcharts.js",	// Choose base, can be "highcharts.js", "highstock.js" or "highmaps.js"
	"adapter": "default",		// Choose adapter, e.g. "jquery" or "standalone-framework.js".
	"modules": [				// Choose modules to be installed altogether with main library.
		"highcharts-3d.src.js",
		"modules/exporting.js",
		"modules/heatmap.js",
		"modules/drilldown.js",
		"themes/gray.js"
	]
}

Since wrapper is based on NPM package from Highcharts, you can find structure of modules on the github page. Note: NPM package is supported since 4.1.10.

Since Highcharts version 4.2.0, Highcharts will come with built-in adapter. That means adapter is not necessary to be set anymore.

Usage

That's all, you have access on the client side to Highcharts namespace. You can create charts in a standard way, as always. You can find examples in this article.

Debugging

You can load source files, instead of minified for debugging. Simply change .js to .src.js in the config file, for example:

{
	"version": "4.2.1",
	"base": "highstock.src.js",
	"adapter": "jquery",
	"modules": [
		"highcharts-3d.src.js"
	]
}

JSON samples

  • Highcharts version < 4.2.1
{
	"version": "4.2.0",
	"base": "js/highcharts.js",
	"adapter": "default",
	"modules": [
		"js/highcharts-3d.src.js",
		"js/modules/exporting.js",
		"js/modules/heatmap.js",
		"js/modules/drilldown.js",
		"js/themes/gray.js"
	]
}
  • Highcharts version >= 4.2.1
{
	"version": "4.2.1",
	"base": "highcharts.js",
	"adapter": "default",
	"modules": [
		"highcharts-3d.src.js",
		"modules/exporting.js",
		"modules/heatmap.js",
		"modules/drilldown.js",
		"themes/gray.js"
	]
}

highcharts-meteor's People

Contributors

pawelfus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.