chart.yAxis
.tickFormat(d3.format(',f'));
chart.xAxis
.tickFormat(d3.format(',f'));
chart.tooltipContent(function(key, y, e, graph) {
var x = String(graph.point.x);
var y = String(graph.point.y);
if(key == 'Colombia'){
var y = 'Wins ' + String(graph.point.y) + ' times in the cup ';
}
if(key == 'Colombia'){
var y = 'Ties ' + String(graph.point.y) + ' times in the cup ';
}
if(key == 'Colombia'){
var y = 'Defeats ' + String(graph.point.y) + ' times in the cup ';
}
if(key == 'Argentina'){
var y = 'Wins ' + String(graph.point.y) + ' times in the cup ';
}
if(key == 'Argentina'){
var y = 'Ties ' + String(graph.point.y) + ' times in the cup ';
}
if(key == 'Argentina'){
var y = 'Defeats ' + String(graph.point.y) + ' times in the cup ';
}
if(key == 'Brasil'){
var y = 'Wins ' + String(graph.point.y) + ' times in the cup ';
}
if(key == 'Brasil'){
var y = 'Ties ' + String(graph.point.y) + ' times in the cup ';
}
if(key == 'Brasil'){
var y = 'Defeats ' + String(graph.point.y) + ' times in the cup ';
}
tooltip_str = '<center><b>'+key+'</b></center>' + y + ' at ' + x;
return tooltip_str;
});
chart.showLegend(true);
And, of course! I haven't only tool tip, the last: "tooltip": {"y_start": "Defeats ", "y_end": " times in the cup "},
Hi.
In this momment i'm trying doing a multibarchart with multistacked values, very hard, in one requierement is add tooltip for each bar.
I'm doing this in code:
And django renders me this:
And, of course! I haven't only tool tip, the last:
"tooltip": {"y_start": "Defeats ", "y_end": " times in the cup "},
What's can i do for solve this?