Skip to content

A utility to convert Highcharts configs to SVGs without a browser

Notifications You must be signed in to change notification settings

highcharts/highcharts-jsdom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 example

About

A utility to convert Highcharts configs to SVGs without a browser

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •