My bar names are getting overriden

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Gaurav
Posts: 1
Joined: Wed Oct 01, 2014 8:32 am
antibot: No, of course not.

My bar names are getting overriden

Post by Gaurav » Wed Oct 01, 2014 8:46 am

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.

david.gilbert
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

Post by david.gilbert » Wed Oct 08, 2014 8:50 pm

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

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

Locked