Page 1 of 1

Change pen style while adding points to a serie

Posted: Mon Dec 15, 2003 1:50 pm
by 8120354
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 !

Posted: Tue Dec 16, 2003 2:41 pm
by Pep
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

Posted: Tue Dec 16, 2003 2:50 pm
by 8120354
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 ?

Posted: Thu Dec 18, 2003 12:12 pm
by 8120354
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 ?

Posted: Mon Dec 22, 2003 1:03 pm
by Pep
>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