Page 1 of 1

change color of point one point onclick, c#.NET

Posted: Thu Jul 19, 2007 3:18 pm
by 9792995
Hi there,

how can I change the color of only one point in a pointSeries during runtime, for exsample if I click on this point?

thank you for your help.

regards helmut

Posted: Fri Jul 20, 2007 8:00 am
by 9348258
Hi Helmut

You can do it with the "tChart1_ClickSeries" event of the point series, you can do somthing as below code:

Code: Select all

private void tChart1_ClickSeries(object sender, Steema.TeeChart.Styles.Series s, int valueIndex, MouseEventArgs e)
        {
            s[valueIndex].Color = Color.Red;
        }

change color of point one point onclick, c#.NET

Posted: Fri Jul 20, 2007 8:49 am
by 9792995
Thank you for your help.

It was necessary to to set the property "colorEach = true;". But after that everything works as expected.

regards helmut