The Chart tooltip template receives incorrect context for another data item when there is a missing data item for the current category and the series has MissingValues="@ChartSeriesMissingValues.Zero".
Test page: https://blazorrepl.telerik.com/QzOtFwln362xLl7q57
Compare with the Kendo UI jQuery Chart: https://dojo.telerik.com/qZCFVOPQ
Possible workarounds include:
<TelerikChart Height="200px">
<ChartSeriesItems>
<ChartSeries Type="ChartSeriesType.Line"
Data="@Series1Data"
Field="@nameof(SalesData.Revenue)"
CategoryField="@nameof(SalesData.TimePeriod)"
MissingValues="@ChartSeriesMissingValues.Zero">
<ChartSeriesLabels Visible="true"></ChartSeriesLabels>
<ChartSeriesTooltip Visible="true">
<Template>
@{ var point = context.DataItem as SalesData; }
@if (point is not null && context.FormattedValue != "0")
{
<span>@point.Revenue</span>
}
else
{
<span>0 (no data item)</span>
}
</Template>
</ChartSeriesTooltip>
</ChartSeries>
</ChartSeriesItems>
<ChartCategoryAxes>
<ChartCategoryAxis Min="@ChartCategoryAxisMin" Type="@ChartCategoryAxisType.Date"></ChartCategoryAxis>
</ChartCategoryAxes>
</TelerikChart>