<?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: changing colors in a column chart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53478#M2765</link>
    <description>&lt;P&gt;I over-complicated it. This does the same, and is easier to understand:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=coreops sourcetype="snmp_stats" tag::host="ERA_Full" | head 7 | eval xlabel=""| chart sum(CONNECTIONS) by xlabel,HOST | rename xlabel AS HOST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;"rename" is just used to name the x-axis. You can also use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=coreops sourcetype="snmp_stats" tag::host="ERA_Full" | head 7 | eval xlabel=HOST| chart sum(CONNECTIONS) by xlabel,HOST | rename xlabel AS HOST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which will puts non-empty HOST labels on each column, which may be nicer than the previous, which just sets them to empty. (Though the legend is still there.)&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2013 01:45:40 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2013-03-07T01:45:40Z</dc:date>
    <item>
      <title>changing colors in a column chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53471#M2758</link>
      <description>&lt;P&gt;Is there any way to tell Splunk to automatically assign different colors to columns in a chart? &lt;BR /&gt;
I created a chart, and they all use the same colors. &lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 20:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53471#M2758</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-03-06T20:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: changing colors in a column chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53472#M2759</link>
      <description>&lt;P&gt;if you chart "by" a field, each "by" value gets a new series and thus a new color. if you're plotting the same value for a single series, it will just one color for the entire series. so it would be helpful to know what your query is.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 21:27:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53472#M2759</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-03-06T21:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: changing colors in a column chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53473#M2760</link>
      <description>&lt;P&gt;Here's the query:&lt;/P&gt;

&lt;P&gt;index=coreops sourcetype="snmp_stats" tag::host="ERA_Full" |fields  HOST, CONNECTIONS  |table HOST, CONNECTIONS  |head 7&lt;/P&gt;

&lt;P&gt;I'm trying to duplicate a report that is done in Excel manually, and the customers want the values in different colors.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:27:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53473#M2760</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2020-09-28T13:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: changing colors in a column chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53474#M2761</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=coreops sourcetype="snmp_stats" tag::host="ERA_Full" | head 7 | chart sum(CONNECTIONS) as CONNECTIONS by HOST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or max(CONNECTIONS) or avg(CONNECTIONS) as appropriate (though in your case it's going to be the same).&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 21:55:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53474#M2761</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-03-06T21:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: changing colors in a column chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53475#M2762</link>
      <description>&lt;P&gt;Nothing changed...&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2013 23:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53475#M2762</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-03-06T23:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: changing colors in a column chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53476#M2763</link>
      <description>&lt;P&gt;ah, try adding this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=coreops sourcetype="snmp_stats" tag::host="ERA_Full" | head 7 | chart sum(CONNECTIONS) as CONNECTIONS by HOST | eval H=HOST | eval HOST="" | xyseries HOST H CONNECTIONS
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Mar 2013 23:54:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53476#M2763</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-03-06T23:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: changing colors in a column chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53477#M2764</link>
      <description>&lt;P&gt;Wow. OK, that did it. Any chance you can explain that?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 01:25:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53477#M2764</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-03-07T01:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: changing colors in a column chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53478#M2765</link>
      <description>&lt;P&gt;I over-complicated it. This does the same, and is easier to understand:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=coreops sourcetype="snmp_stats" tag::host="ERA_Full" | head 7 | eval xlabel=""| chart sum(CONNECTIONS) by xlabel,HOST | rename xlabel AS HOST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;"rename" is just used to name the x-axis. You can also use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=coreops sourcetype="snmp_stats" tag::host="ERA_Full" | head 7 | eval xlabel=HOST| chart sum(CONNECTIONS) by xlabel,HOST | rename xlabel AS HOST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which will puts non-empty HOST labels on each column, which may be nicer than the previous, which just sets them to empty. (Though the legend is still there.)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 01:45:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53478#M2765</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-03-07T01:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: changing colors in a column chart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53479#M2766</link>
      <description>&lt;P&gt;this did the trick!! wonderful&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 17:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/changing-colors-in-a-column-chart/m-p/53479#M2766</guid>
      <dc:creator>vsingla1</dc:creator>
      <dc:date>2017-04-24T17:19:04Z</dc:date>
    </item>
  </channel>
</rss>

