Page 1 of 1

Thickness of curves problem

Posted: Mon Jan 24, 2022 12:29 pm
by MirroZV
Hello,
we sometimes face the issue with thickness of curves in the lightning chart. The problem appears with the scenario:
- Laptop and and a second screen. Laptop opened. Laptop screen active

Can be, that there could be issue with rendering stuff?

Re: Thickness of curves problem

Posted: Mon Jan 24, 2022 12:30 pm
by MirroZV
one more picture

Re: Thickness of curves problem

Posted: Mon Jan 24, 2022 1:14 pm
by ArctionKestutis
It looks like some kind of scaling issue. I assume your 2 monitors have different DPI-factor (windows zooming factor).
DPI scaling of application is very broad topic. The scaling behavior depends on version of LightningChart(R) .NET library you use, the version of .NET (Framework or Core) application is targeting, settings of application, how you configured your monitors etc.?

I see that in image with "thicker" line, chart was actually was rendered smaller size and then stretched. As result line got thicker and image blurred. Don't know how to replicate this, because lately chart respond nicely to movement of application between several monitors with different DPI factors.
Starting from version 8.4.1 we change how per-monitor DPI-awarness is handled. If you want LightningChart to resize automatically when changed to another screen with different DPI scale settings, enable resizing. To enable resizing, AllowDPIChangeInduceWindowsResize property under Chart.Options needs to be set true. Alternatively, user can register to OnDPIChanged event and change its allowWindowResize attribute.

User Manual chapter 5.12 DPI handling explains it in more details.