Numeric gauge and markers

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Numeric gauge and markers

Post by acastro » Fri Nov 08, 2013 10:14 am

When I add a serie to a numeric gauge some markers are automatically added.
But when I remove the serie the markers are not deleted automatically, is this behaviour right?
Attachments
NumericGaugeMarkers.png
NumericGaugeMarkers.png (11.81 KiB) Viewed 10738 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Numeric gauge and markers

Post by Sandra » Fri Nov 08, 2013 4:16 pm

Hello wakeup,

We published a new version of TeeChartFor.Net, few days ago, as you can see in next link. Could you tell us if your problem appear using this version? If appears, could you tell us we need do to reproduce it, because if I use last version, I can't reproduce your problem.

Thanks,
Best Regards,
Sandra Pazos / 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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Numeric gauge and markers

Post by acastro » Fri Nov 08, 2013 5:05 pm

Thanks I have just upgraded but the problems still happens

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Numeric gauge and markers

Post by Sandra » Mon Nov 11, 2013 12:30 pm

Hello wakeup,

I can not reproduce your problem with latest version of TeeChartFor.Net 4.1.2013.11080. In this point, Could you indicate us, step to step, what must I do to reproduce this problem?

Thanks,
Best Regards,
Sandra Pazos / 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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Numeric gauge and markers

Post by acastro » Mon Nov 11, 2013 2:20 pm

Please download the example project
http://193.145.251.126/pnp/files/qUdMHY ... chart2.zip

Click en button1 and then in button2, you will see markers are not deleted and they can be seen in "Tools" sheet.

Thanks

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Numeric gauge and markers

Post by Sandra » Mon Nov 11, 2013 4:43 pm

Hello wakeup,

I have realized that you use RemoveAt(0). I recommend you to remove series, use series Clear() method instead of RemoveAt(0) as do in next line of code:

Code: Select all

tChart1.Series.Clear()
Could you tell us if previous code works in your end?

Thanks,
Best Regards,
Sandra Pazos / 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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Numeric gauge and markers

Post by acastro » Mon Nov 11, 2013 4:47 pm

Yes but that removes all series, and I usually have several series and I only want to delete one so I have to use it...

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Numeric gauge and markers

Post by Sandra » Thu Nov 14, 2013 9:58 am

Hello wakeup,
Sorry for the delay. I have tested your code and you are right. I have added your problem in bug list number [Id100]. We will try to fix it to upcoming versions of TeeChartFor.net. You can check the bug status in next link. Remember, now in new bug tracker system, you can add the problems you consider as a bug, directly.
On the other hand, you can use next workaround to remove the NumericSeries:

Code: Select all

      private void button1_Click(object sender, EventArgs e)
        {
          Steema.TeeChart.Styles.NumericGauge num = new Steema.TeeChart.Styles.NumericGauge();
          tChart1.Series.Add(num);
        }
        private void button2_Click(object sender, EventArgs e)
        {
          Steema.TeeChart.Styles.NumericGauge s = (Steema.TeeChart.Styles.NumericGauge)tChart1[0];
          s.Markers.Clear();
          tChart1.Series.RemoveAt(0); // tChart1.Series.Remove(s); 
          tChart1.Refresh();
        }
Thanks,
Best Regards,
Sandra Pazos / 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