[ANSWERED] change the color of parts of a real-time FastLine

TeeChart for ActiveX, COM and ASP
Post Reply
jika
Newbie
Newbie
Posts: 27
Joined: Mon Mar 18, 2013 12:00 am

[ANSWERED] change the color of parts of a real-time FastLine

Post by jika » Fri Mar 22, 2013 6:41 am

hello
I want to change the color of parts of a real-time FastLine

Private Sub Form_Load ()
Dim i
with TChart1
     For i = 1 To 15
         If (i <7) Or (i> 10) Then
             . Series (0). AsFastLine.AddRealTime i Rnd (i) / 2, "", vbRed
         else
             . Series (0). AsFastLine.AddRealTime i Rnd (i) / 2, "", vbCyan
         End If
     Next i
     . Axis.Bottom.SetMinMax 0, 16
End With
End Sub
the color does not change,
how to thank you
Last edited by jika on Tue Apr 09, 2013 8:19 am, edited 1 time in total.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: change the color of parts of a real-time FastLine

Post by Narcís » Mon Apr 08, 2013 12:51 pm

Hi jika,

This is not possible with FastLine series, you should use Line series instead:

Code: Select all

    TChart1.Aspect.View3D = False
    TChart1.AddSeries scLine
    TChart1.Series(0).ColorEachPoint = True
    TChart1.Series(0).FillSampleValues 10
FastLine is optimized for best performance and stripped to the minimum for such purpose.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: change the color of parts of a real-time FastLine

Post by Narcís » Tue Apr 09, 2013 7:08 am

Hi jika,

I posted a reply to your inquiry. I wonder why you bumped this topic. If my reply didn't answer your issue please make it clearer.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

jika
Newbie
Newbie
Posts: 27
Joined: Mon Mar 18, 2013 12:00 am

Re: change the color of parts of a real-time FastLine

Post by jika » Tue Apr 09, 2013 7:44 am

votre reponse est correct
j'ai fait une erreur when I bumped this topic

comment fermer un topic quand la reponse est correct

jika
Newbie
Newbie
Posts: 27
Joined: Mon Mar 18, 2013 12:00 am

Re: change the color of parts of a real-time FastLine

Post by jika » Tue Apr 09, 2013 7:45 am

your answer is correct
I made ​​a mistake when i bumped this topic

how to close a topic when the answer is correct

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: change the color of parts of a real-time FastLine

Post by Narcís » Tue Apr 09, 2013 7:59 am

Hi jika,

Ok, no problem. You can just answer saying the answer worked fine for you or you can modify the subject including "[CLOSED]" or "[ANSWERED]" prefixes or lock the topic at the bottom right quick-mod tools.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply