Open QuentinBubu opened 1 month ago
Same problem
Must that not be 'fr-FR' as local name?
Unfortunately, no
I followed the instructions given here https://apexcharts.com/docs/localization/
And also tried with fr-FR
but it doesn't change anything :c
Hi,
I apologize, but when I wanted to change location, an error was generated by JS. I create a class named ChartLocaleFr like that :
and I initialize a static instance (
public static ChartLocaleFr ChartLocaleFrInstance { get; set; } = new ChartLocaleFr();
).In my extension, I create a new list of locales and setting up this static instance as
DefaultLocale
In Blazor, during generation, this error is generated by JavaScript :
Uncaught (in promise) Error: Wrong locale name provided. Please make sure you set the correct locale name in options
.I've register local in array with
chart.ChartOptions.Chart.Locales.Add(ChartLocaleFrInstance);
And call correct (normally) name (
ChartLocaleFrInstance.Name
).If I remove
I have this error genereted by C#
System.NullReferenceException : 'Object reference not set to an instance of an object.'
onchart.ChartOptions.Chart.Locales.Add(ChartLocaleFrInstance);
So, I've missed somethings or It's a bug ?
Best regards, Quentin