ChartSeriesPointExtensions.GetRangePoint(ChartTooltipData) Method

Returns a range series point.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

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 shows how to use the GetRangePoint method to customize text for series point tooltips:

<DxChart Data="@WeatherForecasts">
    <DxChartTooltip>
        @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