Change pen style while adding points to a serie

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
nico193
Newbie
Newbie
Posts: 20
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Change pen style while adding points to a serie

Post by nico193 » Mon Dec 15, 2003 1:50 pm

Hello,

I'm using TeeChart for .Net and I'm facing a problem :

I'd like to change the pen style (line, dash, dot ...) while adding points
to a serie, so that the user can see there's a hole in the serie or that
some data are invalid.

I saw the possibility to change the color of the line between points
dynamically, but I cannot see any means to modify the pen style !!


Please help !

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Dec 16, 2003 2:41 pm

You can use the GetPointerStyle() event, e.g.

Code: Select all

    private void Form1_Load(object sender, System.EventArgs e) {
      Steema.TeeChart.Styles.Points points1 = new
Steema.TeeChart.Styles.Points(tChart1.Chart);
      points1.GetPointerStyle += new
Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventHandler(points1_GetPo
interStyle);
      points1.FillSampleValues(10);

    }

    private void points1_GetPointerStyle(Steema.TeeChart.Styles.CustomPoint
series, Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventArgs e) {
      if(e.ValueIndex == 9)
        e.Style = Steema.TeeChart.Styles.PointerStyles.Diamond;
    }

Josep Lluis Jorge
http://support.steema.com

nico193
Newbie
Newbie
Posts: 20
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Post by nico193 » Tue Dec 16, 2003 2:50 pm

Thanks for your help, but in your code you modify the points appearance. What I need to do is modifying the appearance of the line between these points, ie line, dot or dash.

It seems that the style of these lines is global to the serie :cry:

Is there a way to do this ?

nico193
Newbie
Newbie
Posts: 20
Joined: Thu Jun 05, 2003 4:00 am
Contact:

Post by nico193 » Thu Dec 18, 2003 12:12 pm

Do I have to wait 2 or 3 days before each answer on this licensed product :evil:

Do you consider seriously your support forum is efficient ?

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Dec 22, 2003 1:03 pm

>Is there a way to do this ?
No, that I know of. This feature is not yet available, I'll add it on our wish list to be considered to inclusion for the next releases.

>Do you consider seriously your support forum is efficient ?
We try to answer your questions as soon as possible , but if you need to be answered more quickly you can subscribe to ProSupport which gives you a priority support.

Josep Lluis Jorge
http://support.steema.com

Post Reply