DualAxis line and bar on a dateAxis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
tatia34
Posts: 23
Joined: Fri Apr 27, 2007 2:11 pm
Location: France

DualAxis line and bar on a dateAxis

Post by tatia34 » Wed Jan 09, 2008 6:00 pm

Hi, I try to do a dual axis chart with a dateAxis on the domain axis.

I've do a capture to explain what I obtain andI would have :
Image

I hope there is a solution.. :oops:

Thanks, tatia34

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Jan 10, 2008 12:37 pm

Try:

xAxis.setTickMarkPosition(DateTickMarkPosition.MIDDLE);

and...

dataset.setXPosition(TimePeriodAnchor.MIDDLE);
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked