<?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 can i rename the values  in piechart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351612#M39981</link>
    <description>&lt;P&gt;HI @navd,&lt;/P&gt;

&lt;P&gt;The labels are coming for events so you have to change before chart or stats command.&lt;/P&gt;

&lt;P&gt;Can you please share your sample search &amp;amp; sample data (old label and new label)?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2018 16:35:44 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2018-01-31T16:35:44Z</dc:date>
    <item>
      <title>how can i rename the values  in piechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351611#M39980</link>
      <description>&lt;P&gt;I have piechart created and i want to rename the values that i have for all the pie slices .&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 16:30:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351611#M39980</guid>
      <dc:creator>navd</dc:creator>
      <dc:date>2018-01-31T16:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: how can i rename the values  in piechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351612#M39981</link>
      <description>&lt;P&gt;HI @navd,&lt;/P&gt;

&lt;P&gt;The labels are coming for events so you have to change before chart or stats command.&lt;/P&gt;

&lt;P&gt;Can you please share your sample search &amp;amp; sample data (old label and new label)?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 16:35:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351612#M39981</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-01-31T16:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: how can i rename the values  in piechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351613#M39982</link>
      <description>&lt;P&gt;@navd, is this different from your previous question &lt;A href="https://answers.splunk.com/answers/614546/display-the-values-on-pie-slice-in-pie-chart.html"&gt;https://answers.splunk.com/answers/614546/display-the-values-on-pie-slice-in-pie-chart.html&lt;/A&gt; ?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 16:42:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351613#M39982</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-31T16:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: how can i rename the values  in piechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351614#M39983</link>
      <description>&lt;P&gt;I have the statistics like this :&lt;/P&gt;

&lt;H2&gt;etc_state                                                            count&lt;/H2&gt;

&lt;P&gt;compute;good count(6424)                            6424&lt;BR /&gt;
server;notify  count(64)                                    64&lt;/P&gt;

&lt;P&gt;So,here I want to rename compute;good as Good and server;notify as notify&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 16:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351614#M39983</guid>
      <dc:creator>navd</dc:creator>
      <dc:date>2018-01-31T16:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: how can i rename the values  in piechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351615#M39984</link>
      <description>&lt;P&gt;yes ,now I wanted to rename &lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 16:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351615#M39984</guid>
      <dc:creator>navd</dc:creator>
      <dc:date>2018-01-31T16:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: how can i rename the values  in piechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351616#M39985</link>
      <description>&lt;P&gt;You can try case statement:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt;|eval etc_state=case(etc_state=="compute;good" ,"good",etc_state=="server;notify","notify",1==1,"")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Jan 2018 16:52:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351616#M39985</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-31T16:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: how can i rename the values  in piechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351617#M39986</link>
      <description>&lt;P&gt;@navd, if the field name for pie chart label is &lt;CODE&gt;field&lt;/CODE&gt;, you can apply the following &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/TextFunctions#replace.28X.2CY.2CZ.29"&gt;replace()&lt;/A&gt; command with regex match to retain only text after semicolon.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;YourCurrentSearch&amp;gt;
| eval &amp;lt;yourFieldName&amp;gt;=replace(&amp;lt;yourFieldName&amp;gt;,"([^;]+);(.*)","\2")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is the run anywhere search for reference:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval field="compute;good count(6424)", value=6424
| append [| makeresults
| eval field="server;notify count(64)", value=64]
| fields - _time
| eval field=replace(field,"([^;]+);(.*)","\2")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Jan 2018 16:56:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351617#M39986</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-31T16:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: how can i rename the values  in piechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351618#M39987</link>
      <description>&lt;P&gt;Ok, refer to answer below for this question. Also please accept the answer to your previous question if one of the suggested answers has worked out for you.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 16:58:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-can-i-rename-the-values-in-piechart/m-p/351618#M39987</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-31T16:58:14Z</dc:date>
    </item>
  </channel>
</rss>

