Page 1 of 2
Shading under a plot curve and pan/zoom of charts
Posted: Mon May 14, 2007 7:07 pm
by 9787981
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.
Posted: Tue May 15, 2007 6:43 am
by Marjan
Hi.
perform shading of the area under a plot/trend curve?
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).
demonstrate panning and zooming of charts?
There are several examples available in TeeChart demo. Check the examples under "Miscellaneus->Zoom and Scroll".
Posted: Tue May 15, 2007 2:30 pm
by 9787981
Hello,
Do you have any pre-release documentation about the SeriesRegion tool?
When is V3 scheduled to be ready?
I looked on the download page, but could not see the V3 pre-release. Can you tell me where I can get this pre-release version from?
thanks,
Ben.
Posted: Tue May 15, 2007 2:40 pm
by narcis
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.
Posted: Tue May 15, 2007 2:51 pm
by 9787981
Hey thanks for the speedy reply Narcís...
Regards,
Ben.
Posted: Thu Oct 18, 2007 9:38 pm
by 9787981
Hi Narcís,
I need to evaluate the Region tool, which I understand to only be available in Version 3.
Can you help?
thanks,
Ben.
Posted: Fri Oct 19, 2007 7:10 am
by narcis
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.
Posted: Fri Oct 19, 2007 4:37 pm
by 9787981
Thank you Narcís.
Is the region tool going to be made available in Version 2.0? If not, where do version 2.0 users stand with acquiring Version 3.0?
I'm assuming that version 3.0 is entirely backward compatible with version 2.0?
Ben.
Posted: Mon Oct 22, 2007 1:30 pm
by narcis
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.
Posted: Mon Oct 22, 2007 4:19 pm
by 9787981
...does that mean that the V2 bug TF02012153 is already fixed under V3?
Ben.
Posted: Tue Oct 23, 2007 7:16 am
by narcis
Hi Ben,
This issue hasn't been fixed yet.
Posted: Tue Oct 23, 2007 8:24 am
by Chris
Hello Ben,
Ben wrote:...does that mean that the V2 bug TF02012153 is already fixed under V3?
Mmm, I'm not 100% sure this should be considered a bug, because:
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++;
}
}
}
}
This works fine under v3
Posted: Tue Oct 23, 2007 8:49 pm
by 9787981
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.
Posted: Wed Oct 24, 2007 11:26 am
by narcis
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.
Posted: Wed Oct 24, 2007 2:42 pm
by 9787981
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.