Dashboards & Visualizations

Can the font color of the values reflected in a "seriesCompare" line chart be changed?

beetlegeuse
Path Finder

I have a line chart panel in my dashboard that's comparing two series of datapoints, and I have "charting.legend.mode" set to "seriesCompare" to see the values next to the appropriate series name in the legend. Trouble is, the font color used for those values is very light and difficult to see. 

Can an adjustment be made to change the font color of those compare values? I've circled the value in the screen capture below:

 

beetlegeuse_0-1668460394443.png

 

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Give your panel an id and then add this CSS in a style block of a hidden HTML panel

    <panel depends="$stayhidden$">
      <html>
        <style>
          #linechart svg g.highcharts-legend-item text tspan:nth-child(2) {
            fill: red !important;
          }
        </style>
      </html>
    </panel>
    <panel id="linechart">
      <chart>

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Give your panel an id and then add this CSS in a style block of a hidden HTML panel

    <panel depends="$stayhidden$">
      <html>
        <style>
          #linechart svg g.highcharts-legend-item text tspan:nth-child(2) {
            fill: red !important;
          }
        </style>
      </html>
    </panel>
    <panel id="linechart">
      <chart>

beetlegeuse
Path Finder

Works like a charm...thank you!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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