Results 1 to 4 of 4

Thread: Pie chart values

  1. #1
    Member
    Join Date
    Apr 2013
    Posts
    88

    Pie chart values

    Hi, any way to display values or % in pie chart slices ?
    Regards

  2. #2
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,948
    Quote Originally Posted by Phjr View Post
    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.

  3. #3
    Member
    Join Date
    Apr 2013
    Posts
    88
    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

  4. #4
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,948
    Quote Originally Posted by Phjr View Post
    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
    Thanks for the reference.

    Hank

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us