i am generating a bargraph(.jpg image) through Jfreechart, and its working fine.but my name on x-axis is getting overrirden by "..." because of the length of the names, but i want to display the whole name.
https://lh5.googleusercontent.com/-dAMu ... chart1.jpg
Please suggest.Thanks in advance.
My bar names are getting overriden
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: My bar names are getting overriden
Try rotating the labels on an angle of 45 or 90 degrees:
Code: Select all
CategoryAxis domainAxis = plot.getDomainAxis();
domainAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_45);
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program