<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why are the colors in my bar chart not changing as desired? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-the-colors-in-my-bar-chart-not-changing-as-desired/m-p/346676#M22598</link>
    <description>&lt;P&gt;Instead of the fieldColors option, try using the seriesColors option. &lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2017 00:15:58 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-06-15T00:15:58Z</dc:date>
    <item>
      <title>Why are the colors in my bar chart not changing as desired?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-the-colors-in-my-bar-chart-not-changing-as-desired/m-p/346674#M22596</link>
      <description>&lt;P&gt;So I am trying to change the colors of each bar value. I am not sure why it isnt' working. &lt;/P&gt;

&lt;P&gt;Here is my code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Type_Panel&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;eventtype=qualys_vm_detection_event STATUS!="FIXED"
| fillnull value=- PROTOCOL
| table TYPE, QID
| stats count by TYPE&amp;lt;/query&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;inherit&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;gaps&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.fieldColors"&amp;gt;
         {"CONFIRMED": 0xFF0000, "Potential": 0xF87217}
       &amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is the picture of my current bar graph when I save that code:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3065i913F2D0DC76A07BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 20:50:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-the-colors-in-my-bar-chart-not-changing-as-desired/m-p/346674#M22596</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2017-06-14T20:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the colors in my bar chart not changing as desired?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-the-colors-in-my-bar-chart-not-changing-as-desired/m-p/346675#M22597</link>
      <description>&lt;P&gt;The fieldColors expect that "CONFIRMED" and "Potential" are column/field names not values. Your stats command has column/field name as TYPE. Try this search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=qualys_vm_detection_event STATUS!="FIXED"
 | fillnull value=- PROTOCOL
 | table TYPE, QID | eval temp=1
 | chart count by temp TYPE | fields - temp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; eventtype=qualys_vm_detection_event STATUS!="FIXED"
 | fillnull value=- PROTOCOL
 | table TYPE, QID
 | stats count(eval(TYPE="CONFIRMED")) as CONFIRMED count(eval(TYPE="Potential")) as Potential
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Jun 2017 20:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-the-colors-in-my-bar-chart-not-changing-as-desired/m-p/346675#M22597</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-14T20:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the colors in my bar chart not changing as desired?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-the-colors-in-my-bar-chart-not-changing-as-desired/m-p/346676#M22598</link>
      <description>&lt;P&gt;Instead of the fieldColors option, try using the seriesColors option. &lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 00:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-the-colors-in-my-bar-chart-not-changing-as-desired/m-p/346676#M22598</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-15T00:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why are the colors in my bar chart not changing as desired?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-the-colors-in-my-bar-chart-not-changing-as-desired/m-p/346677#M22599</link>
      <description>&lt;P&gt;these options did not work for me&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 15:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-the-colors-in-my-bar-chart-not-changing-as-desired/m-p/346677#M22599</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2017-06-15T15:06:34Z</dc:date>
    </item>
  </channel>
</rss>

