<?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 Is it possible to change default colors for charts? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277877#M83834</link>
    <description>&lt;P&gt;Is it possible to change the default colors for charts (seriesColors), preferably so that it survives an upgrade?&lt;/P&gt;

&lt;P&gt;I would like to use the colors in the CI for the charts be default ( as far as it goes, not that many colors &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2017 10:52:39 GMT</pubDate>
    <dc:creator>dominiquevocat</dc:creator>
    <dc:date>2017-02-06T10:52:39Z</dc:date>
    <item>
      <title>Is it possible to change default colors for charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277877#M83834</link>
      <description>&lt;P&gt;Is it possible to change the default colors for charts (seriesColors), preferably so that it survives an upgrade?&lt;/P&gt;

&lt;P&gt;I would like to use the colors in the CI for the charts be default ( as far as it goes, not that many colors &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 10:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277877#M83834</guid>
      <dc:creator>dominiquevocat</dc:creator>
      <dc:date>2017-02-06T10:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change default colors for charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277878#M83835</link>
      <description>&lt;P&gt;Yes, there is.&lt;BR /&gt;
You have the option of deliberately assigning colors to series (in order) rather than allowing Splunk to go with default on dashboards: &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/Viz/Chartcustomization"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.4/Viz/Chartcustomization&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 18:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277878#M83835</guid>
      <dc:creator>mhassan24</dc:creator>
      <dc:date>2017-02-07T18:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change default colors for charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277879#M83836</link>
      <description>&lt;P&gt;And you can use in the options xml, like this:&lt;/P&gt;

&lt;P&gt;{"field1":#23B5F9, "field2":#FB8900, "field3":#FF5733, "field4":#14B87C}&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 19:51:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277879#M83836</guid>
      <dc:creator>felipesewaybric</dc:creator>
      <dc:date>2017-02-07T19:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change default colors for charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277880#M83837</link>
      <description>&lt;P&gt;You can use either or both for fieldColors and seriesColors with your set of colors to be consistent across your app.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;[Update]&lt;/P&gt;

&lt;P&gt;Following are built in Chart Coloring options (Refer to &lt;STRONG&gt;Chart Color Options&lt;/STRONG&gt; in &lt;STRONG&gt;Splunk 6.x Dashboard Examples app&lt;/STRONG&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.backgroundColor"&amp;gt;
&amp;lt;option name="charting.foregroundColor"&amp;gt;
&amp;lt;option name="charting.fontColor"&amp;gt;
&amp;lt;option name="charting.seriesColors"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can use CSS to override styling as per your need as well. You can override svg segments using &lt;STRONG&gt;!important&lt;/STRONG&gt; in CSS. (Refer to  &lt;STRONG&gt;Custom Layout Example: Dark&lt;/STRONG&gt; example in &lt;STRONG&gt;Splunk 6.x Dashboard Examples App&lt;/STRONG&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/* SVG */
.highcharts-container svg {
    background: #000;
}
.highcharts-container svg&amp;gt;rect:not(.block-background) {
    fill: #000 !important;
    opacity: 0.1;
}
.highcharts-container svg text:not(.single-result):not(.delta-label) {
    fill: #ccc !important;
}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Feb 2017 08:47:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277880#M83837</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-02-08T08:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change default colors for charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277881#M83838</link>
      <description>&lt;P&gt;{"Error": 0xFF0000,"Success":0x00FF00}&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2017 14:02:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277881#M83838</guid>
      <dc:creator>srinivasup</dc:creator>
      <dc:date>2017-02-28T14:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change default colors for charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277882#M83839</link>
      <description>&lt;P&gt;to make it more precise: i would like to change the default stylesheet or something i.e. influence the colors Splunk uses unless you specify something in the xml of a dashboard etc.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 09:07:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277882#M83839</guid>
      <dc:creator>dominiquevocat</dc:creator>
      <dc:date>2017-03-01T09:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change default colors for charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277883#M83840</link>
      <description>&lt;P&gt;See this answer for a detailed explanation:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/338154/change-color-of-splunk-graph-based-on-string-value.html#answer-337131"&gt;https://answers.splunk.com/answers/338154/change-color-of-splunk-graph-based-on-string-value.html#answer-337131&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 11:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277883#M83840</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-03-01T11:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change default colors for charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277884#M83841</link>
      <description>&lt;P&gt;@dominiquevocat - Did one of the answers below help provide a solution your question? If yes, please click “Accept” below the best answer to resolve this post and upvote anything that was helpful. If no, please leave a comment with more feedback. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 17:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277884#M83841</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-03-11T17:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change default colors for charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277885#M83842</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;
Since any answer is accepted, does it mean that is not possible to change the default array with the color I want?&lt;/P&gt;

&lt;P&gt;I would like to make the graphs in my dashboard more unified with the company official colors, but not having to change it for every chart.&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:17:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/277885#M83842</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2017-08-11T15:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change default colors for charts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/556812#M158143</link>
      <description>&lt;P&gt;You can use an undocumented setting in &lt;STRONG&gt;ui-prefs.conf&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[default]
display.visualizations.charting.seriesColors = [0xea1b0a,0x1ea2b1,0xb00402,&amp;lt;ADD YOUR COLORS&amp;gt;]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It just didn't work as embedded report. Everywhere else - it looks fine.&lt;/P&gt;&lt;P&gt;If you need to set the seriesColors for a specific embedded report - you can add the property in the stanza of the report in the&amp;nbsp;&lt;STRONG&gt;savedsearches.conf:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[myreport]
display.visualizations.charting.seriesColors = [0xea1b0a,0x1ea2b1,0xb00402,&amp;lt;ADD YOUR COLORS&amp;gt;]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Jun 2021 06:01:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-change-default-colors-for-charts/m-p/556812#M158143</guid>
      <dc:creator>danielsachse</dc:creator>
      <dc:date>2021-06-23T06:01:23Z</dc:date>
    </item>
  </channel>
</rss>

