cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Color Palette from Script

CDavidOrr
9 - Travel Pro
9 - Travel Pro

Does anyone know if you can access the color pallet that a dashboard is using from a widget's script?

I am adding some color to some of the cells in a pivot.  I'd like to use the first color in the current color palette so that if the color palette changes, this pivot will change also.  I currently have the color hard coded but would like to make it dynamic.

Thanks.

1 ACCEPTED SOLUTION

Alek_qbeeq
9 - Travel Pro
9 - Travel Pro

Hey @CDavidOrr

You can use this property to get dashboard pallet: 

 

 

prism.activeDashboard.style.options.palette

 

 

Alek_qbeeq_0-1678466478200.png


Always here to help,
Alek from QBeeQ

QBeeQ - Gold Implementation and Development Partner
www.qbeeq.io



View solution in original post

2 REPLIES 2

Alek_qbeeq
9 - Travel Pro
9 - Travel Pro

Hey @CDavidOrr

You can use this property to get dashboard pallet: 

 

 

prism.activeDashboard.style.options.palette

 

 

Alek_qbeeq_0-1678466478200.png


Always here to help,
Alek from QBeeQ

QBeeQ - Gold Implementation and Development Partner
www.qbeeq.io



Alek,

Thank you.  This is precisely what I needed.

David

Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]