Page 1 of 1

change color of line chart

Posted: Sun Nov 02, 2008 5:56 pm
by 13045482
Hi
I have a line chart.

Dim tchlinVPECurve As New Steema.TeeChart.Styles.Line


How to set/change its color?The below does not work->

tchlinVPECurve.Brush.Color = Color.Gray

Thanks in advance.

Posted: Mon Nov 03, 2008 10:58 am
by narcis
Hi shikha,

Try using this:

Code: Select all

			tchlinVPECurve.Color = Color.Gray

Posted: Mon Nov 03, 2008 3:21 pm
by 13045482
Thanks! this works but i am wondering is there any way to know the present color of series. I tried using msgbox(seriesname.color) but it gives error.

Posted: Mon Nov 03, 2008 3:55 pm
by narcis
Hi shikha,

Yes, you can use msgbox(tchlinVPECurve.Color).

Posted: Tue Nov 04, 2008 5:04 am
by 13045482
Thanks msgbox(<seriesname>.color.tostring()) works.