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!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Community Content Calendar, October Edition

Welcome to the October edition of our Community Spotlight! The Splunk Community is a treasure trove of ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...