Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chart hanging #25

Closed
muchenz opened this issue Apr 19, 2021 · 1 comment
Closed

Chart hanging #25

muchenz opened this issue Apr 19, 2021 · 1 comment

Comments

@muchenz
Copy link

muchenz commented Apr 19, 2021

When data is like on picture.

ftt_chart_changing

Scrolling cause hanging WPF application. Chart trying to zoom and then hang program. Low value is about 5.0*10^-8 like on tip label.

Edit1:

Seems in Axis.cs loops:

for (var i = start; i <= max; i += s)

and

for (var i = start; i <= dataBounds.max; i += s)

cause hanging because variable 's' is in this case very, very small comparing to 'max'

Edit2:

I added before first for loop:
if (max / s > 1000) s = max / 1000;
and before second:
if (dataBounds.max / s > 1000) s = dataBounds.max / 1000;

It works (no hanging), but under high magnification Y axis labels disappear.

@beto-rodriguez
Copy link
Owner

Thanks for the report, this issue should be gone now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants