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

Scatter Chart Tooltip Metadata

2 Answers 234 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Noah asked on 02 Oct 2018, 03:03 PM

In the tooltip template documentation the only input seems to be the value object which has an x and y value.  However, our original data additional metadata that we'd like to show in the tooltip.

To be more specific, each data point has a date for the x value, a dollar amount for the y value and then there is an additional field that shows the username responsible for that datapoint. I'd like to be able to include that username in the tooltip for the point in the chart.  Is that possible?

data = [{forecastDate: new Date(2018, 8, 15), forecastAmount: 3500.35, userName: 'John Doe'}, ..... more of those .... ];

 

if i'm using forecastDate for the X-Axis and forecastAmount for the Y-Axis, is it possible to use the userName field in the tooltip for each point?

 

2 Answers, 1 is accepted

Sort by
0
Noah
Top achievements
Rank 2
Iron
Iron
Iron
answered on 02 Oct 2018, 09:29 PM

I found the other available data points here I think.

https://www.telerik.com/kendo-angular-ui/components/charts/api/TooltipTemplatePoint/#toc-category

0
Daniel
Telerik team
answered on 04 Oct 2018, 05:08 AM
Hello,

You can use dataItem field to display additional info in the template from the original data - example.

Regards,
Daniel
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Noah
Top achievements
Rank 2
Iron
Iron
Iron
Daniel
Telerik team
Share this question
or