-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
fix(label): Charsets like Cyrillic should break work the same as Latin #17941
Comments
Currently, the breaking logic is to check if the letter is latin. Maybe this is not accurate. Any idea to improve this? |
Hi
If we could use css styles and formatter for legend like for tooltip it was great Or we can check if charsets is Cyrillic. For Cyrillic charset codes is from 0x80 to 0xFF. So we can do like this:
I guess decision with css more flexible |
|
Version
5.3.0+
Link to Minimal Reproduction
https://jsfiddle.net/nfaq68L2/
Steps to Reproduce
Current Behavior
When I use ukraine language "overflow: 'break'" for pie series legend breaks by character instead of by word. For example word "цвітуть" must be at new line but on new line character "ь". When I use english language words breaks correct.
![telegram-cloud-photo-size-2-5456387265736589518-y](https://user-images.githubusercontent.com/13381209/202792560-af4a3c71-60e3-4784-8a35-527b94a29077.jpg)
Expected Behavior
overflow: 'break' for pie series legend should break by word.
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: