I use g2plot JS library in Blazor and it works fine. My only problem is that on a German computer I don't get the decimal numbers with comma. The numbers are displayed in English format with a dot, which confuses the user!
I have asked both ChatGPT and Bard about this and they both think that my cultur of JS function should be taken from Blazor. Unfortunately, this statement is not true, because I also use the Ant-Blazor UI component, for example, and there the decimal numbers are displayed correctly in German format with comma. On the other hand, if you look at diagrams, the decimal numbers are displayed there with a dot. So if JS would take the cultur from Blazor, then I would have the correct number format everywhere in the application, right?
My question is, is there anywhere in the JS function where I can set the cultur? My current JS chart function in Blazor looks like this:
I use g2plot JS library in Blazor and it works fine. My only problem is that on a German computer I don't get the decimal numbers with comma. The numbers are displayed in English format with a dot, which confuses the user!
I have asked both ChatGPT and Bard about this and they both think that my cultur of JS function should be taken from Blazor. Unfortunately, this statement is not true, because I also use the Ant-Blazor UI component, for example, and there the decimal numbers are displayed correctly in German format with comma. On the other hand, if you look at diagrams, the decimal numbers are displayed there with a dot. So if JS would take the cultur from Blazor, then I would have the correct number format everywhere in the application, right?
My question is, is there anywhere in the JS function where I can set the cultur? My current JS chart function in Blazor looks like this:
Thanks pc