We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Bug in Sparkline DataTime Tooltip?


I'm experimenting with the tooltips in the sparkline control and I think I found a bug.

If you look at the demo page on https://blazor.syncfusion.com/demos/sparkline/axis-types?theme=fluent, and hover over the first demo [Mean Working Hours for a Month (DateTime Axis)], the tooltips always show the 1st of January 1970, even if the dates in the code are of 2018. I see the same behaviour in my own code.

Also, if you use the example of https://blazor.syncfusion.com/documentation/sparkline/axis-customization#change-the-value-type-of-the-sparkline-chart, and the following code:

<SfSparkline DataSource="@ExpenditureReport" TValue="ExpenditureDetails" XName="Year" YName="Expense" Type="SparklineType.Column" ValueType="SparklineValueType.Numeric" Height="250px" Width="450px">
<SparklineTooltipSettings TValue="ExpenditureDetails" Visible="true" Format="${Year}: ${Expense}" Fill="lightgrey">

The tooltip does not show the Year value but the index.

Then a question: how does one format the DateTime value in the tooltip? Show only the time, for instance?

EDIT: if you edit the question, the formatted code apparently disappears. Added it again.

Just wanted to let you know.



2 Replies

DG Durga Gopalakrishnan Syncfusion Team November 7, 2022 12:14 PM

Hi Alex,

We have considered your reported scenario as bug and logged a defect report for this issue. This fix will be available in our weekly patch release which is scheduled to be rolled out on 22nd November 2022. We appreciate your patience until then. You can keep track of the bug from the below feedback link.

Feedback Link : https://www.syncfusion.com/feedback/38905/sparkline-tooltip-is-not-proper-for-numeric-and-datetime

If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.


Durga Gopalakrishnan.

DG Durga Gopalakrishnan Syncfusion Team November 22, 2022 08:47 AM

Hi Alex,

We are glad to announce that our v20.3.0.58 patch release is rolled out; we have added the fix for reported issue. You can use the latest Syncfusion.Blazor.Charts NuGet package.

NuGet Package : https://www.nuget.org/packages/Syncfusion.Blazor.Charts/

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.


Durga Gopalakrishnan.

Live Chat Icon For mobile
Up arrow icon