Page 1 of 1

Chart Not Responding Problem

Posted: Fri Nov 11, 2011 8:37 am
by 15660495
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.

Re: Chart Not Responding Problem

Posted: Fri Nov 11, 2011 11:38 am
by 10050769
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,

Re: Chart Not Responding Problem

Posted: Mon Nov 14, 2011 6:57 am
by 15660495
Hello, Sandra, could you please advise when I can expect the next release? As this is a quite urgent issue for me. Thanks!

Re: Chart Not Responding Problem

Posted: Mon Nov 14, 2011 9:24 am
by 10050769
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,

Re: Chart Not Responding Problem

Posted: Mon Feb 20, 2012 11:35 am
by 10050769
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,