Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.js

Created Oct 13, 2016
Embed
What would you like to do?
6.md
_createNewSeries: function() {
var data = createChartDummyData(400, 100); // ダミーデータを生成
// 系列定義
var color = GenerateColor();
return {
name: 'series_'+color,
type: 'stacked_line',
data: data,
propNames: {
y: 'val'
},
fillColor: "#" + GenerateColor(),
color: "#" + color
};
}
function GenerateColor() {
return Math.floor(Math.random()*16777215).toString(16);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment