4 <link rel=
"stylesheet" href=
"../dist/dygraph.css">
5 <title>dygraphs unboxed
</title>
6 <script type=
"text/javascript" src=
"../dist/dygraph.js"></script>
8 <script type=
"text/javascript" src=
"data.js"></script>
9 <style type=
"text/css">
11 display: inline-block;
16 <p>This shows dygraphs without any boxlike elements (i.e. axes or grids):
</p>
17 <div id=
"div_g" style=
"width:600px; height:300px; border:1px solid white;"></div>
19 <script type=
"text/javascript">
22 document.getElementById(
"div_g"),
37 function toggleBox(btn) {
39 document.getElementById(
"div_g").style.border = show_box ? '
1px solid black' : '
1px solid white';
41 btn.innerHTML = 'Hide box';
43 btn.innerHTML = 'Show box';
48 <button onClick='toggleBox(this)'
>Show box
</button>
50 <!-- Dygraphs constructs a div inside of whatever div we pass in. So the container div can't be a span or have display: inline-block. We use a table to get the sparkline to display on the same line as the text. --
>
52 <table><tr><td>This style can be used to produce interactive sparklines with dygraphs:
</td><td><div id=
"div_spark" style=
"width:100px; height:20px;"></div></td></tr></table>
55 <script type=
"text/javascript">
57 document.getElementById(
"div_spark"),
72 highlightCircleSize:
2