Is it possible to apply custom format in Blazor Chart Tooltip?

Answer:

Yes we can apply custom format in Tooltip using TooltipFormat in chart series. Here is the code snippet for your reference.

<SfChart Width="60%" EnableSideBySidePlacement="false">

// add additional code here

<ChartSeriesCollection>

<ChartSeries DataSource="DataSource" XName="Category" TooltipFormat="${point.x}" YName="Value1" Type="ChartSeriesType.Bar">

<ChartMarker Visible="true" Height="20" Width="20" Shape="ChartShape.Diamond" Fill="green" />

ChartSeries>

<ChartSeries DataSource="DataSource" XName="Category" TooltipFormat="${point.y}" YName="Value2" Type="ChartSeriesType.Bar">

ChartSeries>

ChartSeriesCollection>

SfChart>


Find the sample for to apply custom format Tooltip in Chart from here.

Loader.
Up arrow icon