|
Draw a text box at the right side of the x-axis |
Posted by Leo on Sep-29-2011 20:40 |
|
I have a requirement that there are several y-axis and they are all in the left side of the chart. I select a time range and get some values for this time range.
for example, from 09/23/2008 00:00:00 to 09/28/2008 00:00:00, if the last value is for the date time '09/27/2008 02:00:00' and it is not the end time of time range, I would like to draw a text box on the right side of the x-axis and it positions at the small red rectangle in the attached image.
By the way because the the y-axises are at the left side of the chart, so I can not call the method chart.setYAxisOnRight and them its it's easy to set the text box on the right side
of the right.
Is this possible?
Thanks for any help.
|
Re: Draw a text box at the right side of the x-axis |
Posted by Leo on Sep-29-2011 20:47 |
|
for example the green line is not the end point for the time range, so i would like to draw a text box on the small rectangle on the right x-axis |
Re: Draw a text box at the right side of the x-axis |
Posted by Peter Kwan on Sep-30-2011 01:47 |
|
Hi Leo,
You may use something like:
chart.xAxis().setTitle("abcd", "Arial Bold", 8).setAlignment(Chart.Right);
Hope this can help.
Regards
Peter Kwan |
|