This is a migrated thread and some comments may be shown as answers.

Custom tooltip on kendo-chart-series-item-tooltip

2 Answers 863 Views
Tooltip
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 23 Apr 2020, 08:49 AM

Hi,

I am using the kendo scatter chart .how can i make custom tooltip .currently i am getting x and y axis value on tooltip by using below code

 

<kendo-chart-series-item-tooltip format="Margin {0:c0} -Sales{1}">
</kendo-chart-series-item-tooltip>

In my object has margin, sales ,item,category .. i want to display all properties in tool tip 

can you please help how to achieve this in kenod angular

2 Answers, 1 is accepted

Sort by
0
Sam
Top achievements
Rank 1
answered on 24 Apr 2020, 06:24 AM
Can you please update on this. Thanks
0
Martin
Telerik team
answered on 27 Apr 2020, 08:06 AM

Hi Sam,

By default, the content of the tooltip is determined based on the point type, but this behavior can be changed by using the format option (as you already explored) or specifying a template:

https://www.telerik.com/kendo-angular-ui/components/charts/elements/tooltips/#toc-specifying-a-template

The point that is passed to the tooltip template contains the dataItem, which in this case should return the object properties.

Another option is to create a custom tooltip as demonstrated in this article but on seriesHover and seriesLeave chart events.

Let me know if I can provide any further assistance.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Tooltip
Asked by
Sam
Top achievements
Rank 1
Answers by
Sam
Top achievements
Rank 1
Martin
Telerik team
Share this question
or