<?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 How can I customize my chart to show labels instead of number values and to be color-coded? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-customize-my-chart-to-show-labels-instead-of-number/m-p/291713#M88120</link>
    <description>&lt;P&gt;I have a service which we need to monitor discrete states.  I only get events if the state changes.  I can map these states (e.g. error, init, pending, standby, hot) to numerical values and then graph them on a timechart.  With the filldown command I can also maintain the current state to produce a graph that shows the current state at any given time.&lt;/P&gt;

&lt;P&gt;What I would like to do next is map those numerical values and provide some content.  Ideally it would be to replace the y-axis so that instead of -1 through 3 it would display the states as text.  Other options that would also work would be to color each column a different color based on the state (for example, make the column chart turn red when it is in an error state), or provide a legend that would make it easier to read.  Basically I want someone to be able to look at the timechart and say at a given time what the state was without wondering what a 0, 1, 2 or 3 means.&lt;/P&gt;

&lt;P&gt;This is what I have thus far:&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/3394i475ABE4C0005B452/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;Also, if it gets me the desired effect I could also break it down so RCS, Realtime, and isps do not appear on the same panel but ideally would like to have that functionality as well.&lt;/P&gt;

&lt;P&gt;Any ideas that might help on this.&lt;/P&gt;

&lt;P&gt;Splunk 6.6.1&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2017 18:30:11 GMT</pubDate>
    <dc:creator>duffeysplunk</dc:creator>
    <dc:date>2017-08-16T18:30:11Z</dc:date>
    <item>
      <title>How can I customize my chart to show labels instead of number values and to be color-coded?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-customize-my-chart-to-show-labels-instead-of-number/m-p/291713#M88120</link>
      <description>&lt;P&gt;I have a service which we need to monitor discrete states.  I only get events if the state changes.  I can map these states (e.g. error, init, pending, standby, hot) to numerical values and then graph them on a timechart.  With the filldown command I can also maintain the current state to produce a graph that shows the current state at any given time.&lt;/P&gt;

&lt;P&gt;What I would like to do next is map those numerical values and provide some content.  Ideally it would be to replace the y-axis so that instead of -1 through 3 it would display the states as text.  Other options that would also work would be to color each column a different color based on the state (for example, make the column chart turn red when it is in an error state), or provide a legend that would make it easier to read.  Basically I want someone to be able to look at the timechart and say at a given time what the state was without wondering what a 0, 1, 2 or 3 means.&lt;/P&gt;

&lt;P&gt;This is what I have thus far:&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/3394i475ABE4C0005B452/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;Also, if it gets me the desired effect I could also break it down so RCS, Realtime, and isps do not appear on the same panel but ideally would like to have that functionality as well.&lt;/P&gt;

&lt;P&gt;Any ideas that might help on this.&lt;/P&gt;

&lt;P&gt;Splunk 6.6.1&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 18:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-customize-my-chart-to-show-labels-instead-of-number/m-p/291713#M88120</guid>
      <dc:creator>duffeysplunk</dc:creator>
      <dc:date>2017-08-16T18:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I customize my chart to show labels instead of number values and to be color-coded?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-customize-my-chart-to-show-labels-instead-of-number/m-p/291714#M88121</link>
      <description>&lt;P&gt;Run anywhere sample that produces something like you are asking for...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval status="error init hot pending standby whatever"
| makemv status 
| mvexpand status
| streamstats count as recno
| eval _time=60*floor(_time/60) + 60*recno
| eval mycount = 10 
| table _time mycount status
| eval range= case(status="error","red", status="init","purple", status="hot","green", status="pending","gray", status="standby","blue", true(),"black")
| chart sum(mycount) as count by _time status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The height of the bar could be manipulated however you want it.  &lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 21:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-customize-my-chart-to-show-labels-instead-of-number/m-p/291714#M88121</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-16T21:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I customize my chart to show labels instead of number values and to be color-coded?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-customize-my-chart-to-show-labels-instead-of-number/m-p/291715#M88122</link>
      <description>&lt;P&gt;I was able to use something very close to this, but also had to use multiseries to get it display exactly how I wanted.  Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 16:01:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-customize-my-chart-to-show-labels-instead-of-number/m-p/291715#M88122</guid>
      <dc:creator>duffeysplunk</dc:creator>
      <dc:date>2017-08-18T16:01:18Z</dc:date>
    </item>
  </channel>
</rss>

