Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#855 Limit 0 on MultiplePiePlot produces a tooltip issue

closed
David Gilbert
General (896)
5
2008-04-16
2008-04-11
Anonymous
No

When adjusting the aggregation limit on MultiplePiePlots, setting the value to zero results in the tooltips for all columns displaying on all charts.

See the attached example.

Email: bkrisler <at> bbn.com

Discussion

  • An example demonstrating the bug.

     
    Attachments
  • David Gilbert
    David Gilbert
    2008-04-16

    • assigned_to: nobody --> mungady
    • status: open --> closed
     
  • David Gilbert
    David Gilbert
    2008-04-16

    Logged In: YES
    user_id=112975
    Originator: NO

    Thanks for the report, and extra thanks for including the sample code. This isn't a bug - take a close look at your dataset, and you'll notice that it has two columns and *twenty* rows. In each column, half the data items have no specified value, so 'null' is assumed. By default, the PiePlot will display null values in the same way as a zero value - you can override that behaviour, and have the plot IGNORE null values, as follows:

    MultiplePiePlot plot = (MultiplePiePlot) chart.getPlot();
    PiePlot subplot = (PiePlot) plot.getPieChart().getPlot();
    subplot.setIgnoreNullValues(true);

    Regards,

    Dave Gilbert
    JFreeChart Project Leader