Is there any way to set the title in a Kendo Chart to an HTML template of some sort?
Basically I'm just looking to make the title of my Kendo Chart a link that will open another window. The version of the Kendo library we were using before had support for this functionality, but when updating to the most recent version of Kendo (2016.3.1118), I noticed that we lost this from when we were using the previous library.
Here's how I was declaring my chart title before.
$(
"#myChart"
).kendoChart({
title: {
text:
'<a onclick="openWindow();">'
+ myChartTitleVar +
'</a>'
,
color:
"black"
},
...
Using jQuery I did find a work around, however with how I have my chart set up, it refreshes every couple of seconds to display new data, so my title doesn't persist, and it ends up going back to the original title that displays as <a onclick="openWindow();">My Title</a> when viewed in my inspector in Chrome.
$(
"#myChart > svg > g > g:eq(1) > g > text"
).html(
'<a onclick="openWindow();">'
+ myChartTitleVar +
'</a>'
);