Line series visibility changes on re-sizing chart
Line series visibility changes on re-sizing chart
Here is one problem that we are facing with line series visibility while re-sizing chart horizontally.
We are using TeeChart for .NET version 4.1.2014.5092.
The chart which exhibits this behavior has multiple line series, each of which has been plotted using 2 points.
The y values for each of points in these line series range between 0 and 1.
The chart is rendered perfectly but when the window containing it is re-sized horizontally, one random series is set invisible.
Decrease/increase width by around 5-10% of original width, repeat this action for 2-3 times; one random series will get hidden.
Please find attached compressed folder containing sample project.
Extract the contents, open & run the solution; and follow above mentioned steps to get the problem reproduced.
Images are also attached for illustrating this issue.
Let me know if anything is not clearly stated.
Please suggest if there exists any solution to fix this issue.
Any help will be really appreciable.
Thanks,
Chandran
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Line series visibility changes on re-sizing chart
Interesting problem, from a programmer's point of view, but apologies for this issue from a business-client point of view. I have found and resolved the issue, but unfortunately it requires a source-code change, and as such won't be available until the end of this month or the beginning of next month when the next maintenance release comes out.chandran wrote:Please suggest if there exists any solution to fix this issue.
Any help will be really appreciable.
For your interest, the issue is one of double precision and equivalence. Within the source code, a change has been made from:
Code: Select all
if (firstVisible >= 0)
{
tmpMax = CalcMinMaxValue(r.Right, r.Bottom, r.Left, r.Top);
if (notMandatory.Last <= tmpMax)
{
lastVisible = tmpLastIndex;
}
Code: Select all
if (firstVisible >= 0)
{
tmpMax = CalcMinMaxValue(r.Right, r.Bottom, r.Left, r.Top);
if (!Utils.MinimalDifference(notMandatory.Last, tmpMax, 1) || notMandatory.Last <= tmpMax)
{
lastVisible = tmpLastIndex;
}
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: Line series visibility changes on re-sizing chart
Thanks Christopher.