Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created October 13, 2016 07:11
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