- TeeChart Error.jpg (155.61 KiB) Viewed 7565 times
TeeChart35 .Net Project Issue
TeeChart35 .Net Project Issue
We are having some strange issue as shown in attached image. It shows left and right axis with only one value. The problem comes while we referenced TeeChart35 (.Net) project instead of TeeChart.dll in this sample application. Please let us know the solution asap.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: TeeChart35 .Net Project Issue
Quant,
Do please bear in mind our suggestions for how to post to this forum, which you can read here. Would you please be so kind as to follow point 2), that is, to create a simple example project with which we can reproduce the issue here?
Do please bear in mind our suggestions for how to post to this forum, which you can read here. Would you please be so kind as to follow point 2), that is, to create a simple example project with which we can reproduce the issue here?
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: TeeChart35 .Net Project Issue
Please find attached sample example project. Kindly note that we referenced TeeChart35 Project (Source Code) in this sample application.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: TeeChart35 .Net Project Issue
Hello,
As you have the source code version, you can change the MinimalDifference() method of Utils.cs to the following:
That will resolve the issue.
As you have the source code version, you can change the MinimalDifference() method of Utils.cs to the following:
Code: Select all
public static bool MinimalDifference(double value1, double value2, int units)
{
long lValue1 = BitConverter.DoubleToInt64Bits(value1);
long lValue2 = BitConverter.DoubleToInt64Bits(value2);
// If the signs are different, return false except for +0 and -0.
if ((lValue1 >> 63) != (lValue2 >> 63))
{
if (value1 == value2)
return true;
return false;
}
long diff = Math.Abs(lValue1 - lValue2);
if (diff <= (long)units)
return true;
return false;
}
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |