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!

Check out This Month’s Brand new Splunk Lantern Articles

Splunk Lantern is a customer success center providing advice from Splunk experts on valuable data insights, ...

Happy CX Day to our Community Superheroes!

Happy 10th Birthday CX Day!What is CX Day? It’s a global celebration recognizing innovation and success in the ...

Routing Data to Different Splunk Indexes in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. The OpenTelemetry project is the second largest ...