1 | | [wiki:sandbox_children/child1 child1] |
2 | | [wiki:sandbox_children/child2 child2] |
| 1 | {{{#!html |
| 2 | <script type="text/javascript" src="/js/flotr2.min.js"></script> |
| 3 | |
| 4 | <script type="text/javascript"> |
| 5 | (function () { |
| 6 | var |
| 7 | container = document.getElementById('container'), |
| 8 | data = [], |
| 9 | graph, i; |
| 10 | |
| 11 | // Sample the sine function |
| 12 | for (i = 0; i < 4 * Math.PI; i += 0.2) { |
| 13 | data.push([i, Math.sin(i)]); |
| 14 | } |
| 15 | |
| 16 | // Draw Graph |
| 17 | graph = Flotr.draw(container, [ data ], { |
| 18 | yaxis : { |
| 19 | max : 2, |
| 20 | min : -2 |
| 21 | } |
| 22 | }); |
| 23 | })(); |
| 24 | </script> |
| 25 | |
| 26 | <div id="container"></div> |
| 27 | |
| 28 | }}} |