Skip to main content

ChartTooltipData.Series Property

Returns a series used to compose the tooltip text.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public IChartSeriesBase Series { get; }

Property Value

Type Description
IChartSeriesBase

A series that a user hovers over with the mouse cursor.

Remarks

The following example shows how to specify tooltip content:

<DxChartTooltip Enabled="true">
    <div style="margin: 0.75rem">
        @if (context.Series.Name == GeneratedDataSeriesName) {
            <div class="fw-bold">
                @string.Format("[{0:0.#} - {1:0.#})", (double)context.Point.Argument - Interval * 0.5, (double)context.Point.Argument + Interval * 0.5)
            </div>
            <div>@context.Point.Value @((int)context.Point.Value == 1 ? "point" : "points")</div>
        }
        else {
            <div>@string.Format("{0:0.###}", (double)context.Point.Value)</div>
        }
    </div>
</DxChartTooltip>
See Also