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_vprogress.html | 145 +++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 schall/static/RGraph/docs/adjusting_vprogress.html (limited to 'schall/static/RGraph/docs/adjusting_vprogress.html') diff --git a/schall/static/RGraph/docs/adjusting_vprogress.html b/schall/static/RGraph/docs/adjusting_vprogress.html new file mode 100644 index 0000000..9a3f44e --- /dev/null +++ b/schall/static/RGraph/docs/adjusting_vprogress.html @@ -0,0 +1,145 @@ + + + + + + RGraph: HTML5 Javascript charts library - Adjusting your charts interactively - VProgress bar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + Mention RGraph on Twitter + +
+ + + +
+ + +
+ + + + +

RGraph: HTML5 Javascript charts library - Adjusting your charts interactively - VProgress bar

+ + + + [No canvas support] + +

+ Nothing pertinent is kept in the registry. If you wish to get the new value of the progress you can check + obj.value. If you want the value before the adjustment, you can check the value + with the onadjustbegin event (instead of the onadjustend event). +

+ + + +
+ +
+<script>
+    window.onload = function (e)
+    {
+        var vprogress = new RGraph.VProgress('myc', 83, 100, 0);
+        vprogress.Set('chart.color', 'red');
+        vprogress.Set('chart.adjustable', true);
+        vprogress.Set('chart.margin', 5);
+        vprogress.Set('chart.tickmarks.inner', true);
+        vprogress.Set('chart.label.inner', true);
+        vprogress.Set('chart.units.post', '%');
+        vprogress.Set('chart.gutter.right', 45);
+        vprogress.Draw();
+        
+        RGraph.AddCustomEventListener(vprogress, 'onadjustbegin', function (obj) {document.getElementById("output").value += 'Value before adjustment: ' + obj.value + '\n';});
+        RGraph.AddCustomEventListener(vprogress, 'onadjustend', function (obj) {document.getElementById("output").value += 'Value after adjustment: ' + obj.value + '\n';});
+    }
+</script>
+
+ + \ No newline at end of file -- cgit v1.2.1