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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...