4 <title>dense, filled plots
</title>
5 <script type=
"text/javascript" src=
"../dist/dygraph.js"></script>
14 <p>These charts are substantially sped up by
<a href=
"https://github.com/danvk/dygraphs/pull/462/">down-sampling.
</a></p>
15 <div class=
"chart" data-opts='{
"fillGraph":true}'
></div>
17 <p>step plot, filled
</p>
18 <div class=
"chart" data-opts='{
"fillGraph":true,
"stepPlot":true}'
></div>
22 for (var i =
0; i <
10000; i++) {
23 data.push([i, Math.sin(i/
1000), Math.cos(i/
1000)]);
26 var chartDivs = document.querySelectorAll('.chart');
27 for (var i =
0; i < chartDivs.length; i++) {
28 var chartDiv = chartDivs[i];
29 var opts = {labels: ['X', 'sin', 'cos'], animatedZooms: true};
30 var thisOpts = JSON.parse(chartDiv.getAttribute('data-opts'));
31 for (var k in thisOpts) {
32 opts[k] = thisOpts[k];
35 new Dygraph(chartDivs[i], data, opts);