Set this for drawCallback
[dygraphs.git] / tests / draw-points.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>individual points</title>
5 <!--
6 For production (minified) code, use:
7 <script type="text/javascript" src="dygraph-combined.js"></script>
8 -->
9 <script type="text/javascript" src="../dygraph-dev.js"></script>
10
11 <script type="text/javascript" src="data.js"></script>
12 </head>
13 <body>
14 <p>with points:</p>
15 <div id="g" style="width:600px; height:300px;"></div>
16 <div id="g2" style="width:600px; height:300px;"></div>
17
18 <script type="text/javascript">
19 var g1 = new Dygraph(
20 document.getElementById("g"),
21 NoisyData, {
22 rollPeriod: 7,
23 errorBars: true,
24 drawPoints: true
25 }
26 );
27
28 var g2 = new Dygraph(
29 document.getElementById("g2"),
30 NoisyData, {
31 rollPeriod: 7,
32 errorBars: true,
33 drawPoints: false
34 }
35 );
36 </script>
37 </body>
38 </html>