<?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 bar chart color in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41851#M2009</link>
    <description>&lt;P&gt;Its picking up random color even same day it'll change different color automatically.&lt;BR /&gt;
How do I fix to green color&lt;BR /&gt;
    .........&lt;BR /&gt;
    .........&lt;BR /&gt;
            &lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;
              &lt;OBJECT&gt;&lt;PARAM name="chart" /&gt;bar&lt;BR /&gt;
              &lt;PARAM name="chart.stackMode" /&gt;none&lt;BR /&gt;
              &lt;PARAM name="charting.axisY.minimumNumber" /&gt;0&lt;BR /&gt;
              &lt;PARAM name="charting.axisY.maximumNumber" /&gt;100&lt;BR /&gt;
              &lt;PARAM name="charting.axisTitleY.text" /&gt;Progress (%)&lt;BR /&gt;
          &lt;PARAM name="charting.axisTitleX.text" /&gt;Stage Name&lt;BR /&gt;
              &lt;MODULE name="JSChart"&gt;&lt;BR /&gt;
                 &lt;MODULE name="ConvertToDrilldownSearch"&gt;&lt;BR /&gt;
                  &lt;MODULE name="ViewRedirector"&gt;&lt;BR /&gt;
                    &lt;PARAM name="viewTarget" /&gt;monitor&lt;BR /&gt;
                  &lt;/MODULE&gt;&lt;BR /&gt;
                &lt;/MODULE&gt;&lt;BR /&gt;
              &lt;/MODULE&gt;&lt;BR /&gt;
            &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;BR /&gt;
            &lt;MODULE name="JobProgressIndicator"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
          &lt;BR /&gt;
    .........&lt;BR /&gt;
    .........&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2012 15:38:42 GMT</pubDate>
    <dc:creator>jangid</dc:creator>
    <dc:date>2012-11-21T15:38:42Z</dc:date>
    <item>
      <title>bar chart color</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41851#M2009</link>
      <description>&lt;P&gt;Its picking up random color even same day it'll change different color automatically.&lt;BR /&gt;
How do I fix to green color&lt;BR /&gt;
    .........&lt;BR /&gt;
    .........&lt;BR /&gt;
            &lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;
              &lt;OBJECT&gt;&lt;PARAM name="chart" /&gt;bar&lt;BR /&gt;
              &lt;PARAM name="chart.stackMode" /&gt;none&lt;BR /&gt;
              &lt;PARAM name="charting.axisY.minimumNumber" /&gt;0&lt;BR /&gt;
              &lt;PARAM name="charting.axisY.maximumNumber" /&gt;100&lt;BR /&gt;
              &lt;PARAM name="charting.axisTitleY.text" /&gt;Progress (%)&lt;BR /&gt;
          &lt;PARAM name="charting.axisTitleX.text" /&gt;Stage Name&lt;BR /&gt;
              &lt;MODULE name="JSChart"&gt;&lt;BR /&gt;
                 &lt;MODULE name="ConvertToDrilldownSearch"&gt;&lt;BR /&gt;
                  &lt;MODULE name="ViewRedirector"&gt;&lt;BR /&gt;
                    &lt;PARAM name="viewTarget" /&gt;monitor&lt;BR /&gt;
                  &lt;/MODULE&gt;&lt;BR /&gt;
                &lt;/MODULE&gt;&lt;BR /&gt;
              &lt;/MODULE&gt;&lt;BR /&gt;
            &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;BR /&gt;
            &lt;MODULE name="JobProgressIndicator"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
          &lt;BR /&gt;
    .........&lt;BR /&gt;
    .........&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:38:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41851#M2009</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-11-21T15:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: bar chart color</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41852#M2010</link>
      <description>&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/Viz/CustomChartingConfig-Overview"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.1/Viz/CustomChartingConfig-Overview&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;(edit 4/14/2016) The link to the charting ref changed a bit in recent versions: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Viz/ChartConfigurationReference"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Viz/ChartConfigurationReference&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;How about something like this with bar charts:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;option name="charting.fieldColors"&amp;gt;
{"1. Application":0x00FF00,"2. SOD":0xFF0000}
  &amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See my answer to your post here to understand 1. Application and 2. SOD.&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/66765/arrange-fields-in-bar-chart-in-specific-order"&gt;http://splunk-base.splunk.com/answers/66765/arrange-fields-in-bar-chart-in-specific-order&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;or this with a gauge chart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;option name="charting.chart.rangeValues"&amp;gt;[0,100]&amp;lt;/option&amp;gt;
  &amp;lt;option name="charting.gaugeColors"&amp;gt;[0x006600,0x006600]&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or maybe you need to put this above the charting.seriesColors instead of below it&lt;BR /&gt;
      &lt;OBJECT&gt;&lt;PARAM name="charting.legend.masterLegend" /&gt;         &lt;/OBJECT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 17:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41852#M2010</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2012-11-21T17:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: bar chart color</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41853#M2011</link>
      <description>&lt;P&gt;Is this on a dashboard with other charts ? There is a master legend for a page, and it tries to make every unique legend item a different colour (This also affects the bar colors)&lt;/P&gt;

&lt;P&gt;Add this, so that this chart does not use the master legend, you should have consistent colours.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="charting.legend.masterLegend"&amp;gt;&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to set it to green you'll also need :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;param name="charting.seriesColors"&amp;gt;[0x006600]&amp;lt;/param&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Update - All credit to jkat54&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
Full example, I had to use FlashChart in 4.X since color options are unsupported for JSChart - might be different in 5.x&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;view objectMode="SimpleDashboard" template="dashboard.html"&amp;gt;
  &amp;lt;label&amp;gt;Stats Dashboard&amp;lt;/label&amp;gt;
  &amp;lt;module name="AccountBar" layoutPanel="appHeader"/&amp;gt;
  &amp;lt;module name="AppBar" layoutPanel="navigationHeader"/&amp;gt;
  &amp;lt;module name="HiddenSearch" layoutPanel="panel_row1_col1" autoRun="True"&amp;gt;
    &amp;lt;param name="search"&amp;gt;* | timechart span=1d count&amp;lt;/param&amp;gt;
    &amp;lt;param name="earliest"&amp;gt;-7d@d&amp;lt;/param&amp;gt;
    &amp;lt;param name="latest"&amp;gt;@d&amp;lt;/param&amp;gt;
    &amp;lt;module name="HiddenChartFormatter"&amp;gt;
      &amp;lt;param name="chart"&amp;gt;bar&amp;lt;/param&amp;gt;
      &amp;lt;param name="chart.stackMode"&amp;gt;none&amp;lt;/param&amp;gt;
      &amp;lt;param name="charting.legend.masterLegend"&amp;gt;&amp;lt;/param&amp;gt;
      &amp;lt;param name="charting.fieldColors"&amp;gt;{"count":0x009900}&amp;lt;/param&amp;gt;
      &amp;lt;param name="charting.axisY.minimumNumber"&amp;gt;0&amp;lt;/param&amp;gt;
      &amp;lt;param name="charting.axisTitleY.text"&amp;gt;Progress (%)&amp;lt;/param&amp;gt; 
      &amp;lt;param name="charting.axisTitleX.text"&amp;gt;Stage Name&amp;lt;/param&amp;gt; 
      &amp;lt;module name="FlashChart"/&amp;gt;
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
&amp;lt;/view&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Nov 2012 17:56:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41853#M2011</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2012-11-21T17:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: bar chart color</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41854#M2012</link>
      <description>&lt;P&gt;Unfortunately its not working, still yellow color.&lt;BR /&gt;
Yes I have three chart in this view.&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="chart" /&gt;bar&lt;BR /&gt;
&lt;PARAM name="chart.stackMode" /&gt;none&lt;BR /&gt;
&lt;PARAM name="charting.axisY.minimumNumber" /&gt;0&lt;BR /&gt;
&lt;PARAM name="charting.axisY.maximumNumber" /&gt;100&lt;BR /&gt;
&lt;PARAM name="charting.axisTitleY.text" /&gt;Progress (%)&lt;BR /&gt;
&lt;PARAM name="charting.axisTitleX.text" /&gt;Stage Name&lt;BR /&gt;
&lt;PARAM name="charting.seriesColors" /&gt;[0x006600]&lt;BR /&gt;
&lt;PARAM name="charting.legend.masterLegend" /&gt;&lt;BR /&gt;
&lt;MODULE name="JSChart"&gt;&lt;BR /&gt;
&lt;MODULE name="ConvertToDrilldownSearch"&gt;&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 17:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41854#M2012</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-11-21T17:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: bar chart color</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41855#M2013</link>
      <description>&lt;P&gt;outstanding.  Completely unaware of the fieldColors option. I've updated my answer, but this is the real source of information.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2012 18:52:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41855#M2013</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2012-11-21T18:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: bar chart color</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41856#M2014</link>
      <description>&lt;P&gt;Thanks it works with FlashChart &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2012 15:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41856#M2014</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-11-22T15:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: bar chart color</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41857#M2015</link>
      <description>&lt;P&gt;Thanks jkat54 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2012 15:55:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41857#M2015</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-11-22T15:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: bar chart color</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41858#M2016</link>
      <description>&lt;P&gt;I converted your answer to a comment on my answer.  &lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 18:32:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/bar-chart-color/m-p/41858#M2016</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-10-20T18:32:35Z</dc:date>
    </item>
  </channel>
</rss>

