Multiple label in DomainAxis of XYPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
deryaaltuntas
Posts: 4
Joined: Thu Dec 15, 2011 10:31 am
antibot: No, of course not.

Multiple label in DomainAxis of XYPlot

Post by deryaaltuntas » Mon Feb 13, 2012 5:26 pm

I want to have multiple label for Domain Axis (DateAxis) of single XYPlot.
May be you will advise me to to use CombinedRangeXYPlot but this not my case.
I want to write"Now" text beginning of domain axis , I want to write "Future" text
center of DomainAxis. I learned that CategoryPlot supports this support but I could
not find a solution for XYPlot.This is possible ?

I also tried something like this

Code: Select all

 DateAxis y = new DateAxis("Now                        Future")
plot.setDomainAxisLocation(AxisLocation.BOTTOM_OR_LEFT);.

Locked