I am using the calendar chart to visualise resourcing load and am drawing multiple calendars on a page - one for for each staff member.
I'm drawing out the charts as below:
dataTables[tkUserId] = new google.visualization.DataTable();
dataTables[tkUserId].addColumn({ type: 'date', id: 'Date' });
dataTables[tkUserId].addColumn({ type: 'number', id: 'Workload' });
for (var k in usrLoad){
if (usrLoad.hasOwnProperty(k)) {
var dd = k.substring(0, 2);
var mm = parseInt(k.substring(3, 5)) -1;
var yy = k.substring(6, 10);
var load = usrLoad[k];
tkDate = new Date(yy, mm, dd);
dataTables[tkUserId].addRows([[ tkDate, load ]]);
}
}
calendars[tkUserId] = new google.visualization.Calendar(document.getElementById('res' + tkUserId));
var options = {
title: usr,
colorAxis: {maxValue: 100},
toolTip: {isHtml: true},
};
calendars[tkUserId].draw(dataTables[tkUserId], options);
The charts are drawing fine, but I only get the tooltip showing the value for each day on the last chart drawn.
Is there a way to have every calendar with a functioning tooltip over each date?
I have tried using tooltip.isHtml as both true and false in case that helped but it made no difference.
thanks!
