Forum Discussion

rvickersevotix's avatar
rvickersevotix
Cloud Apps
11-24-2023
Solved

Custom Colour Palette using Dashboard Script

I want to be able to override the dashboard palette with my own set of colours, without building a custom set that i can just pick from the option at the top of the dashboard.
  • rapidbisupport's avatar
    rapidbisupport
    11-28-2023

    Thanks for trying, sorry it didn't work for you.

    Another way could be:

     

    dashboard.on('initialized', (d, args) => {
      d.style.setPalette({ colors:  ['#00F6FF', '#CB9340','#0A223E','#E8F2FB','#2D5B70','#9A9A9A'] }) // your palette here
    })
    
    

     

    I have tested this on my side, and it does change the palette colours like the first solution.

    This solution is slightly different in that it adds a temporary non-system option in the themes selection.

    Let me know how you go with this one?

    Thanks,

    Daniel

    RAPID BI

    [email protected]

    RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons