null data in DefaultPieDataset

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Tarik

null data in DefaultPieDataset

Post by Tarik » Tue Apr 16, 2002 7:55 pm

Hi,
In the begining thanks for this good product.

My question is about the DefautPieDataSet, here is the code :

DefaultPieDataset data= new DefaultPieDataset();
data.setValue("Category 1", new Double(43.2));
data.setValue("Category 2", new Double(0));
data.setValue("Category 3", new Double(79.5));

The obtained Pie chart plots only Category 1 & 2 (label) but not the Category 3.

Is there any problem with the ZERO values ?

Thanks a lot.

David Gilbert

Re: null data in DefaultPieDataset

Post by David Gilbert » Tue Apr 16, 2002 9:45 pm

Tarik wrote:
> In the begining thanks for this good product.

No problem!

> My question is about the DefautPieDataSet, here is the code :
>
> DefaultPieDataset data= new DefaultPieDataset();
> data.setValue("Category 1", new Double(43.2));
> data.setValue("Category 2", new Double(0));
> data.setValue("Category 3", new Double(79.5));
>
> The obtained Pie chart plots only Category 1 & 2 (label) but
> not the Category 3.
>
> Is there any problem with the ZERO values ?

I think there is a problem in the labelling for the legend, which another developer has been looking at. I'll follow up with him.

Regards,

DG.

Locked