Forum Discussion

gwolfe's avatar
gwolfe
Data Pipeline
12-05-2022
Solved

Bar-in-Bar chart

Hi, does anyone know how to create a bar-in-bar chart?   
  • Angelina_QBeeQ's avatar
    12-05-2022

    Hi gwolfe ,
    Something like this was done in the article, but for the column chart:
    https://www.binextlevel.com/post/columns-chart-with-fixed-placement

    If we will play with it we can get smth similar:

    widget.on('processresult', function(se, ev){
    	ev.result.plotOptions.bar.grouping = false
    
    	
    	$.each(ev.result.series, function(index, value){
    		value.borderWidth = 1
    		value.borderColor = value.color
    		value.pointPadding = 0.2 * (index+1)	
    	})
    })

    Best regards,
    Angelina
    angelina.bulgakova@qbeeq.pl