Here is a method to convert a column chart to fixed placement columns (Chart showing overlapping placement of columns).
Steps:
Create a column chart (select Classic column type in design panel)
Add below script to widget
Save the script and refresh widget
widget.on('processresult', function(se, ev){
ev.result.plotOptions.column.grouping = false
ev.result.tooltip.shared = true
ev.result.tooltip.enabled = true
$.each(ev.result.series, function(index, value){
value.borderWidth = 1
value.borderColor = value.color
value.pointPadding = 0.1 * (index+1)
$.each(value.data, function(dataIndex, dataValue){
dataValue.color = Highcharts.color(dataValue.color).setOpacity(0.6).get('rgba')
})
value.color = Highcharts.color(value.color).setOpacity(0.6).get('rgba')
})
})
widget.on("beforedatapointtooltip", function (se, args){
args.cancel=true;
});
Comentarios