How to change date format in Blazor Chart label

Answer:

we can change Chart date format by using labelFormat property in the axis of the chart and isTransposed property in the chart and EdgeLabelPlacement property in the axis of the chart as Shift. Here is the code snippet for your reference.

<SfChart IsTransposed="true" >

<ChartPrimaryXAxis ValueType="Syncfusion.Blazor.Charts.ValueType.DateTime" LabelFormat="dd/MM/yyyy" IntervalType="IntervalType.Years" EdgeLabelPlacement="EdgeLabelPlacement.Shift" >

ChartPrimaryXAxis>

// add your additional code here
SfChart>


Find the sample for to change Date format in Chart label from here.



Loader.
Up arrow icon