Charts not working when using component in Studio with language other than English
e-gallis opened this issue Β· comments
Hi @TBag,
I just opened your MSAPP file in a Power Apps Studio that is in French, and here's the result :
This is due to the fact that decimal number have a comma "," in French instead of a point "." in English.
Meaning that the components works only in languages where the point "." is the decimal character.
To workaround this issue, all decimal number inside your components SVGs should be formatted using:
Text(... , "#.0", "en-US")
This will ensure that the component will always use the point "." as the decimal character, thus making the component to work for all languages.
I understand that's a lot of work so if you need any help, I'd be happy to assist... π
Hello! Thanks for reporting this issue. Please feel free to make a PR for these changes and we can get it merged in.
I d'ont know if this issue is fixed yet but I got the same style of graph as @e-gallis
I think it is due to float numbers concatenated in svg. Numbers in svg uses dot as float number separator, whereas in french language, power apps uses semi column in float numbers. English people are not concerned because SVG and powerapps uses the dot for float numbers.
Hi @alexsolex,
I finished (just 5 minutes ago π
) updating the code for all charts to fix this issue. @TBag is not even aware of it (yet). I'll send him an email probably tomorrow and see with him how to push this update... π
So the "internationalized" version of the component should be available in the coming days... π
Good to know @e-gallis :) I was doing the same on my side + replacing some pieces of code for other ones like EncodeUrl(...) rather than Substitute(Substitute(Substitute(.... ;)
@alexsolex can you contact me on LinkedIn (/in/egallis) so we can put this all together before we submit it to Todd? π
Hi @e-gallis or @alexsolex,
i'm just struggling with the same language issue. Meanwhile there is no updated code available on github. I tried to fix it myself but i'm not sure how to place the "Text(... , "#.0", "en-US")". So i wonder if one of you should give me a whole example line or maybe send me the updated code by pm? π
Hi @heyjoj,
I've fixed the issue. I'm just struggling to find some time to push the fix to Github. Seeing your message might just encourage me to do so... π
Hi, that would be great π