changing the line 'pen' to dash or dot

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
FrancisP
Newbie
Newbie
Posts: 15
Joined: Mon Jul 04, 2005 4:00 am

changing the line 'pen' to dash or dot

Post by FrancisP » Fri Sep 30, 2005 5:17 am

Dear Supporter,
I'm using Build 2.0.2040.15119 and found the following problem: changing the pen to draw a (for instance) dotted line, changes the line in the legend but not the line on the graph.

Code snippet:
Dim lineseries As Steema.TeeChart.Styles.Line
lineseries = serie
lineseries.LinePen.Style = Drawing2D.DashStyle.Dot

As I understood it, this problem was solved in this version (see release specs).
If this is a known bug, could this be prioritised for repair as it is a very basic function in plotting multiple series in black and white (for reports and publications).

Cheers
Francis

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

Post by Narcís » Fri Sep 30, 2005 8:12 am

Hi Francis,

It works fine for me using the same version as you and the code below. Can you please test if this works for you?

Code: Select all

        Dim lineseries As New Steema.TeeChart.Styles.Line
        TChart1.Series.Add(lineseries)
        lineseries.FillSampleValues()
        lineseries.LinePen.Style = Drawing2D.DashStyle.Dot
BTW: Please notice that this forum is for VCL TeeChart version. We would appreciate that when you post a message related to .NET version you posted it at the TeeChart for .NET forum.
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

FrancisP
Newbie
Newbie
Posts: 15
Joined: Mon Jul 04, 2005 4:00 am

Post by FrancisP » Fri Sep 30, 2005 10:35 pm

Hi Narcis,
Sorry, my mistake :oops: , it should have gone to the .Net forum (can you move it?).

My problem has been resolved :D and I think there were two issues:
1: during compilation I got a warning that the new TeeChart file (library I think) could not override the old one. Manually removing the dll's solved that one.
2: there are a lot of data points in the series which seem to 'fuse' the dots into a solid line (would that make sense?).

Thanks for your help,
Cheers
Francis

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

Post by Narcís » Mon Oct 03, 2005 7:27 am

Hi Francis,
Sorry, my mistake , it should have gone to the .Net forum (can you move it?).
Don't worry, just post next messages on the .NET forum.
My problem has been resolved and I think there were two issues:
1: during compilation I got a warning that the new TeeChart file (library I think) could not override the old one. Manually removing the dll's solved that one.
Yes, this needs to be done in some cases.
2: there are a lot of data points in the series which seem to 'fuse' the dots into a solid line (would that make sense?).
Yes, this would also make sense.
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