blazor-devexpress-dot-blazor-dot-charttooltipdata-fe3fb7f7.md
Returns a series used to compose the tooltip text.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public IChartSeriesBase Series { get; }
| Type | Description |
|---|---|
| IChartSeriesBase |
A series that a user hovers over with the mouse cursor.
|
The following example specifies tooltip content:
<DxChartTooltip Enabled="true">
<div class="tooltip-margin">
@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>
.tooltip-margin {
margin: 0.75rem
}
See Also