diff --git a/examples/example1.html b/examples/example1.html index b05cba5..61dc9eb 100644 --- a/examples/example1.html +++ b/examples/example1.html @@ -11,15 +11,26 @@ }, 500); function createTimeline() { - var chart = new SmoothieChart(); + var chart = new SmoothieChart({ + // millisPerPixel: 1000 / (3 * 75 + 1), + // millisPerPixel: 1000 / 80, + // millisPerPixel: 1000 / 75.5, + // millisPerPixel: 1000 / 75, + // millisPerPixel: 1000 / 74.6, + // millisPerPixel: 1000 / 72, + millisPerPixel: 1000 / (74.6 / 2), + // millisPerPixel: 1000 / 1, + maxValue: 10000, + minValue: 0, + }); chart.addTimeSeries(random, { strokeStyle: 'rgba(0, 255, 0, 1)', fillStyle: 'rgba(0, 255, 0, 0.2)', lineWidth: 4 }); - chart.streamTo(document.getElementById("chart"), 500); + chart.streamTo(document.getElementById("chart"), 0); }
- +