Basic example of Google Charts with DataFlex WebApp: Difference between revisions

m
(Addendum)
 
(2 intermediate revisions by 2 users not shown)
Line 458: Line 458:
Note that we only really have to add stuff to one of the radio (OK, ''cWebRadio''!) objects, because they all operate as a set, so oBar, oArea and friends are just vanilla radio objects, while oPie has the added Set pbServerOnChange, OnChange procedure and OnLoad procedure and is the one the DrawChart procedure WebGets the psValue of to know what kind of chart to produce.
Note that we only really have to add stuff to one of the radio (OK, ''cWebRadio''!) objects, because they all operate as a set, so oBar, oArea and friends are just vanilla radio objects, while oPie has the added Set pbServerOnChange, OnChange procedure and OnLoad procedure and is the one the DrawChart procedure WebGets the psValue of to know what kind of chart to produce.


Now the Pie Chart will be displayed when the view loads, while the various chart types will be shown as the user clicks on the appropriate radio buttons.
Now the Pie Chart will be displayed when the view loads, while the various other chart types will be shown as the user clicks on the appropriate radio buttons.


=== External links ===
=== External links ===
Line 464: Line 464:
* [https://developers.google.com/chart/ Google Charts official documentation]
* [https://developers.google.com/chart/ Google Charts official documentation]
* [https://support.dataaccess.com/Forums/showthread.php?65704-Basic-sample-of-Google-Chart-working-with-Dataflex-WebApp Forum question that triggered this article]
* [https://support.dataaccess.com/Forums/showthread.php?65704-Basic-sample-of-Google-Chart-working-with-Dataflex-WebApp Forum question that triggered this article]
* [https://support.dataaccess.com/Forums/showthread.php?67286-Google-Bar-Chart-Example&p=364834#post364834 Google Bar Chart by Jarred@TME]




[[Category: Tutorials]]
[[Category: Tutorials]]
[[Category: Web Applications]]