Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Changing chart tooltip dynamically

$
0
0

I'm trying to do a similar thing in my code, but the fiddle seems to be gone.  In my dataBound function I have the following code which seems to do nothing.  chartData is a JSON object.  I am able to set other fields using this style and format.

chart.options.tooltip.visible = chartData.tooltipVisible;
chart.options.tooltip.template = chartData.tooltipTemplate;

On a similar note, is it possible to change the series name at this point.  I am trying to make my chart configurable where I can use the same options set up but display different charts based on data passed from the server.  I have tried:

chart.options.series[i].name = chartData.dataName;
When I do this only only see the contents of chartData.dataName (#= group.value #) not the group value.  Is it possible for me to set this information dynamically?

 

 


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>