Thickness of curves problem

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
MirroZV
Posts: 45
Joined: Wed May 13, 2020 10:41 am

Thickness of curves problem

Post by MirroZV » Mon Jan 24, 2022 12:29 pm

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?
Attachments
Curve Setup 1.PNG
Curve Setup 1.PNG (81.95 KiB) Viewed 3837 times
Dots Setup 1.PNG
Dots Setup 1.PNG (45.75 KiB) Viewed 3837 times
Dots Setup 2.PNG
Dots Setup 2.PNG (31.25 KiB) Viewed 3837 times

MirroZV
Posts: 45
Joined: Wed May 13, 2020 10:41 am

Re: Thickness of curves problem

Post by MirroZV » Mon Jan 24, 2022 12:30 pm

one more picture
Attachments
Curve Setup 2.PNG
Curve Setup 2.PNG (63.43 KiB) Viewed 3835 times

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Thickness of curves problem

Post by ArctionKestutis » Mon Jan 24, 2022 1:14 pm

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.

Post Reply