|
alignment of x axis labels of 2 different charts |
Posted by Massimo Brillante on Mar-01-2017 23:22 |
|
Hi peter,
I have 2 charts and I have been asked to align the X axis label text so that the "00 of the first chart is perpendicular to the "00" of the second chart etc...
On the first chart the "00" is aligned to the left and the "24" to the right; with the bar chart I tried to play with the "c.xAxis().setLabelAlignment(-6);" method trying to adjust the position of the text but the last text (24) is always too left compared to the last one of the above chart.
|
Re: alignment of x axis labels of 2 different charts |
Posted by Peter Kwan on Mar-02-2017 03:08 |
|
Hi Massimo,
For your first chart, you may use:
c.xAxis().setIndent(true);
this will cause the first chart to act like the second chart.
Hope this can help.
Regards
Peter Kwan |
Re: alignment of x axis labels of 2 different charts |
Posted by Massimo Brillante on Mar-02-2017 17:23 |
|
perfect and helpful as always; thanks Peter
|
|