Dashboards & Visualizations

color on the fields values on the chart

DataOrg
Builder

I Had tried "charting.fieldscolor" option but color is not applying to the the bar graph.

Pls help in applying color to the bar

 

<row>
    <panel>
      <chart>
        <title>Result Count By</title>
         <query>|search</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="charting.axisTitleX.visibility">collapsed</option>
        <option name="charting.axisTitleY.visibility">collapsed</option>
        <option name="charting.axisY.scale">log</option>
        <option name="charting.chart">bar</option>
        <option name="charting.chart.showDataLabels">all</option>
        <option name="charting.chart.stackMode">default</option>
        <option name="charting.drilldown">all</option>
        <option name="charting.fieldColors">{"Data_Entry_Time": 0x66cc66, "Bad": 0xcccc66, "Ugly": 0xcc6666}</option>
        <option name="charting.layout.splitSeries">0</option>
        <option name="charting.legend.placement">none</option>
        <option name="height">332</option>
        <option name="link.exportResults.visible">0</option>
        <option name="link.inspectSearch.visible">0</option>
        <option name="link.openPivot.visible">0</option>
        
        <option name="refresh.display">progressbar</option>
        <option name="refresh.link.visible">0</option>
        <drilldown>
          <set token="SELECTED">$row.Rule$</set>
          <set token="NAME">$row.Name$</set>
        </drilldown>
      </chart>
          </panel>
  </row>

 

  

Labels (2)
Tags (4)
0 Karma
1 Solution

to4kawa
Ultra Champion

sample:

<dashboard>
  <label>bar chart color</label>
  <row>
    <panel>
      <chart>
        <search>
          <query>| tstats count where index=_internal sourcetype=splunkd* by sourcetype
| xyseries sourcetype sourcetype count</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="charting.chart">bar</option>
        <option name="charting.fieldColors">{"splunkd:0x00FF00,"splunkd_ui_access":0xFF0000,"splunkd_access":0xFF00FF}</option>
      </chart>
    </panel>
  </row>
</dashboard>

how about  xyseries ?

View solution in original post

0 Karma

to4kawa
Ultra Champion

sample:

<dashboard>
  <label>bar chart color</label>
  <row>
    <panel>
      <chart>
        <search>
          <query>| tstats count where index=_internal sourcetype=splunkd* by sourcetype
| xyseries sourcetype sourcetype count</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="charting.chart">bar</option>
        <option name="charting.fieldColors">{"splunkd:0x00FF00,"splunkd_ui_access":0xFF0000,"splunkd_access":0xFF00FF}</option>
      </chart>
    </panel>
  </row>
</dashboard>

how about  xyseries ?

0 Karma
Get Updates on the Splunk Community!

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...