<?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 Can you change the colors in bar graph results and make them constant? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-change-the-colors-in-bar-graph-results-and-make-them/m-p/365027#M23849</link>
    <description>&lt;P&gt;I have a bar graph as below &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/4076iC8258D6ED2D66418/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Now how can change my current colors to display like below constantly, like every time I want to see only the below colors.&lt;BR /&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/4077i55C71E3DC0C2F9DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The following is my current html code. Now exactly where should I have to specify the above three color names.&lt;BR /&gt;
        option name="charting.axisLabelsX.majorLabelStyle.overflowMode" ellipsisNone &lt;BR /&gt;
        option name="charting.axisLabelsX.majorLabelStyle.rotation" 0 &lt;BR /&gt;
        option name="charting.axisTitleX.visibility"&amp;gt;collapsed&lt;BR /&gt;
        option name="charting.axisTitleY.visibility"&amp;gt;visible&lt;BR /&gt;
        option name="charting.axisTitleY2.visibility"&amp;gt;visible&lt;BR /&gt;
        option name="charting.axisX.scale"&amp;gt;linear&lt;BR /&gt;
        option name="charting.axisY.scale"&amp;gt;linear&lt;BR /&gt;
        option name="charting.axisY2.enabled"&amp;gt;0&lt;BR /&gt;
        option name="charting.axisY2.scale"&amp;gt;inherit&lt;BR /&gt;
        option name="charting.chart"&amp;gt;bar&lt;BR /&gt;
        option name="charting.chart.bubbleMaximumSize"&amp;gt;50&lt;BR /&gt;
        option name="charting.chart.bubbleMinimumSize"&amp;gt;10&lt;BR /&gt;
        option name="charting.chart.bubbleSizeBy"&amp;gt;area&lt;BR /&gt;
        option name="charting.chart.nullValueMode"&amp;gt;gaps&lt;BR /&gt;
        option name="charting.chart.showDataLabels"&amp;gt;none&lt;BR /&gt;
        option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&lt;BR /&gt;
        option name="charting.chart.stackMode"&amp;gt;stacked&lt;BR /&gt;
        option name="charting.chart.style"&amp;gt;shiny&lt;BR /&gt;
        option name="charting.drilldown"&amp;gt;all&lt;BR /&gt;
        option name="charting.layout.splitSeries"&amp;gt;0&lt;BR /&gt;
        option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&lt;BR /&gt;
        option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisEnd&lt;BR /&gt;
        option name="charting.legend.placement"&amp;gt;top&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2017 20:51:11 GMT</pubDate>
    <dc:creator>pavanae</dc:creator>
    <dc:date>2017-12-22T20:51:11Z</dc:date>
    <item>
      <title>Can you change the colors in bar graph results and make them constant?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-change-the-colors-in-bar-graph-results-and-make-them/m-p/365027#M23849</link>
      <description>&lt;P&gt;I have a bar graph as below &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/4076iC8258D6ED2D66418/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Now how can change my current colors to display like below constantly, like every time I want to see only the below colors.&lt;BR /&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/4077i55C71E3DC0C2F9DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The following is my current html code. Now exactly where should I have to specify the above three color names.&lt;BR /&gt;
        option name="charting.axisLabelsX.majorLabelStyle.overflowMode" ellipsisNone &lt;BR /&gt;
        option name="charting.axisLabelsX.majorLabelStyle.rotation" 0 &lt;BR /&gt;
        option name="charting.axisTitleX.visibility"&amp;gt;collapsed&lt;BR /&gt;
        option name="charting.axisTitleY.visibility"&amp;gt;visible&lt;BR /&gt;
        option name="charting.axisTitleY2.visibility"&amp;gt;visible&lt;BR /&gt;
        option name="charting.axisX.scale"&amp;gt;linear&lt;BR /&gt;
        option name="charting.axisY.scale"&amp;gt;linear&lt;BR /&gt;
        option name="charting.axisY2.enabled"&amp;gt;0&lt;BR /&gt;
        option name="charting.axisY2.scale"&amp;gt;inherit&lt;BR /&gt;
        option name="charting.chart"&amp;gt;bar&lt;BR /&gt;
        option name="charting.chart.bubbleMaximumSize"&amp;gt;50&lt;BR /&gt;
        option name="charting.chart.bubbleMinimumSize"&amp;gt;10&lt;BR /&gt;
        option name="charting.chart.bubbleSizeBy"&amp;gt;area&lt;BR /&gt;
        option name="charting.chart.nullValueMode"&amp;gt;gaps&lt;BR /&gt;
        option name="charting.chart.showDataLabels"&amp;gt;none&lt;BR /&gt;
        option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&lt;BR /&gt;
        option name="charting.chart.stackMode"&amp;gt;stacked&lt;BR /&gt;
        option name="charting.chart.style"&amp;gt;shiny&lt;BR /&gt;
        option name="charting.drilldown"&amp;gt;all&lt;BR /&gt;
        option name="charting.layout.splitSeries"&amp;gt;0&lt;BR /&gt;
        option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&lt;BR /&gt;
        option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisEnd&lt;BR /&gt;
        option name="charting.legend.placement"&amp;gt;top&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 20:51:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-change-the-colors-in-bar-graph-results-and-make-them/m-p/365027#M23849</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2017-12-22T20:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can you change the colors in bar graph results and make them constant?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-change-the-colors-in-bar-graph-results-and-make-them/m-p/365028#M23850</link>
      <description>&lt;P&gt;@pavanae for us to help you better you would need to also provide the series names being plotted in the bar chart or in other words the names of the legend.&lt;/P&gt;

&lt;P&gt;There are two options you have:&lt;BR /&gt;
1) If you know the series names use &lt;CODE&gt;&amp;lt;option name="charting.fieldColors"&amp;gt;{"yourField1": 0x425b3c, "yourField2": 0x5b3c53, "yourField3": 0xc98b06}&amp;lt;/option&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;2) If your series names can change (but count remains fixed), you can use  &lt;CODE&gt;&amp;lt;option name="charting.seriesColors"&amp;gt;{0x425b3c, 0x5b3c53,0xc98b06}&amp;lt;/option&amp;gt;&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Please try out and confirm. Refer to documentation for detais: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference#General_chart_properties"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference#General_chart_properties&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Just FYI, what you have shared is Simple XML dashbaord, not HTML.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 21:20:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-change-the-colors-in-bar-graph-results-and-make-them/m-p/365028#M23850</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-22T21:20:43Z</dc:date>
    </item>
  </channel>
</rss>

