how to display LineChart X axis coordinate lables vertically
i am new to JFreeChart.I have successfully used Line Chart in my project,in that X axis coordinate labels are displayed horizontally by default,but what i want is X axis coordinate lables are to be displayed vertically as i am showing time stamp as lables like Oct 08,02:30:50(ie with full date and time in this format)....so presently as the time stamp is being shown horizontally ,the time stamp is getting truncated .....How to change the code as per my requirement.....i have tried many exmaples but i could not any solution..........Can some one help me how to do this
how to display LineChart X axis coordinate lables vertically
-
- Posts: 25
- Joined: Mon Oct 08, 2007 7:16 am
display xaxis label vertically
NumberAxis domainAxis = (NumberAxis)((XYPlot) plot).getDomainAxis();
domainAxis.setVerticalTickLabels(true);
domainAxis.setVerticalTickLabels(true);
-
- Posts: 2
- Joined: Sat Nov 24, 2007 6:36 am
-
- Posts: 25
- Joined: Mon Oct 08, 2007 7:16 am