[Blazor / SfChart] how do i set the format for N0?

Hi. I'm unae.

i have a question about the format of chart tooltip.
how do i set the format for N0?

thank you.

Syncfusion.Blazor ver : 19.1.0.55

ex)
<ChartTooltipSettings Enable="true" Shared="true" Format="${point.y}"></ChartTooltipSettings>
<ChartSeries DataSource="@Items" XName="x" YName="y" TooltipFormat="N0" Type="ChartSeriesType.Column"></ChartSeries>

3 Replies 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team April 21, 2021 12:02 PM UTC

Hi Unae, 

Greetings from Syncfusion. 

We suggest you to specify LabelFormat as N0 for PrimaryYAxis to view tooltip in formatted way. When LabelFormat is specified for axis, then tooltip will be formatted automatically. We have prepared sample based on your requirement.  

Code Snippet : 

<SfChart> 
  <ChartPrimaryYAxis LabelFormat="N0"> 
  </ChartPrimaryYAxis> 
</SfChart> 

Screenshot : 

 


Please revert us if you have any concerns. 

Regards, 
Durga G 


Marked as answer

UN unae April 22, 2021 04:19 AM UTC

it works very well. thanks for the quick reply.


DG Durga Gopalakrishnan Syncfusion Team April 23, 2021 03:54 AM UTC

Hi Unae, 

Most welcome. Please get back to us if you need any further assistance. We are always happy in assisting you. 

Regards, 
Durga G 


Loader.
Up arrow icon