About Class ChartFactory

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

About Class ChartFactory

Post by Divya » Thu Feb 06, 2003 8:44 pm

Hi David,

I was Creating VerticalBarchart3D and I found from online document description

public static JFreeChart createVerticalBarChart3D(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend,
boolean tooltips,
boolean urls)

but it is not compiling...giving error class not found in chartFactory.


public static JFreeChart createVerticalBarChart3D(java.lang.String title,
java.lang.String categoryAxisLabel,
java.lang.String valueAxisLabel,
CategoryDataset data,
boolean legend )

It compiles when i take those tw parameters out.

And i have another question how can i pass category labels and series names if i use CategoryDataset?

Thank you,
Divya.

Narasimha Narahari

Re: About Class ChartFactory

Post by Narasimha Narahari » Thu Feb 06, 2003 8:51 pm

Hi Divya,
You can put the category names and the series names into an array and call the DefaultCategoryDataSet( ) constructor.

Hope this helps,

--Narasimha

Divya

Re: About Class ChartFactory

Post by Divya » Thu Feb 06, 2003 11:45 pm

Hello Narasimha,

Thank you for your reply.I got it.and i have another question how can i show some string values over the bar (like in a pie you can show the values).Actually on top of the bar thae values like 30% .

how can i do this?

Divya.

Narasimha Narahari

Re: About Class ChartFactory

Post by Narasimha Narahari » Fri Feb 07, 2003 7:16 pm

Hi Divya,

Check this link below
http://www.object-refinery.com/phorum-3 ... 391&t=6377

may be it will be of some use.

--Narasimha

Locked