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

Howto define tooltips data

0 Answers 104 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Fab
Top achievements
Rank 1
Fab asked on 13 Jan 2012, 05:44 PM
Hello,

congratulations for KendoUI, it's a very powerful library.
I'm using KendoUI Chart and I'd like to pass a custom Array to the tooltip so that every tooltip is different.
the model I use is
var data = {
    "Title": "Title of chart",
    "Series": [
        {
            "Name": "2015",
            "Values": [1.00, 0, 0, 2.00]
        },
        {
            "Name": "2016",
            "Values": [1.30, 0.5, 0.6, 2.50]
        }
    ],
    "XAxis":
        {
            "Values": ["20 févr.", "21 févr.", "22 févr.", "23 févr."]
        }
};

I'd like to add a new array to each Series, but I don't know of to reference it in the tooltip declaration ?
 tooltip: {
               ....
            }

Is it possible to do what I want ?
Thanks

No answers yet. Maybe you can help?

Tags
Charts
Asked by
Fab
Top achievements
Rank 1
Share this question
or