Have found myself completely stuck while customizing the legend for a two series pie chart.
JSFiddle and code:
http://jsfiddle.net/jschlick/cCXkj/
colors: ['#f00000', '#f8d10a', '#9edb70'],
legend: {
layout: 'horizontal',
verticalAlign: 'bottom'
},
plotOptions: {
pie: {
point: {
events: {
legendItemClick: function () {
this.select();
elm.tooltip.refresh(this);
return false;
},
mouseOver: function () {
this.select();
elm.tooltip.refresh(this);
return false;
}
}
},
showInLegend: true
},
series: {
dataLabels: {
enabled: true,
format: '{point.percentage}%'
}
}
},
series: [{
type: 'pie',
center: [450, 150],
data: [
["Red", 2],
["Yellow", 5],
["Green", 3]
],
size: '60%',
innerSize: '40%'
}, {
type: 'pie',
linkedTo: ':previous',
center: [150, 150],
data: [
["Red", 1],
["Yellow", 2],
["Green", 7]
],
size: '60%',
innerSize: '40%'
}]
1) I need the current legend click behavior (slicing the data point) to execute on hover instead of a click.
2) I expected using "linkedTo: ':previous'" would also tie the second chart to the legend behavior, but only the first chart is effected. I.E. Clicking "red" would slice the red data point on both charts.
Thanks for any assistance.