What I want to display for the X axis is the first image below. What I am getting is the second. Not that not only is the desired text at an angle, but it also displays just every other due to lack of space.
If the chart is wide enough, then I do want it to show the text for every tick.
How can I do this?
thanks - dave
Re: How can I make axis labels only show each other, at an angle
From your previous code, I believe your code sets the labels using Axis.setLabels.
To hide some labels, the easiest way is to change those labels to a space character.
Your code knows the plot area width and also the number of labels and their font size (these information come from your code). So it can be used to determine how many labels need to be changed to a space character. Your code can then use a loop to change those labels to a space character before passing the labels array to ChartDirector.
There is also an API Axis.setLabelStep that can skip the labels, but with this API, it will skip the ticks as well. An example is at: