how to put data in ascending order in bar chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ann04
Posts: 3
Joined: Mon Nov 15, 2004 6:52 pm

how to put data in ascending order in bar chart

Post by ann04 » Thu Jan 06, 2005 9:41 pm

Hello, I have a bar chart and data from query is sorted in ascending order. But when the image is drawn with the chart, the data is not sorted. Can you please help me how to force jfreechart to display data in ascending order?
Do I need to use DomainOrder?
Can you put an example here of how to use this method?

Thank you.

loopyzort
Posts: 2
Joined: Fri Nov 23, 2007 11:28 pm

bump

Post by loopyzort » Fri Jan 18, 2008 8:18 pm

Hey All,

I'd like to bump this for a response. Is there no way to alphabetize the categories displayed in a CategoryDataset? It seems like a logical thing to allow, but I can't seem to find DomainOrder in the CategoryDataset apis anywhere.

Thanks

Locked