Shading under a plot curve and pan/zoom of charts

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
BenW
Advanced
Posts: 119
Joined: Wed Aug 10, 2005 4:00 am

Shading under a plot curve and pan/zoom of charts

Post by BenW » Mon May 14, 2007 7:07 pm

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.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue May 15, 2007 6:43 am

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".
Marjan Slatinek,
http://www.steema.com

BenW
Advanced
Posts: 119
Joined: Wed Aug 10, 2005 4:00 am

Post by BenW » Tue May 15, 2007 2:30 pm

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.

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

Post by Narcís » Tue May 15, 2007 2:40 pm

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.
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

BenW
Advanced
Posts: 119
Joined: Wed Aug 10, 2005 4:00 am

Post by BenW » Tue May 15, 2007 2:51 pm

Hey thanks for the speedy reply Narcís...

Regards,
Ben.

BenW
Advanced
Posts: 119
Joined: Wed Aug 10, 2005 4:00 am

Post by BenW » Thu Oct 18, 2007 9:38 pm

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.

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 Oct 19, 2007 7:10 am

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.
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

BenW
Advanced
Posts: 119
Joined: Wed Aug 10, 2005 4:00 am

Post by BenW » Fri Oct 19, 2007 4:37 pm

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.

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 22, 2007 1:30 pm

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.
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

BenW
Advanced
Posts: 119
Joined: Wed Aug 10, 2005 4:00 am

Post by BenW » Mon Oct 22, 2007 4:19 pm

...does that mean that the V2 bug TF02012153 is already fixed under V3?

Ben.

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

Post by Narcís » Tue Oct 23, 2007 7:16 am

Hi Ben,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Tue Oct 23, 2007 8:24 am

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 :D
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/

BenW
Advanced
Posts: 119
Joined: Wed Aug 10, 2005 4:00 am

Post by BenW » Tue Oct 23, 2007 8:49 pm

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.

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

Post by Narcís » Wed Oct 24, 2007 11:26 am

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.
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

BenW
Advanced
Posts: 119
Joined: Wed Aug 10, 2005 4:00 am

Post by BenW » Wed Oct 24, 2007 2:42 pm

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.

Post Reply