From 770ba5201f5c60b2bb36602ff9d359f641e33125 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sun, 23 Oct 2011 21:14:40 +0200 Subject: Charting with flask, rgraph and custom "timeseries database" --- schall/static/RGraph/docs/adjusting_bar.html | 153 +++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 schall/static/RGraph/docs/adjusting_bar.html (limited to 'schall/static/RGraph/docs/adjusting_bar.html') diff --git a/schall/static/RGraph/docs/adjusting_bar.html b/schall/static/RGraph/docs/adjusting_bar.html new file mode 100644 index 0000000..217ddf3 --- /dev/null +++ b/schall/static/RGraph/docs/adjusting_bar.html @@ -0,0 +1,153 @@ + + + + + + RGraph: HTML5 Javascript charts library - Adjusting your charts interactively - bar chart + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Mention RGraph on Twitter + +
+ + + +
+ + +
+ + + + +

RGraph: HTML5 Javascript charts library - Adjusting your charts interactively - Bar chart

+ + + +

+ The Bar chart can be adjusted by clicking on the chart, in line with the bar that you want to adjust.When adjusting is finished + the onadjustend event fires. As you will see in the example you can find the index of the relevant bar in the RGraph registry - + RGraph.Registry.Get('chart.adjusting.bar.myCanvas') (replace myCanvas with the ID of your canvas). +

+ [No canvas support] + +
+<script>
+    window.onload = function (e)
+    {
+        var bar = new RGraph.Bar('myCanvas', [512,653,512,533,674,453,458,741,496]);
+        bar.Set('chart.colors', ['blue', 'pink']);
+        bar.Set('chart.labels.above', true);
+        bar.Set('chart.shadow', true);
+        bar.Set('chart.shadow.color', '#aaa');
+        bar.Set('chart.strokestyle', 'rgba(0,0,0,0)');
+        bar.Set('chart.adjustable', true);
+        bar.Set('chart.labels', ['2000', '2001', '2002', '2003', '2004', '2005', '2006', '2007', '2008']);
+        bar.Draw();
+        
+        function myFunc (obj)
+        {
+            var conf = RGraph.Registry.Get('chart.adjusting.bar.myCanvas');
+            
+            p(conf);
+        }
+        RGraph.AddCustomEventListener(bar, 'onadjustend', myFunc);
+    }
+</script>
+
+ + + \ No newline at end of file -- cgit v1.2.1