Page 1 of 1
TeeChart35 .Net Project Issue
Posted: Tue Apr 21, 2015 6:42 am
by 16071129
- TeeChart Error.jpg (155.61 KiB) Viewed 7562 times
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.
Re: TeeChart35 .Net Project Issue
Posted: Tue Apr 21, 2015 8:48 am
by Christopher
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?
Re: TeeChart35 .Net Project Issue
Posted: Tue Apr 21, 2015 10:50 am
by 16071129
Please find attached sample example project. Kindly note that we referenced TeeChart35 Project (Source Code) in this sample application.
Re: TeeChart35 .Net Project Issue
Posted: Tue Apr 21, 2015 3:38 pm
by Christopher
Hello,
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;
}
That will resolve the issue.