1👍
Instead of try like that, you just put your code within chart options. It will work fine.
example:
var radarOptions = {
multiTooltipTemplate: "<%= datasetLabel %> - <%= value %>"
}
var ctx = document.getElementById("radarChart").getContext("2d");//radarChart is the canvasid for radar chart//
var myNewChart = new Chart(ctx).Radar(radarData, radarOptions);
0👍
For tooltips try something like this:
myLineChart.data.labels = labels; //change all labels
myLineChart.update();
or
myLineChart.data.labels[0] = 'new label';
myLineChart.update();
0👍
For VB.NET, make sure it’s all built as a string.
var radarOptions = {
multiTooltipTemplate: "<" + "%= datasetLabel %> - " + "<" + "%= value %>"
}
0👍
Angular 2
I have initilized chartlabel on every click of graph display.
this.lineChartLabels=[];
I have put condition in div ,untill data comes to chartlabels ,do not render the graph
<div *ngIf="lineChartLabels!=0">
It works for me
Source:stackexchange.com