Created
October 14, 2016 07:38
-
-
Save goofmint/e8c13452eb6e1841410b01c497b3aef8 to your computer and use it in GitHub Desktop.
8.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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