Looking for a way to incorporate a Highcharts legend into a table layout? I am aiming to design the legend for my Highcharts pie chart with alternating background colors and custom borders for each element.
Although I have styled the legend, I am struggling with embedding it into a table for further formatting.
legend: {
layout: 'vertical',
align: 'center',
verticalAlign: 'bottom',
backgroundColor: '#f3f3f3',
borderWidth: 0,
useHTML: true,
itemMarginBottom: 10,
labelFormatter: function () {
return '<div style="width:200px"><span style="float:left">' + this.name + '</span><span style="float:right">' + this.percentage.toFixed(0) + '%</span><span style="float:right; margin-right:15%">$' + Highcharts.numberFormat(this.y, 0) + '</span></div>';
}
},
Check out the JS Fiddle example: http://jsfiddle.net/hAnCr/135/
I would be grateful for any assistance. Thanks!