Help and How-ToChevronRightIconhow to change the color of Tree map I would like to change the default color of the tree map. merinsverghesePosted 2 years ago·Last reply 2 years ago 5 commentsComment NewestHelena Ferreira·2 years agoHi merinsverghese , As you can see here, to change the colors you need to configure either categories or a measure in the Colors data panel. Please let me know if this works for you : ) Always here to help,Helena from QBeeQhelena.ferreira@qbeeq.ioQBeeQ - Gold Implementation and Development Partner merinsvergheseOP2 years agoAny Script Available? If we want to use a color that is not available in the dashboard 'Color Pallet'. Regards,Merin DRay·2 years ago · EditedHi merinsverghese, You should be able to enter the hex code into the Custom field. https://docs.sisense.com/main/SisenseLinux/selecting-colors-in-widgets.htm RAPID BI Support·2 years ago · EditedHey merinsverghese , If you wanted to use a widget script to change individual item colors, you could use the following: let colorConfig = [ { name: 'Alabama', color: '#ff0000' }, { name: 'Alaska', color: '#ff0000' }, { name: 'Arizona', color: '#ff0000' } ] widget.on('processresult', (w, args) => { let l = args.result.children.length for (let i = 0; i < l; i++) { let datum = args.result.children[i] let rule = colorConfig.find((rule) => { return datum.name === rule.name }) if (rule === undefined) { continue } datum.color = rule.color } }) View More with result: Let me know how you go? Thanks, Daniel RAPID BI daniel.ranisavljevic@rapidbi.com.au RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons merinsvergheseOP2 years agoThis Works, Thank you.Regards,Merin
Helena Ferreira
·2 years agoHi merinsverghese ,
As you can see here, to change the colors you need to configure either categories or a measure in the Colors data panel.
Please let me know if this works for you : )
Always here to help,
Helena from QBeeQ
helena.ferreira@qbeeq.io
QBeeQ - Gold Implementation and Development Partner
merinsverghese
OP2 years agoAny Script Available? If we want to use a color that is not available in the dashboard 'Color Pallet'.
Regards,
Merin
DRay
·2 years ago · EditedHi merinsverghese,
You should be able to enter the hex code into the Custom field. https://docs.sisense.com/main/SisenseLinux/selecting-colors-in-widgets.htm
RAPID BI Support
·2 years ago · EditedHey merinsverghese ,
If you wanted to use a widget script to change individual item colors, you could use the following:
with result:
Let me know how you go?
Thanks,
Daniel
RAPID BI
daniel.ranisavljevic@rapidbi.com.au
RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons
merinsverghese
OP2 years agoThis Works, Thank you.
Regards,
Merin