Hi, any way to display values or % in pie chart slices ?
Regards
Hi, any way to display values or % in pie chart slices ?
Regards
Have you looked at https://developers.google.com/chart/ ?
Click on Rich Gallery, and the top left example of a pie chart looks like what you want. Then open the chart demo app, pull up the Pie Chart, and click the little keyboard at the top of that section. You can then see how Lianja is accessing the same properties and methods used by Google Chart -- and can add in the Google Code, integrated with the percentages you calculate, to get the notation you want in each of the pieces of the pie.
The really nice part of working with something like charts in Lianja is the ease with which you can integrate data, and also the ease with which you can "wrap" a control and its methods for reuse. In fact, you can save the .rsp file with your modifications as a Library file under a different name, and use it anywhere you want in your app: simple create a webview section, or put a webview object in a section, and point to URL to lib:/<your pie chart>.rsp. Writing it to be generic for reuse depends, of course, on your skills as a programmer. Once done, however, it becomes very simple to use, for you and anyone else who has access to it.
hth,
Hank
Last edited by HankFay; 2013-05-06 at 10:45.
Many thanks, could add % now. This can be done adding values to pie labels. I also found http://www.rgraph.net/examples/index.html very useful.
Regards
Bookmarks