SymboleAxis sorted by serie number

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bennisfr
Posts: 2
Joined: Sat Feb 07, 2015 2:13 pm
antibot: No, of course not.

SymboleAxis sorted by serie number

Post by bennisfr » Sat Feb 07, 2015 2:27 pm

I use XYIntervalSeries() with createXYBarChart() and this renderer option setUseYInterval(true).
For DomainAxis i use SymbolAxis() to name the series data.
For RangeAxis i use DateAxis().
How to sort the DomainAxis by Series Number and not by Series Name ?

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: SymboleAxis sorted by serie number

Post by paradoxoff » Mon Feb 09, 2015 12:07 pm

Can you post a bit of code?
Technically, you can´t "sort" a ValueAxis.

bennisfr
Posts: 2
Joined: Sat Feb 07, 2015 2:13 pm
antibot: No, of course not.

Re: SymboleAxis sorted by serie number

Post by bennisfr » Sun Feb 15, 2015 11:26 am

befor all, thanks for your reply.

I have the solution. In fact the order is based uniquely on the X value.
In my case, i have to set the right X value for each DomainAxis.

at the create dataset, it's my responsability to use the rigth value for "idx" for each "domain":

XYIntervalSeries xyintervalseries = new XYIntervalSeries("domain");
xyintervalseries.add(idx, .....);

Locked