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

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
helmut ess
Newbie
Newbie
Posts: 7
Joined: Mon Nov 06, 2006 12:00 am
Contact:

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

Post by helmut ess » Thu Jul 19, 2007 3:18 pm

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

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Fri Jul 20, 2007 8:00 am

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;
        }
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

helmut ess
Newbie
Newbie
Posts: 7
Joined: Mon Nov 06, 2006 12:00 am
Contact:

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

Post by helmut ess » Fri Jul 20, 2007 8:49 am

Thank you for your help.

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

regards helmut

Post Reply