Globalization in Blazor Sparkline Component

4 Nov 20251 minute to read

Globalization is the process of designing and developing a component to work in different cultures or locations. In the Sparkline component, the Format property is used to globalize number, date, and time values. The following example shows the tooltip globalized to currency format in the Deutsch culture.

@using Syncfusion.Blazor.Charts

<SfSparkline DataSource="new double[]{ 300.00, 600.00, 400.21, 100.20, 300.70, 200.04, 500.00 }" Height="200px" Width="350px" Format="C">
    <SparklineTooltipSettings TValue="double" Visible="true"></SparklineTooltipSettings>
</SfSparkline>

NOTE

Refer to the localization documentation for Blazor Server and Blazor WebAssembly for configuration details.

On successful configuration, the Sparkline will be rendered as shown below.

Localization in Blazor Sparkline Chart