Var categories = w.data.data.rows.map(function(row) {
return row[0];
});
var series = w.data.data.cols.map(function (col, colIndex) {
var data = w.data.data.values[colIndex].map(function (value) {
return parseFloat(value);
});
return {
name: col,
data: data
}
});
Highcharts.chart(w.general.renderTo, {
chart: {
type: 'column'
},
xAxis: {
categories: categories
},
yAxis: {
title: {
text: w.props.yAxisTitle
}
},
plotOptions: {
series: {
dataLabels: {
enabled: w.props.dataLabels.enabled,
style: {
color: w.props.dataLabels.color,
}
}
}
},
series: series
});