
Push DateAxis to line up with the range axis
Push DateAxis to line up with the range axis
How would I push the first tick mark of the DateAxis to line up with the range axis. Take a look at this picture:


Did you try these methods of org.jfree.chart.axis.ValueAxis
Code: Select all
public void setLowerMargin(double margin)
public void setUpperMargin(double margin)
Code: Select all
plot.getDomainAxis().setLowerMargin(0);
plot.getDomainAxis().setUpperMargin(0);
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I agree with Skunk.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


thanks, that worked. I had to modify a little bit because 0 made the 0'00" not display:
Code: Select all
plot.getDomainAxis().setLowerMargin(.0001);
plot.getDomainAxis().setUpperMargin(.0001);