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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...