Forum Discussion

ElementUX's avatar
ElementUX
Cloud Apps
05-25-2022
Solved

Use color palette for certain widgets and single color for others?

On my dashboard, I want to default use palette for 5 charts and for 1 chart only use 1 color where bars represent months. 

I was using this dashboard level script to override automatic palette colors and turn all widgets to a single color (works great!) but I don't want the entire dashboard to be one color.

// Dashboard Level Script to show only 1 color for all widgets
ignoreList=[];
manageColors(dashboard,ignoreList);

I am thinking there is a widget level script to use a similar ignoreList to enable me to select a single color, but I have yet to find the right phrasing to use to disable all colors OR how do I add widget IDs on the dashboard level code to say for this widget ID, ignore the color list.

This is the goal - multi color for all widgets and then a single color for 1 widget.

 

Here is dashboard level code script that changes all to single color 

 

 

2 Replies

Replies have been turned off for this discussion