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

Stacked Area chart tooltip

1 Answer 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jacky
Top achievements
Rank 1
Jacky asked on 15 Oct 2018, 09:16 PM
I have a stacked area chart and in the tooltip, I want to display the total value of that category.  Is it possible to access all the points in the tooltip template?  The category axis is bound to a Date field and I am using the aggregate property to sum up points.  Therefore, it will be great if I can access the points generated by the chart.  

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimiter Topalov
Telerik team
answered on 17 Oct 2018, 11:45 AM
Hello Jacky,

You can use a shared tooltip template and access the points collection (exposed via let-points="points"), then sum their respective values, e.g.:

https://stackblitz.com/edit/angular-scgbfa-jhabqe?file=app/app.component.ts

I hope this helps.

Regards,
Dimiter Topalov
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
Jacky
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or