top of page

Apply different colors for each bars in Sisense

There is an in-built feature in Sisense to set colors for bars based on its values. Also its possible to set colors if there is a column added in 'Break by' panel. Below script enable us to apply different colors for each bar based on category name.





var colorList = {
		'Name1': '#d46c3f',
		'Name2': '#88b830',
		'Name3': '#3071b8',
		'Name4': '#7a30b8',
		'Name5': '#b83086'
	}


widget.on('processresult',function(se,args){
	$.each(args.result.series[0].data, function(i, v){
		v.color = colorList[v.selectionData[0]]
	})

})

626 views0 comments
BI Next Level white logo

BI Next Level is your trusted resource for BI customization, data solutions, and expert insights. Explore practical tips, scripts, and tutorials for tools like Sisense, Python, and SQL. Let’s transform your data into impactful insights together.

Quick Links
Connect with us
Copyright © 2024. All Rights Reserved. Designed, Developed & Maintained  by Intertoons
bottom of page