Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created October 14, 2016 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/e8c13452eb6e1841410b01c497b3aef8 to your computer and use it in GitHub Desktop.
Save goofmint/e8c13452eb6e1841410b01c497b3aef8 to your computer and use it in GitHub Desktop.
8.md
// size 変数を追加
function createChartDummyData(median, vibration, size) {
size = size || 200; // デフォルトは200
var ret = [];
for (var i = 0; i < size; i++) {
ret.push({
val: median + (Math.random() - 0.5) * vibration * 2
});
}
return ret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment