Colorband streched across a part of the Chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Aptitude
Newbie
Newbie
Posts: 14
Joined: Wed May 23, 2007 12:00 am
Contact:

Colorband streched across a part of the Chart

Post by Aptitude » Tue May 06, 2008 8:01 am

Hi Support,

I am using a colorband tool in TeeChart.NET V3 with VS2005. I have a few fastlines on my charts and a vertical colorband attached to bottom Axis.

The fastlines are shown on custom vertical axis. So the Chart area is divided between various horizontal strips with a common bottom axis. Now I want to mark only a particular series which is shown in a small horizontal strip on the chart, using colorband. But colorband by default stretches through the chart across all the vertical custom axes. Is there any way out or is there any other tool that I could use for this?

Regards,
Gaurav

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

Post by Narcís » Tue May 06, 2008 9:28 am

Hi Gaurav,

In that case I can only think about customly drawing a Rectangle in the chart's canvas. You'll find more information about custom drawing in Tutorial 13 - Custom drawing on the Chart Panel. Tutorials can be found at TeeChart's program group.
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

Aptitude
Newbie
Newbie
Posts: 14
Joined: Wed May 23, 2007 12:00 am
Contact:

Post by Aptitude » Tue May 06, 2008 9:38 am

But the rectangle would not be synchronized with the series when I zoom and scroll. Can you tell me how to go about it?

Any sort of fairly visible marking on the line itself would be good for our use. If I can display some sort of custom markers at those locations, that would serve the purpose.

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

Post by Narcís » Tue May 06, 2008 10:06 am

Hi Aptitude,

Yes, you could implement the custom drawing in the AfterDraw event so that it is updated every time the chart is repainted.
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

Post Reply