From: Evert Timberg Date: Sat, 9 Jul 2016 14:01:15 +0000 (-0400) Subject: update sample to have negative numbers X-Git-Tag: v2.2.0-rc.1~10^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a1f94b1a57a02dbd45eac3e27d97a179b853557d;p=thirdparty%2FChart.js.git update sample to have negative numbers --- diff --git a/samples/line-stepped.html b/samples/line-stepped.html index b482cf138..e618a698c 100644 --- a/samples/line-stepped.html +++ b/samples/line-stepped.html @@ -30,7 +30,7 @@ var MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var randomScalingFactor = function() { - return Math.round(Math.random() * 100); + return (Math.random() > 0.5 ? -1 : 1) * Math.round(Math.random() * 100); //return 0; }; var randomColorFactor = function() {