Changes between Version 21 and Version 22 of sandbox


Ignore:
Timestamp:
Nov 5, 2013, 9:40:25 AM (11 years ago)
Author:
murphpo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sandbox

    v21 v22  
    11{{{#!html
    22<script type="text/javascript" src="/js/flotr2.min.js"></script>
     3}}}
    34
    4 <div id="container" style="width:500px; height:384px"></div>
     5== Bar Chart ==
     6
     7{{{#!html
     8<div id="container_bar1" style="width:500px; height:384px"></div>
     9
     10<script type="text/javascript">
     11(function () {
     12        var d1 = [1, 2, 3, 4];
     13        var d2 = [2, 4, 6, 8];
     14        var container = document.getElementById('container_bar1');
     15   
     16        // Draw the graph
     17        Flotr.draw(container, [d1, d2],
     18        {
     19        bars : {
     20                show : true,
     21                horizontal : horizontal,
     22                shadowSize : 0,
     23                barWidth : 0.5
     24                },
     25        mouse : {
     26                track : true,
     27                relative : true
     28                },
     29        yaxis : {
     30                min : 0,
     31                autoscaleMargin : 1
     32                }
     33        });
     34});
     35
     36</script>
     37}}}
     38
     39
     40== Line Graph ==
     41
     42{{{#!html
     43<div id="container_line1" style="width:500px; height:384px"></div>
    544
    645<script type="text/javascript">
    746      (function () {
    847        var
    9           container = document.getElementById('container'),
     48          container = document.getElementById('container_line1'),
    1049          data = [],
    1150          graph, i;