Skip to main content
All docs
V24.2

ChartTooltipShowingEventArgs.TooltipInfo Property

Returns information about the tooltip that is about to appear.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public ChartTooltipData TooltipInfo { get; }

Property Value

Type Description
ChartTooltipData

An object that stores information about a tooltip.

Remarks

The following code snippet disables tooltips for series points that correspond to the specified series:

DxChart - TooltipShowing Event

<DxChart Data="@SalesData"
         TooltipShowing="@OnTooltipShowing">
    <DxChartLineSeries Name="2017"
                       Filter="@((SaleInfo s) => s.Date.Year == 2017)"
                       ArgumentField="@(s => s.City)"
                       ValueField="@(s => s.Amount)"
                       SummaryMethod="Enumerable.Sum" />
    <DxChartLineSeries Name="2018"
                       Filter="@((SaleInfo s) => s.Date.Year == 2018)"
                       ArgumentField="@(s => s.City)"
                       ValueField="@(s => s.Amount)"
                       SummaryMethod="Enumerable.Sum" />
    <DxChartLegend AllowToggleSeries="true" 
                   Orientation="Orientation.Vertical"
                   Position="RelativePosition.Outside"
                   HorizontalAlignment="HorizontalAlignment.Right">
        <DxChartTitle Text="Years" />
    </DxChartLegend>
    <DxChartTooltip Enabled="true" />
</DxChart>

@code {
    void OnTooltipShowing(ChartTooltipShowingEventArgs e) {
        if (e.TooltipInfo.Series.Name == "2017")
            e.Cancel = true;
    }

    IEnumerable<SaleInfo> SalesData;
    protected override async Task OnInitializedAsync() {
        SalesData = await Sales.GetSalesAsync();
    }
}
See Also