ZingChart: Custom tokens called in tooltips

You can set near anything inside the tooltips (images, texts, numbers).

This is done using custom tokens.

In order to set custom tokens in tooltips you need to create a custom token with structure of data-__ where the __ will be what ever you choose.

For example:

If I want to set a custom tooltip for full names I would do this as such:

data-fullName:[Joe Doe, John Lee, Jane Kane]  

And subsequently display these custom tokens in the tooltip in the text by using

text: "%data-fullName"  

Here is a demo to show you how this is done: DEMO

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us