Changed styling after update to 10.1.2.2

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

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

Changed styling after update to 10.1.2.2

Post by MirroZV » Thu Nov 25, 2021 9:07 am

Hello guys.

We have updated lighting chart libraries to latest version 10.1.2.2.
We have noticed, that some styling were changed.

In attachments, you can see 2 kinds of images, master and techstory where master is with version 8.5.1.1 and tech story with version 10.1.2.2.
MicrosoftTeams-image (2).png
MicrosoftTeams-image (2).png (198.09 KiB) Viewed 64 times
MicrosoftTeams-image (1).png
MicrosoftTeams-image (1).png (178.69 KiB) Viewed 64 times
MicrosoftTeams-image.png
MicrosoftTeams-image.png (130.54 KiB) Viewed 64 times
What can we do to fix this issue?

Thanks for answer.

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

Re: Changed styling after update to 10.1.2.2

Post by MirroZV » Thu Nov 25, 2021 9:08 am

One more picture :)
MicrosoftTeams-image (3).png
MicrosoftTeams-image (3).png (193.43 KiB) Viewed 63 times

Arction_LasseP
Posts: 123
Joined: Wed Mar 27, 2019 1:05 pm

Re: Changed styling after update to 10.1.2.2

Post by Arction_LasseP » Thu Nov 25, 2021 11:01 am

Hello,

We have received one report about a similar issue before. Unfortunately, this is quite mysterious as some of us can reproduce the issue under certain conditions, while for others the fonts are always working correctly. So far we haven't found any logic about when this is happening.

There are some workarounds which could be tested:

-Ensure that you are not using High FontsQuality setting. Set it to Mid instead:
chart.ChartRenderOptions.FontsQuality = FontsRenderingQuality.Mid;

-The issue seems to happen with certain font sizes only. Try changing the axis label and unit text fonts:
chart.ViewXY.YAxes[0].LabelsFont.Size = 13;
chart.ViewXY.YAxes[0].Units.Font.Size = 16;

-Using rendering engine 9 can prevent this from happening:
chart.ChartRenderOptions.DeviceType = RendererDeviceType.HardwareOnlyD9;

-The issue could be related to the used GPU. If your computer has several graphic cards, you can try changing the used card via GPUPreference setting. Try both High and Low options:
chart.ChartRenderOptions.GPUPreference = GPUPreference.PreferHighPerformanceGraphics;

Best regards,
Lasse

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

Re: Changed styling after update to 10.1.2.2

Post by MirroZV » Thu Nov 25, 2021 2:32 pm

Thanks for your answer :)

I have tried all your suggestions and only one worked :(
"-Ensure that you are not using High FontsQuality setting. Set it to Mid instead:
chart.ChartRenderOptions.FontsQuality = FontsRenderingQuality.Mid;"

Unfortunatelly, chart looks not so good and we can not accept such a render quality of texts in chart.

Do you think make sense to wait to some fix or do you think it will be not fixed so soon?

Arction_LasseP
Posts: 123
Joined: Wed Mar 27, 2019 1:05 pm

Re: Changed styling after update to 10.1.2.2

Post by Arction_LasseP » Fri Nov 26, 2021 9:29 am

Hello,

We cannot promise a fix for this issue soon, as we actually are in the middle of release process, and adding new fixes at this point could delay the release, especially when it is not a simple fix like in this case. If there is a fix, it will be included in the release after this one (time not decided yet but March-April 2022 is probable).

The problem is that the error is not consistent. For example in our tests, the exact same test project worked fine on my colleague's computer but not on mine. Only difference was that I had a slightly newer GPU. Also, you mentioned that only Mid FontsQuality worked in your case. In my tests, also changing font size and using HardwareOnlyDX9 setting fixed the issue. These could indicate that the issue is computer / GPU specific, in which case fixing it is very difficult.

How many different font sizes did you try? Could you try several various sizes? For example in my tests axis label fonts 12 and 15 produced the issue while 13, 14 and 16 didn't.

As for the Units text, you could try increasing the margin width:
chart.ViewXY.AxisLayout.AutoAdjustMargins = false;
chart.ViewXY.Margins = new Thickness(75, 30, 30, 55);

Alternatively, change its distance to axis:
chart.ViewXY.AxisLayout.YAxisTitleAutoPlacement = false;
chart.ViewXY.YAxes[0].Units.DistanceToAxis = 15;

Best regards,
Lasse

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

Re: Changed styling after update to 10.1.2.2

Post by MirroZV » Tue Nov 30, 2021 3:11 pm

Hello guys.

Thanks for another suggestions but unfortunately, nothing helped, I think that it was more bad than before.

What I noticed is that also in Visual Studio xaml editor I can see this issue.
Untitled.png
Untitled.png (38.71 KiB) Viewed 32 times
We decided to not upgrade LightingChart to version 10.1.2.2 and we will wait for a fix (fingers crossed).
If you will need some help or will have some workarounds, feel free to contact me.