Line separator in grouping

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rvijaiganesh
Posts: 19
Joined: Wed Mar 09, 2011 2:11 pm
antibot: No, of course not.

Line separator in grouping

Post by rvijaiganesh » Tue Apr 12, 2011 11:12 am

Hi,

I need to draw a line separator in every grouping(ex : 1 23 4 | 1 2 3 4 | 1 2 3 4) of x axis .is it possible?if it is possible then please give any sample.Its very urgent.

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

Re: Line separator in grouping

Post by paradoxoff » Tue Apr 12, 2011 8:37 pm

Are talking about a CategoryAxis or some extended version?
In any case, you could try to extend your axis as described in this thread and realize the separators a minor tick marks with a sufficiently high outsideLength.

rvijaiganesh
Posts: 19
Joined: Wed Mar 09, 2011 2:11 pm
antibot: No, of course not.

Re: Line separator in grouping

Post by rvijaiganesh » Fri Apr 15, 2011 8:34 am

I couldn't able to understand the previous thread example.
Please provide any sample program.

How to use drawtickmarks() ?

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

Re: Line separator in grouping

Post by paradoxoff » Fri Apr 15, 2011 9:00 pm

rvijaiganesh wrote: Please provide any sample program.
That would require the following steps:
a) guess the type of Axis you are using
b) prepare a patch that does what you want
c) write a sample program that shows the use of the patch.

Unfortunately, my available time does not allow me to do this. Sorry.

rvijaiganesh
Posts: 19
Joined: Wed Mar 09, 2011 2:11 pm
antibot: No, of course not.

Re: Line separator in grouping

Post by rvijaiganesh » Mon Apr 18, 2011 11:06 am

Hi ,

I got the output finally by using this thread http://www.jfree.org/phpBB2/viewtopic.p ... 19&start=0.But my problem is,it has two domain axis i don't know how to combine two domain axis in a single plot.Please tell any idea.(Both domain axis should be in bottom)

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

Re: Line separator in grouping

Post by paradoxoff » Tue Apr 19, 2011 8:44 pm

Check CategoryPlot.setDomainAxis(1, new CategoryAxis()) and CategoryPlot.mapDatasetToDomainAxes(0, Arrays.asList(new int[]{0, 1}))

Locked