Shading under a plot curve and pan/zoom of charts
Shading under a plot curve and pan/zoom of charts
Hello,
1. Is it possible for the .NET version of the Steema Teechart to perform shading of the area under a plot/trend curve? The shading color would be user configurable.
2. Also do you have any examples that demonstrate panning and zooming of charts?
thanks,
Ben.
1. Is it possible for the .NET version of the Steema Teechart to perform shading of the area under a plot/trend curve? The shading color would be user configurable.
2. Also do you have any examples that demonstrate panning and zooming of charts?
thanks,
Ben.
Hi.
This feature is implemented in the latest v3 pre-release version as SeriesRegionTool. This fully configurable tool colors a region under curve (defined by series values).perform shading of the area under a plot/trend curve?
There are several examples available in TeeChart demo. Check the examples under "Miscellaneus->Zoom and Scroll".demonstrate panning and zooming of charts?
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ben,
Everything can be found with TeeChart for .NET v3 Release Candidate version. This is available at TeeChart for .NET v2 download area. On this page there are the links to the VS2005 and VS2003 installers, then there's a link to the latest update build and the next section is called Version 3 RELEASE CANDIDATE (non-production), where you can download v3's Release Candidate build.
Regarding v3's release, we expect it to be out before the end of this week.
Everything can be found with TeeChart for .NET v3 Release Candidate version. This is available at TeeChart for .NET v2 download area. On this page there are the links to the VS2005 and VS2003 installers, then there's a link to the latest update build and the next section is called Version 3 RELEASE CANDIDATE (non-production), where you can download v3's Release Candidate build.
Regarding v3's release, we expect it to be out before the end of this week.
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 Ben,
That's right. You can download the fully functional v3 evaluation version at http://www.steema.com/downloads/form_tch_net.html. You'll find an example of the SeriesRegion tool at What's New?\Welcome !\New Chart Tools\Area under the curve in the features demo, available at TeeChart's program group.
That's right. You can download the fully functional v3 evaluation version at http://www.steema.com/downloads/form_tch_net.html. You'll find an example of the SeriesRegion tool at What's New?\Welcome !\New Chart Tools\Area under the curve in the features demo, available at TeeChart's program group.
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 Ben,
No, that tool won't be implemented in v2. This is a new feature in v3. You will find upgrading information here.
Yes, v3 is backwards compatible with v2. This is something we specially care about with new versions.
No, that tool won't be implemented in v2. This is a new feature in v3. You will find upgrading information here.
Yes, v3 is backwards compatible with v2. This is something we specially care about with new versions.
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 Ben,
This issue hasn't been fixed yet.
This issue hasn't been fixed yet.
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: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hello Ben,
1) The GetPointerStyle event was designed to change the style of the pointers and not their colour.
2) The series.Pointer.Color was designed to get and set the color of all series pointers.
I would recommend that you achieve a single line colour with multiple point colours in the following way:
This works fine under v3
Mmm, I'm not 100% sure this should be considered a bug, because:Ben wrote:...does that mean that the V2 bug TF02012153 is already fixed under V3?
1) The GetPointerStyle event was designed to change the style of the pointers and not their colour.
2) The series.Pointer.Color was designed to get and set the color of all series pointers.
I would recommend that you achieve a single line colour with multiple point colours in the following way:
Code: Select all
namespace SteemaIssue1
{
public partial class Form1 : Form
{
private Steema.TeeChart.Styles.Line line = null;
public Form1()
{
InitializeComponent();
this.Load +=new EventHandler(Form1_Load);
}
private void Form1_Load(object sender, EventArgs e)
{
this.line = new Steema.TeeChart.Styles.Line(tChart1.Chart);
line.Pointer.Visible = true;
line.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Triangle;
Color[] myPalette = new Color[] { Color.Blue, Color.DarkOrange, Color.Yellow, Color.Green, Color.DarkTurquoise };
Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(tChart1.Chart, myPalette);
}
int[] array = new int[7] {2,4,6,8,10,12,14};
int value = 0;
private void button1_Click(object sender, EventArgs e)
{
line.Color = Color.Black;
line.ColorEach = true;
line.ColorEachLine = false;
if (this.line != null)
{
this.line.Add(value, array[value%7]);
value++;
}
}
}
}
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Hello Christopher.
Please talk to Narcís and Edu as the bug was submitted by them and not me. Basically I need to find a solution to the following requirement:
Consider a line series (with markers) where the first value has arrived. It's color (i.e. Marker) needs to be red (i.e. no line is drawn yet, as this is the first value). The next value then arrives and it's Marker value needs to be blue, however the line joining the first value to the second value must be red, that is, it must be the same color as the previously drawn Marker. The next value that comes in, is blue and so the line joining it to the previous marker must still be blue, etc, etc.
Please understand that since the bug (TF02012153) was submitted we have been patiently awaiting a solution, and in the interim have been employing a workaround as recommended by Narcís/Edu. Please also understand that we have invested significantly in your product to provide an offering to our customers that has been in production for some time now.
Please review the above with Narcís/Edu, and I look forward to a solution to help us move forward in both V2 and ultimately V3 as it is likely that we will need to leverage the Region tool, which as I understand it, is only available in V3...
Kind Regards,
Ben.
Please talk to Narcís and Edu as the bug was submitted by them and not me. Basically I need to find a solution to the following requirement:
Consider a line series (with markers) where the first value has arrived. It's color (i.e. Marker) needs to be red (i.e. no line is drawn yet, as this is the first value). The next value then arrives and it's Marker value needs to be blue, however the line joining the first value to the second value must be red, that is, it must be the same color as the previously drawn Marker. The next value that comes in, is blue and so the line joining it to the previous marker must still be blue, etc, etc.
Please understand that since the bug (TF02012153) was submitted we have been patiently awaiting a solution, and in the interim have been employing a workaround as recommended by Narcís/Edu. Please also understand that we have invested significantly in your product to provide an offering to our customers that has been in production for some time now.
Please review the above with Narcís/Edu, and I look forward to a solution to help us move forward in both V2 and ultimately V3 as it is likely that we will need to leverage the Region tool, which as I understand it, is only available in V3...
Kind Regards,
Ben.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ben,
Is there any reason why you can't use the suggestion Christopher made to you? We will also consider implementing a new event or a new property to resolve the issue definitively.
Thanks in advance.
Is there any reason why you can't use the suggestion Christopher made to you? We will also consider implementing a new event or a new property to resolve the issue definitively.
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 |
Instructions - How to post in this forum |
Hi Narcís.
Yes I tried it, but the line color never changes and so does not satisfy the required functionality as previously described. I also tried setting line.ColorEachLine to true, to see if this would help, but the line color will follow the color of the new marker not the previous marker.
If you can come up with some code combination that will satisfy the necessary functional requirement, then I can try and modify our code to comply to see if it works...
thanks,
Ben.
Yes I tried it, but the line color never changes and so does not satisfy the required functionality as previously described. I also tried setting line.ColorEachLine to true, to see if this would help, but the line color will follow the color of the new marker not the previous marker.
If you can come up with some code combination that will satisfy the necessary functional requirement, then I can try and modify our code to comply to see if it works...
thanks,
Ben.