davidpadbury/node-highcharts
davidpadbury/node-highcharts has 208 GitHub stars and 46 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-20 10:38 UTC. Last push 2014-10-07.
計測したスター増加
- 24時間
- 0
- 7日間
- 履歴を収集中
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
概要
A sample of generating client side charts on the server using node
開発ツールREADME.md
オリジナルObsolete Warning
The initial work demonstrated here is now getting on for several years old with no signficant updates. There is now likely much better ways of achieving these objectives and I strongly suggest not using this as a base. HighCharts now provides details on their recommended approach to render entirely on the server.
node-highcharts
An example library demonstrating how a browser based JavaScript graphing library (Highcharts) can be used from Node.
Usage
var fs = require('fs'),
highcharts = require('node-highcharts'),
options = {
chart: {
width: 300,
height: 300,
defaultSeriesType: 'bar'
},
legend: {
enabled: false
},
title: {
text: 'Highcharts rendered by Node!'
},
series: [{
data: [ 1, 2, 3, 4, 5, 6 ]
}]
};
highcharts.render(options, function(err, data) {
if (err) {
console.log('Error: ' + err);
} else {
fs.writeFile('chart.png', data, function() {
console.log('Written to chart.png');
});
}
});

Todo
There's a few bits to do before the library will be ready for use.
- Cleanup jsdom window instance correctly.
- Cache window so we don't load jQuery+highcharts for every render.
- Use a local jQuery.
- Update to latest Highcharts version.
- Investigate using CanVG and node-canvas to render with no dependencies on the environment.