4 <title>crosshairs
</title>
6 For production (minified) code, use:
7 <script type=
"text/javascript" src=
"dygraph-combined.js"></script>
9 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
11 <script type=
"text/javascript" src=
"../extras/crosshair.js"></script>
12 <script type=
"text/javascript" src=
"data.js"></script>
15 <p>Vertical crosshair:
</p>
16 <div id=
"div_g_v" style=
"width:600px; height:300px; position:relative;">
19 <p>Horizontal crosshairs:
</p>
20 <div id=
"div_g_h" style=
"width:600px; height:300px; position:relative;">
23 <p>Both crosshairs:
</p>
24 <div id=
"div_g_b" style=
"width:600px; height:300px; position:relative;">
27 <script type=
"text/javascript">
29 document.getElementById(
"div_g_v"),
37 new Dygraph.Plugins.Crosshair({
44 document.getElementById(
"div_g_h"),
51 new Dygraph.Plugins.Crosshair({
52 direction:
"horizontal"
58 document.getElementById(
"div_g_b"),
65 new Dygraph.Plugins.Crosshair({