Page 1 of 1

Numeric gauge and markers

Posted: Fri Nov 08, 2013 10:14 am
by 15654539
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?

Re: Numeric gauge and markers

Posted: Fri Nov 08, 2013 4:16 pm
by 10050769
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,

Re: Numeric gauge and markers

Posted: Fri Nov 08, 2013 5:05 pm
by 15654539
Thanks I have just upgraded but the problems still happens

Re: Numeric gauge and markers

Posted: Mon Nov 11, 2013 12:30 pm
by 10050769
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,

Re: Numeric gauge and markers

Posted: Mon Nov 11, 2013 2:20 pm
by 15654539
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

Re: Numeric gauge and markers

Posted: Mon Nov 11, 2013 4:43 pm
by 10050769
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,

Re: Numeric gauge and markers

Posted: Mon Nov 11, 2013 4:47 pm
by 15654539
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...

Re: Numeric gauge and markers

Posted: Thu Nov 14, 2013 9:58 am
by 10050769
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,