You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've used PieChart component for my blazor webassembly project. Shortly, this library is a very useful, simple and easy to understand library which can be integrated to your projects in a very short time. But there is one important issue I really want to take attention. The UI components are drawn using Blazor Renderer, which makes the build process through elements and attributes given as strings. The problem may arise here, if you are not using invariant culture info, formatting according to some other language produces unrecognizable SVG initialization stings. The console logs given below show the apparent cause, be careful about the usage of commas and dots:
Working Version: (Invariant Culture)
blazor.webassembly.js:1 d=M 0.85 0 A 0.85 0.85 0 0 1 0.85 0 L 0 0
blazor.webassembly.js:1 d=M 0.85 0 A 0.85 0.85 0 0 1 0.85 0 L 0 0
blazor.webassembly.js:1 d=M 0.85 0 A 0.85 0.85 0 0 1 0.85 0 L 0 0
Not Working Version: (A culture which formats doubles using commas instead of dots)
blazor.webassembly.js:1 d=M 0,85 0 A 0,85 0,85 0 0 1 0,85 0 L 0 0
blazor.webassembly.js:1 d=M 0,85 0 A 0,85 0,85 0 0 1 0,85 0 L 0 0
blazor.webassembly.js:1 d=M 0,85 0 A 0,85 0,85 0 0 1 0,85 0 L 0 0
The text was updated successfully, but these errors were encountered:
I've used PieChart component for my blazor webassembly project. Shortly, this library is a very useful, simple and easy to understand library which can be integrated to your projects in a very short time. But there is one important issue I really want to take attention. The UI components are drawn using Blazor Renderer, which makes the build process through elements and attributes given as strings. The problem may arise here, if you are not using invariant culture info, formatting according to some other language produces unrecognizable SVG initialization stings. The console logs given below show the apparent cause, be careful about the usage of commas and dots:
Working Version: (Invariant Culture)
blazor.webassembly.js:1 d=M 0.85 0 A 0.85 0.85 0 0 1 0.85 0 L 0 0
blazor.webassembly.js:1 d=M 0.85 0 A 0.85 0.85 0 0 1 0.85 0 L 0 0
blazor.webassembly.js:1 d=M 0.85 0 A 0.85 0.85 0 0 1 0.85 0 L 0 0
Not Working Version: (A culture which formats doubles using commas instead of dots)
blazor.webassembly.js:1 d=M 0,85 0 A 0,85 0,85 0 0 1 0,85 0 L 0 0
blazor.webassembly.js:1 d=M 0,85 0 A 0,85 0,85 0 0 1 0,85 0 L 0 0
blazor.webassembly.js:1 d=M 0,85 0 A 0,85 0,85 0 0 1 0,85 0 L 0 0
The text was updated successfully, but these errors were encountered: