Hi
I would like to know how can I make the x-axis values
(on XY or bar chart) to be written vertically rather then horizontally ?
for example
^
|
|
|
|
|
--------------------------------------->
S M T
u o u
n n s
d d e
a a d
y y a
y
Thanks
How to make the x-axis values vartical
Re: How to make the x-axis values vartical
Yes you can. Most of the Horizontal***Axis classes have a method setVerticalTickLabels(boolean) that will do this. For example:
XYPlot plot = myChart.getXYPlot();
HorizontalDateAxis axis = (HorizontalDateAxis) plot.getDomainAxis();
axis.setVerticalTickLabels(true);
Regards,
Dave Gilbert
XYPlot plot = myChart.getXYPlot();
HorizontalDateAxis axis = (HorizontalDateAxis) plot.getDomainAxis();
axis.setVerticalTickLabels(true);
Regards,
Dave Gilbert
How to make the x-axis values slanting
Hi
I would like to know how can I make the x-axis values
(on XY or bar chart) to be written vertically rather then slanting?
for example
^
|
|
|
|
|
--------------------------------------->
S M T
u o u
n n s
d d e
a a d
y y a
y
I would like to know how can I make the x-axis values
(on XY or bar chart) to be written vertically rather then slanting?
for example
^
|
|
|
|
|
--------------------------------------->
S M T
u o u
n n s
d d e
a a d
y y a
y
Re: How to make the x-axis values vartical
That would require customising the draw(...) method in the corresponding axis class.
Regards,
Dave Gilbert
Regards,
Dave Gilbert