<?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: Area Chart format timestamp in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72631#M3932</link>
    <description>&lt;P&gt;You can use the &lt;CODE&gt;fieldformat&lt;/CODE&gt; command to reformat _time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fieldformat" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fieldformat&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check out the &lt;CODE&gt;charting.seriesColors&lt;/CODE&gt; option as documented here:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3/Developer/CustomChartingConfig-FontColorBrushPalette" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/4.3/Developer/CustomChartingConfig-FontColorBrushPalette&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Jun 2012 21:18:03 GMT</pubDate>
    <dc:creator>araitz</dc:creator>
    <dc:date>2012-06-11T21:18:03Z</dc:date>
    <item>
      <title>Area Chart format timestamp</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72630#M3931</link>
      <description>&lt;P&gt;Hi, I am creating an area chart to show my application's response time over the last 24 hours and each tick is the aggregrated average response time of 30 minutes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | bucket _time span=30m | STATS avg(time_taken) BY _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;There are 2 questions: &lt;BR /&gt;
 1. Timeline on Y axis is not viewable because the original text (6/11/12 6:00:00.000 AM) is too long. How can I format it like 11AM, 2PM, etc?&lt;BR /&gt;
 2. How can I pick a different area chart color I prefer? by editting default.css?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jun 2012 20:38:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72630#M3931</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2012-06-11T20:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Area Chart format timestamp</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72631#M3932</link>
      <description>&lt;P&gt;You can use the &lt;CODE&gt;fieldformat&lt;/CODE&gt; command to reformat _time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fieldformat" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fieldformat&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check out the &lt;CODE&gt;charting.seriesColors&lt;/CODE&gt; option as documented here:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3/Developer/CustomChartingConfig-FontColorBrushPalette" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/4.3/Developer/CustomChartingConfig-FontColorBrushPalette&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jun 2012 21:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72631#M3932</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-06-11T21:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Area Chart format timestamp</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72632#M3933</link>
      <description>&lt;P&gt;I added the line &lt;BR /&gt;
"0xFF0000"&lt;/P&gt;

&lt;P&gt;but the area chart color doesn't change to red.&lt;BR /&gt;
Any idea?&lt;/P&gt;

&lt;P&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;&lt;BR /&gt;
&lt;DASHBOARD&gt;&lt;BR /&gt;
  &lt;LABEL&gt;test&lt;/LABEL&gt;&lt;BR /&gt;
  &lt;ROW&gt;&lt;BR /&gt;
    &lt;CHART&gt;&lt;BR /&gt;
      &lt;SEARCHNAME&gt;Response Time last 4 hrs&lt;/SEARCHNAME&gt;&lt;BR /&gt;
      &lt;TITLE&gt;Test&lt;/TITLE&gt;&lt;BR /&gt;
      area&lt;BR /&gt;
      0xFF0000&lt;BR /&gt;
      50&lt;BR /&gt;
      true&lt;BR /&gt;
    &lt;/CHART&gt;&lt;BR /&gt;
  &lt;/ROW&gt;&lt;BR /&gt;
&lt;/DASHBOARD&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 19:34:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72632#M3933</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2012-06-12T19:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Area Chart format timestamp</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72633#M3934</link>
      <description>&lt;P&gt;OK, totally my fault for not asking, but you are using what we call Simple XML.  &lt;/P&gt;

&lt;P&gt;To exercise greater control over things like charting colors, you would need to convert your existing view to Advanced XML - see &lt;A href="http://splunk-base.splunk.com/answers/1/how-can-i-convert-simple-view-xml-to-advanced-xml"&gt;http://splunk-base.splunk.com/answers/1/how-can-i-convert-simple-view-xml-to-advanced-xml&lt;/A&gt; if you want to go that route.&lt;/P&gt;

&lt;P&gt;The reason you can't just use CSS is that the chart elements are canvas objects which are styled in-line.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 20:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72633#M3934</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-06-12T20:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Area Chart format timestamp</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72634#M3935</link>
      <description>&lt;P&gt;Thanks for the info. I found the link of the Simple XML&lt;BR /&gt;
&lt;A href="http://splunk:8000/en-US/app/search/TestDashboard"&gt;http://splunk:8000/en-US/app/search/TestDashboard&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and also saw the advanced xml including the XML source.&lt;BR /&gt;
&lt;A href="http://splunk:8000/en-US/app/search/TestDashboard?showsource=1"&gt;http://splunk:8000/en-US/app/search/TestDashboard?showsource=1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;However, the xml does have the  foregroundcolor defined below. How come I still didn't see red in the area chart? Thanks!&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;
              &lt;OBJECT&gt;&lt;PARAM name="charting.foregroundColor" /&gt;0xFF0000&lt;BR /&gt;
              &lt;PARAM name="charting.chart" /&gt;area&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2012 21:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72634#M3935</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2012-06-12T21:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Area Chart format timestamp</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72635#M3936</link>
      <description>&lt;P&gt;I got it working. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2012 16:37:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72635#M3936</guid>
      <dc:creator>shangshin</dc:creator>
      <dc:date>2012-06-13T16:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Area Chart format timestamp</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72636#M3937</link>
      <description>&lt;P&gt;Awesome!  Good work.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2012 16:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Area-Chart-format-timestamp/m-p/72636#M3937</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-06-13T16:45:01Z</dc:date>
    </item>
  </channel>
</rss>

