<?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 modify timewrap legend? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-modify-timewrap-legend/m-p/403878#M26465</link>
    <description>&lt;P&gt;That's perfect, thank you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jun 2018 12:06:31 GMT</pubDate>
    <dc:creator>Clovisa</dc:creator>
    <dc:date>2018-06-26T12:06:31Z</dc:date>
    <item>
      <title>How to modify timewrap legend?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-modify-timewrap-legend/m-p/403876#M26463</link>
      <description>&lt;P&gt;Hi ! I am trying to modify the legend generated by the timewrap command. I saw that we could slightly change it with the parameter "series" but it's not really giving me what I want.&lt;/P&gt;

&lt;P&gt;Let's say I want to have a sum of prices from this request :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sandbox earliest=-13d | timechart sum(prices) as "Sum of the prices" span=d | timewrap 1w series=relative
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The legend will be Sum of the &lt;CODE&gt;prices_1week_before&lt;/CODE&gt; and &lt;CODE&gt;Sum of the prices_latest_week&lt;/CODE&gt; . I would like to have something like &lt;CODE&gt;Sum of the prices for the week before&lt;/CODE&gt; and &lt;CODE&gt;Sum of the prices for the latest week&lt;/CODE&gt; . &lt;/P&gt;

&lt;P&gt;How can I get this ? Thanks !&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 07:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-modify-timewrap-legend/m-p/403876#M26463</guid>
      <dc:creator>Clovisa</dc:creator>
      <dc:date>2018-06-26T07:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify timewrap legend?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-modify-timewrap-legend/m-p/403877#M26464</link>
      <description>&lt;P&gt;One option would be to use &lt;CODE&gt;series="exact"&lt;/CODE&gt; option to provide format for time series i.e.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourCurrentSearch&amp;gt;
| timewrap 1w series=exact time_format="Sum of the prices for %Y-%U week"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you intend to use &lt;CODE&gt;series="relative"&lt;/CODE&gt;, you can use rename command to change series name as required (relative option will generate some generic names as per the series name in the timechart.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourCurrentSearch&amp;gt;
| timewrap 1w series=relative
| rename "Sum of the prices_latest_week" as  "Sum of the prices latest week",
         "Sum of the prices_1week_before" as  "Sum of the prices the week before",
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Jun 2018 11:20:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-modify-timewrap-legend/m-p/403877#M26464</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-06-26T11:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify timewrap legend?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-modify-timewrap-legend/m-p/403878#M26465</link>
      <description>&lt;P&gt;That's perfect, thank you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 12:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-modify-timewrap-legend/m-p/403878#M26465</guid>
      <dc:creator>Clovisa</dc:creator>
      <dc:date>2018-06-26T12:06:31Z</dc:date>
    </item>
  </channel>
</rss>

