Chart Not Responding Problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
eidola
Newbie
Newbie
Posts: 4
Joined: Wed Oct 19, 2011 12:00 am

Chart Not Responding Problem

Post by eidola » Fri Nov 11, 2011 8:37 am

Hi,

I met a hanging problem when I try to manipulate axis ranges manually. I can reproduce the problem by using the following code.

Code: Select all

private void InitializeChart()
{
    tChart1.Aspect.View3D = false;

    tChart1.Axes.Left.Automatic = false;
    tChart1.Axes.Left.Maximum = 2E304;
    tChart1.Axes.Left.Minimum = 0;
    tChart1.Axes.Left.Logarithmic = true;
    tChart1.Axes.Left.LogarithmicBase = 10;
    tChart1.Axes.Left.Labels.ValueFormat = "0.00#E+00";

    Points points = new Points();
    points.Add(10.0, 10.0);
    tChart1.Series.Add(points);
}
Could you please help to figure out what was wrong? Thank you. FYI, if I set maximum to 1E304 the problem will be gone.

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

Re: Chart Not Responding Problem

Post by Sandra » Fri Nov 11, 2011 11:38 am

Hello Edola,

I inform you that I can reproduce your problem and I have added it in wish-list with number [TF02015830]. We will try to fix it for next maintenance releases of TeeChart.Net.

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

eidola
Newbie
Newbie
Posts: 4
Joined: Wed Oct 19, 2011 12:00 am

Re: Chart Not Responding Problem

Post by eidola » Mon Nov 14, 2011 6:57 am

Hello, Sandra, could you please advise when I can expect the next release? As this is a quite urgent issue for me. Thanks!

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

Re: Chart Not Responding Problem

Post by Sandra » Mon Nov 14, 2011 9:24 am

Hello eidola,

I recommend you to be aware at this forum, our RSS news feed, twitter and facebook accounts for new release announcements and what's implemented on them.

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

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

Re: Chart Not Responding Problem

Post by Sandra » Mon Feb 20, 2012 11:35 am

Hello eidola,

We have been investigating your problem and we have arrived to a conlusion that bug with number [TF02015830] as not a bug of TeeChart.Net, so is a double range issue. There's no problem if you do a little range-checking first:

Code: Select all

private void InitializeChart()
{
   tChart1.Aspect.View3D = false;
   double max = 2E304;
   double min = 1;
   double diff = max - min;

   Points points = new Points();
   points.Add(10.0, 10.9);
   tChart1.Series.Add(points);
   tChart1.Axes.Left.Automatic = false;

   if (!double.Equals(max, diff))
   {
       tChart1.Axes.Left.Maximum = max;
       tChart1.Axes.Left.Minimum = min;
   }
   //tChart1.Axes.Left.Logarithmic = true;
   //tChart1.Axes.Left.Labels.Visible = false;
   tChart1.Axes.Left.Labels.ValueFormat = "0.00#E+00";
}
now, if you change the code a little thus:

Code: Select all

double max = 5E304;
double min = 2E304;
you will see that the code works fine. So it's not the size of the value per see, but the relative difference between the max and min. When difference is out of range of a double, then teechart hangs.

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