Dashboards & Visualizations

Change background and text color of mouseover

wu_weidong
Path Finder

Hi all,

If I mouseover any charts, the default background color of the "popup" is black and the text is white/other colors. However, that makes it quite difficult to read what the text is sometimes. Is there a way to change the background color to white and the white text to black? Similar to the "popup" when I mouseover a choropleth map?

Thank you.

Labels (4)
0 Karma

niketn
Legend

@wu_weidong one of the options would be to turn on "Dark Theme" for your dashboard. This will automatically invert the Tooltip background Color and font color.

Second option could be to use Simple XML CSS Override to style the Tooltip as per your needs. If the chart ID is chartWithTooltipCSSOverride then following html panel with CSS override can be added to test. Once finalized, you should move CSS override to CSS file and reference the same in your dashboard/s for reusability.

Screen Shot 2020-08-24 at 6.10.08 PM.png

 

      <html depends="$alwaysHideCSSOverridePanel$">
        <style>
          #chartWithTooltipCSSOverride g.highcharts-tooltip path {
            fill: white !important;
          }
          #chartWithTooltipCSSOverride table.highcharts-tooltip tbody tr td:last-child{
            color: black !important;
          }
        </style>
      </html>
      <chart id="chartWithTooltipCSSOverride">

 Please try out and confirm!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...