Page 1 of 1

How to show both low high thresholds as a single series

Posted: Sat Apr 21, 2007 3:52 pm
by 9643500
Hi forum,

I have been searching the forum for a solution but couldn't find out how to do this. I have an array of Series objects, they could be of different run-time classes of that type.
I need to insert a single series into this array that displays 2 horizontal lines: 1 for a low threshold and 1 for a high threshold. It would have been easy if the requirement did not specifically order that only 1 series can be used.
I have seen posts about the SeriesPoints class, which the forum admin said that the vertical lines dropped down to the x-axis on every points is currently always-on and cannot be turned off (turning it off will directly solve the problem.)
I think I have explored all posibilities in the provided Series class family but still I couldn't solve my problem. I am thinking of inheriting from Line class, but have precisely not a single idea of where to start.

I am near to the end of my design phase so a definite answer to this difficulty is very necessary. Any help is appreciated.

Thank you.
Huy

Posted: Mon Apr 23, 2007 10:10 am
by narcis
Hi Huy,
I have seen posts about the SeriesPoints class, which the forum admin said that the vertical lines dropped down to the x-axis on every points is currently always-on and cannot be turned off (turning it off will directly solve the problem.)
Could you please post the link of this thread?
I think I have explored all posibilities in the provided Series class family but still I couldn't solve my problem. I am thinking of inheriting from Line class, but have precisely not a single idea of where to start.
Yes, I think this is the only way to achieve what you request. Here you'll find an example of custom series with overridden draw method.

Posted: Mon Apr 23, 2007 6:05 pm
by 9643500
Hi NarcĂ­s,

Sorry I think I incorrectly name the type of the series class. It should be series LinePoint class instead of "SeriesPoints" (this one does not exist). I can't remember where I got that impression from and I can't find that link again.

I will look at the code in your link of custom series class. The custom draw looks not complex and hopefully is a way to solve my problem. For the moment, I am trying another workaround that involves changing the logic of handling series, to avoid that requirement.

Thanks for your prompt reply.