How to get comma separated values from blazor wrapper for Apexchart
You can pass some javascript as a formatter, something like this.
options.Yaxis.Add(new YAxis
{
Labels = new AxisLabels
{
Formatter = @"function (value) {
return '$' + Number(value).toLocaleString();}"
}
}
);
If you are using webassembly you also have the option to use .net as a formatter, Using the FormatYAxisLabel
<ApexChart TItem="Order"
Title="Order Net Value"
FormatYAxisLabel="GetYAxisLabel">
private string GetYAxisLabel(decimal value)
{
return "$" + value.ToString("N0");
}
Details https://apexcharts.github.io/Blazor-ApexCharts/features/formatters