highcharts-jsdom

1.0.4 • Public • Published

A utility to convert Highcharts configs to SVGs without a browser.

It is generally slower than the export server and the text bounding boxes are not exact, which affects the whole chart layout.

Usage

npm install

const hc = require('./highcharts-jsdom');

hc({
	infile: 'examples/bubble/options.json',
	outfile: 'chart.svg',

	// Constructor, defaults to 'chart'
	constr: 'chart',

	// Module files etc
	extensions: [
		'highcharts-more'
	]
}).then((result) => {
	console.log(result);
});

Run example

node examples/bubble/app

Readme

Keywords

none

Package Sidebar

Install

npm i highcharts-jsdom

Weekly Downloads

50

Version

1.0.4

License

MIT

Unpacked Size

32.8 kB

Total Files

9

Last publish

Collaborators

  • torsteinhonsi