Search results

Internationalization in Blazor Chart component

Chart provide supports for internationalization for below chart elements.

  • Datalabel.
  • Axis label.
  • Tooltip.


Globalization is the process of designing and developing an component that works in different cultures/locales. Internationalization library is used to globalize number, date, time values in Chart component using LabelFormat property in axis.

Numeric Format

In the below example axis, point and tooltip labels are globalized to EUR.

@using Syncfusion.Blazor.Charts

<SfChart Width="60%" Title="Average Sales Comparison">
    <ChartPrimaryXAxis Title="Year"></ChartPrimaryXAxis>

    <ChartPrimaryYAxis LabelFormat="c" Title="Sales Amount in Millions">

    <ChartTooltipSettings Enable="true" Format="${} <br>${point.x} : ${point.y}">

        <ChartSeries DataSource="@SalesReports" XName="X" YName="Y" Type="ChartSeriesType.Column" Name="Product X">
                <ChartDataLabel Visible="true"></ChartDataLabel>
        <ChartSeries DataSource="@SalesReports" XName="X" YName="Y1" Type="ChartSeriesType.Column" Name="Product Y">
                <ChartDataLabel Visible="true"></ChartDataLabel>

    public class ChartData
        public double X { get; set; }
        public double Y { get; set; }
        public double Y1 { get; set; }

    public List<ChartData> SalesReports = new List<ChartData>
         new ChartData {X= 1900, Y= 4, Y1= 2.6 },
         new ChartData{ X= 1920, Y= 3.0, Y1= 2.8 },
         new ChartData{ X= 1940, Y= 3.8, Y1= 2.6},
         new ChartData{ X= 1960, Y= 3.4, Y1= 3 },
         new ChartData{ X= 1980, Y= 3.2, Y1= 3.6 },
         new ChartData{ X= 2000, Y= 3.9, Y1= 3 }


See Also