<?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: How to change default color charts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-default-color-charts/m-p/374263#M109999</link>
    <description>&lt;P&gt;for the table properties, absulutly,&lt;BR /&gt;
best to check out the Splunk Dashboards Example app.&lt;BR /&gt;
it has all the code and visualizations to demonstrate&lt;BR /&gt;
download and enjoy, its super useful&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2017 15:05:18 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2017-08-22T15:05:18Z</dc:date>
    <item>
      <title>How to change default color charts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-default-color-charts/m-p/374260#M109996</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I know there is a lot of questions for this matter, but I couldn't find a solution that worked for me.&lt;BR /&gt;
I don't understand this simple/advanced XML things (I'm open to received an understandable summary about it), and for me, it's not possible to use CSS.&lt;/P&gt;

&lt;P&gt;Now, I want to change the colors of the charts (usually bar charts). I know that there is a kind of master color array, so, two options.&lt;BR /&gt;
1st.- Change this array in every chart setting the colors I want to show&lt;BR /&gt;
2nd.- To know how to change the default colors in the array master. This would be perfect since is, probably, includes more "work" once but less from there.&lt;/P&gt;

&lt;P&gt;Can someone illuminates me in any or both of this options, please?&lt;/P&gt;

&lt;P&gt;I have this one where I was trying to change the numbers.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;panel&amp;gt;
          &amp;lt;title&amp;gt;Top 5 alert types from manually handled alerts&amp;lt;/title&amp;gt;
          &amp;lt;chart&amp;gt;
            &amp;lt;search&amp;gt;
              &amp;lt;query&amp;gt;index="*alerts"  |  chart  count(Alert) AS "Manually handled alerts" by FieldA|  sort -  "Manually handled alerts" | head 5&amp;lt;/query&amp;gt;
              &amp;lt;earliest&amp;gt;$previous_month.earliest$&amp;lt;/earliest&amp;gt;
              &amp;lt;latest&amp;gt;$previous_month.latest$&amp;lt;/latest&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;collapsed&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;collapsed&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;all&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;none&amp;lt;/option&amp;gt;
            &amp;lt;option name="charting.seriesColors"&amp;gt;[0x004386,0xFDD000,0x0098D8,0xF6AA00,0xA0CAEC]&amp;lt;/option&amp;gt;
            &amp;lt;option name="height"&amp;gt;288&amp;lt;/option&amp;gt;
          &amp;lt;/chart&amp;gt;
 &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 14:42:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-default-color-charts/m-p/374260#M109996</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2017-08-21T14:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default color charts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-default-color-charts/m-p/374261#M109997</link>
      <description>&lt;P&gt;hello there,&lt;BR /&gt;
many answers with nice examples in this portal, here are a few:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/289694/how-do-i-customize-the-bar-colors-for-my-dashboard.html"&gt;https://answers.splunk.com/answers/289694/how-do-i-customize-the-bar-colors-for-my-dashboard.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/350448/how-to-customize-bar-chart-colors-based-on-the-val.html"&gt;https://answers.splunk.com/answers/350448/how-to-customize-bar-chart-colors-based-on-the-val.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/496095/is-it-possible-to-change-default-colors-for-charts.html"&gt;https://answers.splunk.com/answers/496095/is-it-possible-to-change-default-colors-for-charts.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/50855/how-can-we-change-the-color-column-chart.html"&gt;https://answers.splunk.com/answers/50855/how-can-we-change-the-color-column-chart.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;here is a way to make it happen:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
 &amp;lt;label&amp;gt;My dashboard&amp;lt;/label&amp;gt;
 &amp;lt;row&amp;gt;
  &amp;lt;panel&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;searchName&amp;gt;My saved report&amp;lt;/searchName&amp;gt;
      &amp;lt;option name="charting.legend.labels"&amp;gt;[error,warn,ok]&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.seriesColors"&amp;gt;[0xFF0000,0xFFFF00,0x00FF00]&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.legend.masterLegend"&amp;gt;&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;another way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.fieldColors"&amp;gt;
  {"error":0xFF0000,"warn":0xFFFF00,"info":0x00FF00}
&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:51:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-default-color-charts/m-p/374261#M109997</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-08-21T15:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default color charts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-default-color-charts/m-p/374262#M109998</link>
      <description>&lt;P&gt;Thank you, I'm not being able to change the default array still, but I could change every chart (bar/pie/column) with the company colors &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Adding this command: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="charting.seriesColors"&amp;gt;[0xFF9576,0xC7161E,0x0098D8,0xF6AA00]&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The one above didn't work, is still all blue. I think it is because is a top search, I've tried the label thing but nothing, probably because being a top search, although not in my case, the label can change a lot. (In my case the top 5 are always the same ones.&lt;BR /&gt;
Do you know if it's possible to change it still?&lt;/P&gt;

&lt;P&gt;Also, do you know if the table properties (background, text, lines) can be customize too?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 14:49:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-default-color-charts/m-p/374262#M109998</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2017-08-22T14:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default color charts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-default-color-charts/m-p/374263#M109999</link>
      <description>&lt;P&gt;for the table properties, absulutly,&lt;BR /&gt;
best to check out the Splunk Dashboards Example app.&lt;BR /&gt;
it has all the code and visualizations to demonstrate&lt;BR /&gt;
download and enjoy, its super useful&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:05:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-default-color-charts/m-p/374263#M109999</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-08-22T15:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default color charts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-default-color-charts/m-p/374264#M110000</link>
      <description>&lt;P&gt;Thank you a lot! &lt;/P&gt;

&lt;P&gt;There's a lot of things here (in the app) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 15:22:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-default-color-charts/m-p/374264#M110000</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2017-08-22T15:22:14Z</dc:date>
    </item>
  </channel>
</rss>

