ChartSeriesPointExtensions.GetRangePoint(ChartTooltipData) Method
Returns a range series point.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public static ChartRangeSeriesPoint GetRangePoint(
this ChartTooltipData tooltip
)
Parameters
Name | Type | Description |
---|---|---|
tooltip | ChartTooltipData | A context for a chart tooltip. |
Returns
Type | Description |
---|---|
ChartRangeSeriesPoint | A range series point. |
Remarks
The following example uses the GetRangePoint
method to customize text for series point tooltips:
<DxChart Data="@WeatherForecasts">
<DxChartTooltip Enabled="true" >
@context.GetRangePoint().Render((rangePoint) =>
@<div class="p-3">
<p>Max: @rangePoint.EndValue</p>
<p>Min: @rangePoint.StartValue</p>
</div>
)
</DxChartTooltip>
<DxChartRangeBarSeries ValueField="@((WeatherForecast i) => i.TemperatureF)"
ArgumentField="@(i => i.Date.Date)"
Name="Temperature, F" />
</DxChart>
See Also