How to show both low high thresholds as a single series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
huy
Newbie
Newbie
Posts: 22
Joined: Fri Dec 29, 2006 12:00 am

How to show both low high thresholds as a single series

Post by huy » Sat Apr 21, 2007 3:52 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Apr 23, 2007 10:10 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

huy
Newbie
Newbie
Posts: 22
Joined: Fri Dec 29, 2006 12:00 am

Post by huy » Mon Apr 23, 2007 6:05 pm

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.

Post Reply