how to set horizontal labels in vertical graph

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

how to set horizontal labels in vertical graph

Post by anup » Sun Mar 31, 2002 6:35 pm

Hi all,
I am completely new to JFreeChart. I wanted to change the default Category1, Category2 to some other value but couldn't figure out how to. Please help.
anup

David Gilbert

Re: how to set horizontal labels in vertical graph

Post by David Gilbert » Sun Mar 31, 2002 7:38 pm

Hi Anup,

If you are using the DefaultCategoryDataset class, then you can pass an array of Objects to the setCategories(...) method. You can use any Object (the toString() method is used to convert to a String for the label) but most of the time using String objects is easiest.

Regards,

DG.

mike

Re: how to set horizontal labels in vertical graph

Post by mike » Sat Apr 27, 2002 4:24 am

thanks David Gilbert.

Regards,
mike

Locked