T
Thierry Ciot
Guest
Below is the answer we received from Famke - I don't see it here so posting for others in case they face the same situation. Thierry. --------------------------------------------------------------------------------------------------------------------------------------------------- Famke Bergmans Hi all, I decided to look a bit further before opening a support ticket and managed to fix my problem! In the end, I found the solution in the data key in each series object. I figured I could try to make an array of each data element in the data array, and this worked. After that, all that was left to do was to configure the tooltip, which was a lot less trouble this way. I think my code will display more clearly how and what I did, this is the tooltip: tooltip: { visible: true, template: "#= series.nameVeh #: #= dataItem[0]# #= series.nameAge #: #= dataItem[1]#" }, And the series array in the kendo chart configuration looks like this now: series: [ { nameVeh : "Aantal", nameAge: "Leeftijd", stack: "Leeftijd", data: [[v_thirdLeftLowest, "Jonger"], [v_secLeftLowest, (v_averageRounded - 7)], [v_firstLeftLowest, (v_averageRounded - 4)], [v_middleLowest, (v_averageRounded - 1)], [v_firstRightLowest, (v_averageRounded + 2)], [v_secRightLowest, (v_averageRounded + 5)], [v_thirdRightLowest, "Ouder"]] },{ nameVeh : "Aantal", nameAge: "Leeftijd", stack: "Leeftijd", data: [[v_thirdLeftMiddle, "Jonger"], [v_secLeftMiddle, (v_averageRounded - 6)], [v_firstLeftMiddle, (v_averageRounded - 3)], [v_middleMiddle, (v_averageRounded)], [v_firstRightMiddle, (v_averageRounded + 3)], [v_secRightMiddle, (v_averageRounded + 6)], [v_thirdRightMiddle, "Ouder"]] },{ nameVeh : "Aantal", nameAge: "Leeftijd", stack: "Leeftijd", data: [[v_thirdLeftHighest, "Jonger"], [v_secLeftHighest, (v_averageRounded - 5)], [v_firstLeftHighest, (v_averageRounded - 2)], [v_middleHighest, (v_averageRounded + 1)], [v_firstRightHighest, (v_averageRounded + 4)], [v_secRightHighest, (v_averageRounded + 7)], [v_thirdRightHighest, "Ouder"]] }, ],
Continue reading...
Continue reading...