-
Notifications
You must be signed in to change notification settings - Fork 601
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
LiveChartsCore.SkiaSharpView.Blazor: zh-CN content becomes squares #793
Comments
Same problem (Bug 1) and solved. Try this: BTW, "\n" works well as linebreaks in tooltips in previous versions, but for some mysterious reason it became a square in beta.603. I solved this by replacing it with "\r\n". |
@zylalx1 Thanks for your comment. If so, that's a break change because the legend used to work well even though you don't clarify <CartesianChart
Series="ChartViewModel.Series"
XAxes="ChartViewModel.XAxes"
YAxes="ChartViewModel.YAxes"
LegendPosition="LiveChartsCore.Measure.LegendPosition.Right" /> Also, once I take your suggestion, the bug 2 appears again. It seems the native |
Yes, the API changed to what @zylalx1 mentioned, the docs will be updated soon. I also get the error message in the WASM sample even when trying your suggestion @zylalx1, need to investigate this further. You can see the error here: https://blazor-livecharts.controli.app/Axes/LabelsFormat2 |
FYI I fixed the issue of missing DLL (on my Blazor WASM project) by dong this: I've added an explicit reference to I've added an explicit NativeFileReference
info source: mono/SkiaSharp#1725 (comment) |
Yes @MithrilMan that seems to fix the issue, I was able to make this work with #848. I will explain that in the docs in the next version of the library. This is how to setup things in the next version of the library, HarfBuzz must be explicitly included (SkiaSharp/HarfBuzz bug?)
|
This is fixed now, please check the Blazor sample in this repo, it works properly there. |
Describe the bug
First of all, I've seen the previous issues #140 #347 #636 . The solutions of them do not work for me (which make me 😕 & 😞 ).
I have a hosted blazor wasm project (ASP.NET Core 6) which uses livechart2 and runs on CentOS.
The first version of
LiveChartsCore.SkiaSharpView.Blazor
I used is2.0.0-beta.513
.Bug 1: About Legends
The chart looks like the image below,
When the lib version is <=
2.0.0-beta.516
, the Chinese chars are shown well in the legends. But after2.0.0-beta.600
, they become squares.Bug 2: About Axis Name Paint
This bug exists for all versions since
beta.513
. When I'm trying to use Chinese as the axis name,All the three solutions do not work and the browser console shows
System.DllNotFoundException: libHarfBuzzSharp
exceptions like below,To Reproduce
All related code of the project are limited to the basic usage of
CartesianChart
.The only difference is that I want to take Chinese characters as the legend and axis name.
Expected behavior
Show zh-CN characters correctly.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: