Menu

small relative values in pie chart broken?

2008-01-10
2012-09-07
  • Robert Beverly

    Robert Beverly - 2008-01-10

    I'm having trouble with displaying large and small (relative) values in pie charts. Taking the
    text-data-single data type as an example:

    $data = array(
    array('Australia', 700),
    array('Dem Rep Congo', 200),
    array('Canada', 1),
    );

    results in a pie graph that is completely filled in with blue
    (see example here: http://www.emailtester.net/goo.php )

    I can't normalize the values either - same error. Anyone seen
    this before I dig? Thanks!

     
    • lbayuk

      lbayuk - 2008-01-11

      This is almost certainly bug report 1827263 "Spoiled up pie-chart if $val is close to zero". Sorting kind of gets around the problem because the error is covered up by the other slices that follow.

      The fix for this bug was already applied to CVS and will be in the next release.

       
    • Robert Beverly

      Robert Beverly - 2008-01-10

      answering my own question --

      seems to work properly when the key value pairs are sorted by increasing value.

      thanks!

       
  • Eduardo Donato

    Eduardo Donato - 2012-02-14

    In the documentation, the arc angle piece must be greater than 1 degree.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.