Page 1 of 1

Colorband streched across a part of the Chart

Posted: Tue May 06, 2008 8:01 am
by 45194
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

Posted: Tue May 06, 2008 9:28 am
by narcis
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.

Posted: Tue May 06, 2008 9:38 am
by 45194
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.

Posted: Tue May 06, 2008 10:06 am
by narcis
Hi Aptitude,

Yes, you could implement the custom drawing in the AfterDraw event so that it is updated every time the chart is repainted.