Maximum X value

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ssaraceni
Posts: 14
Joined: Wed Apr 02, 2008 4:37 pm

Maximum X value

Post by ssaraceni » Tue May 06, 2008 4:02 pm

I want to set max X range value to max X value of the XYSeries. Is it possible with a XYLineChart??
now the range for X values goes from 0 to max value + 1.
Simone

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 » Wed May 07, 2008 9:55 am

Try setUpperMargin(0.0) on the x-axis.
David Gilbert
JFreeChart Project Leader

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

ssaraceni
Posts: 14
Joined: Wed Apr 02, 2008 4:37 pm

Post by ssaraceni » Wed May 07, 2008 11:06 am

Thank you so much, it works fine.
Simone

Locked