var categories = new Array();
var categoryMap = new Array();
var totalPublications = new Array();
var openPublications = new Array();
var projects = new Array();
publicationsByCategory as $publicationsByCategory) { ?>
categories.push(' acronym); ?>');
categoryMap[' acronym); ?>'] = ' name); ?>';
totalPublications.push( totalPublications); ?>);
openPublications.push( openPublications); ?>);
projects.push( projects); ?>);
new Highcharts.Chart({
chart: {
renderTo: 'chart',
defaultSeriesType: 'column'
},
title: {
text: ' chartTitle); ?>'
},
xAxis: {
categories: categories,
labels: {
rotation: -45,
align: 'right'
}
},
yAxis: {
min: 0,
title: {
text: ''
}
},
legend: {
align: 'right',
x: -100,
verticalAlign: 'top',
y: 20,
floating: true,
backgroundColor: Highcharts.theme.legendBackgroundColorSolid || '#FFFFFF',
borderColor: '#CCC',
borderWidth: 1,
shadow: true
},
tooltip: {
formatter: function () {
return '' + categoryMap[this.x] + '
' + this.series.name + ': ' + this.y;
}
},
series: [{name: 'Publications', data: totalPublications}, {name: 'OA Publications', data: openPublications}, {name: 'Projects', data: projects}]
});