var data = new Array();
publicationsByCategory); $i++) { ?>
data.push({name: ' publicationsByCategory[$i] -> name); ?>', y: publicationsByCategory[$i] -> publications); ?>, color: colors[]});
new Highcharts.Chart({
chart: {
renderTo: 'chart',
margin: [50, 0, 0, 0],
plotBackgroundColor: 'none',
plotBorderWidth: 0,
plotShadow: false
},
title: {
text: ''
},
plotArea: {
shadow: null,
borderWidth: null,
backgroundColor: null
},
tooltip: {
formatter: function() {
return '' + this.series.name + '
' + this.point.name + ': ' + this.y;
}
},
series: [
{
type: 'pie',
name: '',
data: data,
dataLabels: {
enabled: true,
color: Highcharts.theme.textColor || '#000000',
connectorColor: Highcharts.theme.textColor || '#000000'
}
}
]
});