I wish to rotate the date labels on my basic time series chart from the norm of horizontal display to vertical. Is there a way to do this? If so any example code would be most helpful.
Thanks,
Kenny
Rotating dates on times series chart
Re: Rotating dates on times series chart
Hi Kenny,
Dr. T is correct. Your code should look something like this (for a time series chart):
XYPlot plot = myChart.getXYPlot();
HorizontalDateAxis axis = (HorizontalDateAxis) plot.getDomainAxis();
axis.setVerticalTickLabels(true);
Regards,
DG
Dr. T is correct. Your code should look something like this (for a time series chart):
XYPlot plot = myChart.getXYPlot();
HorizontalDateAxis axis = (HorizontalDateAxis) plot.getDomainAxis();
axis.setVerticalTickLabels(true);
Regards,
DG