ChartTooltipData.Series Property
In This Article
Returns a series used to compose the tooltip text.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
C#
public IChartSeriesBase Series { get; }
#Property Value
Type | Description |
---|---|
IChart |
A series that a user hovers over with the mouse cursor. |
#Remarks
The following example specifies 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