DashPattern for Custom DashStyle line series?
-
- Newbie
- Posts: 20
- Joined: Fri May 26, 2006 12:00 am
DashPattern for Custom DashStyle line series?
I have a Line series that I am attempting to set the Style to be the System.Drawing.Drawing2D.Custom DashStyle.
It does not appear that the chart is plotting the line using the DashPattern that I set under the .LinePen.DrawingPen.DashPattern property.
The line in the chart looks to be nothing but single dots no matter what I set the DashPattern to.
Is there something I am missing that needs to be done or set to get the chart to use my custom DashPattern other than setting the .LinePen.DrawingPen.DashStyle to custom and assing the .DashPattern?
I also tried setting the .LinePen.Style to Custom as well.
Neither setting appears to force the chart to pick up the DashPattern.
Thanks.
It does not appear that the chart is plotting the line using the DashPattern that I set under the .LinePen.DrawingPen.DashPattern property.
The line in the chart looks to be nothing but single dots no matter what I set the DashPattern to.
Is there something I am missing that needs to be done or set to get the chart to use my custom DashPattern other than setting the .LinePen.DrawingPen.DashStyle to custom and assing the .DashPattern?
I also tried setting the .LinePen.Style to Custom as well.
Neither setting appears to force the chart to pick up the DashPattern.
Thanks.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Aaron,
It works fine for me here using this:
Have you tried if this works at your end?
It works fine for me here using this:
Code: Select all
line1.LinePen.Style = System.Drawing.Drawing2D.DashStyle.Dash;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 20
- Joined: Fri May 26, 2006 12:00 am
The code that you show there works just fine for the 5 pre-defined dash styles (Solid, Dash, Dot, DotDash and DotDotDash).
However, the option that I was asking about which is NOT working is the System.Drawing.Drwaing2D.DashStyle.CUSTOM.
When you select Custom, you should be allowed to specify a DashPattern within the line1.LinePen.DrawingPen.DashPattern property but the chart does not appear to be using that custom pattern to draw the line.
We need more than 5 styles of lines for the plotting that we want to do.
This is why we are trying to use the DashStyle.Custom option to specify how the line will appear.
However, the option that I was asking about which is NOT working is the System.Drawing.Drwaing2D.DashStyle.CUSTOM.
When you select Custom, you should be allowed to specify a DashPattern within the line1.LinePen.DrawingPen.DashPattern property but the chart does not appear to be using that custom pattern to draw the line.
We need more than 5 styles of lines for the plotting that we want to do.
This is why we are trying to use the DashStyle.Custom option to specify how the line will appear.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Aaron,
Yes, you are right, DashPattern is not considered. We have already added this for the next maintenance release.
Yes, you are right, DashPattern is not considered. We have already added this for the next maintenance release.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 20
- Joined: Fri May 26, 2006 12:00 am
Thanks again for the response.
Is there a schedule for the maintenance release?
Or at least a general idea of how often they typically occur?
We are in the process of evaluating how well the .NET version of TeeChart will meet our plotting needs for a new application we wish to develop. The addition of custom line styles using the DashPattern will be a very helpful addition and it would be good for us to know when that might get implemented.
Thanks.
Is there a schedule for the maintenance release?
Or at least a general idea of how often they typically occur?
We are in the process of evaluating how well the .NET version of TeeChart will meet our plotting needs for a new application we wish to develop. The addition of custom line styles using the DashPattern will be a very helpful addition and it would be good for us to know when that might get implemented.
Thanks.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Aaron,
We expect to have the next release ready for the first week of December. Please be aware at this forum for new releases announcements.
We expect to have the next release ready for the first week of December. Please be aware at this forum for new releases announcements.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Aaron,
FYI, we have posted a new maintenance release at the client area which includes DashPattern property support.
FYI, we have posted a new maintenance release at the client area which includes DashPattern property support.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 20
- Joined: Fri May 26, 2006 12:00 am
I have installed the newest eval version to attempt to test the DashPattern support.
The new version seems to be performing exactly the same way the old one was.
Do you have an sample that demonstrates the new DashPattern support so I can see how this is implemented and used? I just want to make sure I am attempting to use what you folks added with this update.
Thanks.
The new version seems to be performing exactly the same way the old one was.
Do you have an sample that demonstrates the new DashPattern support so I can see how this is implemented and used? I just want to make sure I am attempting to use what you folks added with this update.
Thanks.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Aaron,
Sure, it works like this:
Sure, it works like this:
Code: Select all
line1.LinePen.Style = System.Drawing.Drawing2D.DashStyle.Custom;
line1.LinePen.DashPattern = new float[] { 4.0F, 2.0F, 1.0F, 3.0F };
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 20
- Joined: Fri May 26, 2006 12:00 am