New to Telerik UI for Blazor? Start a free 30-day trial

Format PieChart Tooltip Values as Currency

Updated on Oct 19, 2026

Environment

ProductChart for Blazor
Version15.0.1 and above

Description

Display a PieChart tooltip value as currency with a custom tooltip template.

Solution

Bind the series to a model and format the value from context.DataItem in the tooltip Template. The C2 format displays the currency symbol and two decimal places according to the current culture.

The following example demonstrates how to format a PieChart tooltip value as currency:

Format a PieChart tooltip value as currency

Example
View Source
<TelerikChart>
    <ChartSeriesItems>
        <ChartSeries Type="ChartSeriesType.Pie"
                     Data="@PieData"
                     Field="@nameof(PiePoint.Value)"
                     CategoryField="@nameof(PiePoint.Category)">
            <ChartSeriesTooltip Visible="true">
                <Template>
                    @{
                        var point = (PiePoint)context.DataItem;
                    }
                    @point.Category: @point.Value.ToString("C2")
                </Template>
            </ChartSeriesTooltip>
        </ChartSeries>
    </ChartSeriesItems>
</TelerikChart>

@code {
    private List<PiePoint> PieData { get; set; } = new List<PiePoint>
    {
        new PiePoint { Category = "Product 1", Value = 1250.50m },
        new PiePoint { Category = "Product 2", Value = 980.00m }
    };

    public class PiePoint
    {
        public string Category { get; set; }
        public decimal Value { get; set; }
    }
}

If the series uses independent array binding instead of a data model, use context.FormattedValue in the tooltip template and parse it with the appropriate culture before applying a currency format.

See Also