|
How to Draw vertical lines with the given range of hours |
Posted by Dams on Jun-21-2012 23:13 |
|
Hi Peter,
I need your Help! As per my requirement, I need to Draw the vertical lines with the given range of hours.
example : Q1 value is -66.9 Which needs to drawn between 72-60.
Please find the attached image.
Thanks
Dams |
Re: How to Draw vertical lines with the given range of hours |
Posted by Dams on Jun-21-2012 23:20 |
|
Hi Peter,
I forgot to attach the image
Thanks
Dams
|
Re: How to Draw vertical lines with the given range of hours |
Posted by Peter Kwan on Jun-22-2012 02:10 |
|
Hi Dams,
To draw a vertical line at a certain position, you may use Axis.addMark. In your case, you may want to put Q1 and Q3 on the top x-axis, so you may add the mark to the top x-axis. For example,
//top x-axis same scale as bottom x-axis
c.xAxis2().syncAxis(c.xAxis());
c.xAxis2().addMark(xPos, 0x000000, "Q1");
The exact xPos to use depends on what are the x-coordinates you are using. From your chart, it is not clear to me what are the x-coordinates. For example, the position "> 72" can mean anything. If "> 72" really means "84-72", then you may use the x-coordinates -84 to 84 for your data, and the xPos can simply be -66.9.
Hope this can help.
Regards
Peter Kwan |
Re: How to Draw vertical lines with the given range of hours |
Posted by Dams on Jun-22-2012 23:58 |
|
Hi Peter,
Thanks for your Reply. I have added the Q1 and Q3 on the top x-axis. But i want to draw
a vertical line at given position.
Here is my requirement :
>72 means above -72 Hours
72-60 means -72 to -60
60-48 means -60 to -48
--
--
--
12-0 means -12 to 0. these are all -ve hours.
0-12 means 0 to 12 hours
12-24 means 12 to 24 hours
--
--
--
60-72 means 60 to 72 hours
72 means above 72 hours.
So I want to draw a line at -66.9 means the x-axis position between the range of -72 to
-60. and draw another line at -56.4 means the x-axis position between the range of -60
to 48. How can I mark the line at the exact position.
If it is a -ve hours then draw a line at -ve hours range and if it is +ve hours then draw a
line at positive hours.
Please find the attached file.
Thanks
Dams
|
|