Open sjd78 opened 2 years ago
cc @dlabrecq
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This is something that must be fixed upstream -- see https://github.com/FormidableLabs/victory/issues/2108
Describe the problem By default the
@patternfly/react-charts
chart tooltips use the same text width estimation as is used in the Victory charts. This estimation works ok for ASCII characters, but underestimate sizes for other non-Latin character code pages.How do you reproduce the problem? Have a chart tooltip is any non-Latin character language. Japanese is a good example.
Expected behavior The tooltips for Latin character languages have their text's width estimated well, but for non-Latin character language (such as Japanese), the text width is vastly underestimated.
Is this issue blocking you? No, but could be very common in non-Latin languages. It was first detected in a Japanese translation.
The workaround used was to force the tooltip to a constant width wide enough to display the tooltip in every translation.
For example, in (https://github.com/oVirt/ovirt-engine-ui-extensions/blob/0642c73c45dc084bd841e1928884dd1fa61bb0b0/src/components/patternfly/DonutChart.js#L40-L52), the
ChartTooltip
'sflyoutWidth
is set to a constant value:Screenshots
Example 1:
Example 2: What is your environment?
"@patternfly/react-charts": "^6.74.3"
What is your product and what release date are you targeting? oVirt
Any other information? See: