<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker]]></title><description><![CDATA[<p dir="auto">Hello all,<br />
I have a daily sum of some data, and I want to display the last 7 days of it on a bar graph. Is there any documentation for other values that can go into the from and to rather than just a range picker?</p>
<p dir="auto">&lt;ma-point-values point="myPoint3" values="point3Values" rollup="SUM" rollup-interval="1 DAYS" from="?" to="?"&gt;<br />
&lt;/ma-point-values&gt;</p>
<p dir="auto">On other graphs I have used ' latest="7" ' to show the last 7 days, but those were calculated daily in mango. When used in the line above, it doesn't seem to use the rollup. Any ideas?</p>
<p dir="auto">Thanks,<br />
Stephen</p>
]]></description><link>https://forum.mango-os.com/topic/2361/setting-from-and-to-to-only-last-7-days-without-range-picker</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 02:07:37 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2361.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Jul 2016 16:45:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Fri, 29 Jul 2016 16:58:28 GMT]]></title><description><![CDATA[<p dir="auto">Everything is preferable yes, you can email it to me at <a href="mailto:jared@infiniteautomation.com" rel="nofollow ugc">jared@infiniteautomation.com</a> if you would like.</p>
]]></description><link>https://forum.mango-os.com/post/12243</link><guid isPermaLink="true">https://forum.mango-os.com/post/12243</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Fri, 29 Jul 2016 16:58:28 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Fri, 29 Jul 2016 16:20:06 GMT]]></title><description><![CDATA[<p dir="auto">Sorry but when you say full markup do you want the app.js file as well? I'm using the dashboard template and building off it.</p>
]]></description><link>https://forum.mango-os.com/post/12242</link><guid isPermaLink="true">https://forum.mango-os.com/post/12242</guid><dc:creator><![CDATA[StephenVDK]]></dc:creator><pubDate>Fri, 29 Jul 2016 16:20:06 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Wed, 27 Jul 2016 15:24:53 GMT]]></title><description><![CDATA[<p dir="auto">You mentioned you were having issues with tabs, if you post up your full markup for the dashboard including the tabs I can help you. Without this I am clutching at straws.</p>
]]></description><link>https://forum.mango-os.com/post/12192</link><guid isPermaLink="true">https://forum.mango-os.com/post/12192</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Wed, 27 Jul 2016 15:24:53 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Wed, 27 Jul 2016 14:02:53 GMT]]></title><description><![CDATA[<p dir="auto">Changing the time scale for the second point to use moment didn't change any of the issues.</p>
]]></description><link>https://forum.mango-os.com/post/12184</link><guid isPermaLink="true">https://forum.mango-os.com/post/12184</guid><dc:creator><![CDATA[StephenVDK]]></dc:creator><pubDate>Wed, 27 Jul 2016 14:02:53 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Tue, 26 Jul 2016 17:50:19 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, didn't know about that button, I'll also try and change the other time scale and see what happens. Thanks</p>
<pre><code>h3&gt;Weekly Heat Transfer&lt;/h3&gt;
&lt;div class="row hidden-xs"&gt; 
  &lt;div class="col-sm-12 text-center extraPadding chart-holder"&gt;
    &lt;ma-now update-interval="1 HOURS" output="theTimeNow"&gt;&lt;/ma-now&gt;
    &lt;ma-get-point-value point-xid="DP_672608" point="myPoint3"&gt;&lt;/ma-get-point-value&gt;
    &lt;ma-point-values point="myPoint3" values="point3Values"
    from="theTimeNow | moment:'startOf':'day'|moment:'subtract':7:'days'"
    to="theTimeNow" rollup="SUM" rollup-interval="1 DAYS"&gt;
    &lt;/ma-point-values&gt;
    &lt;ma-get-point-value point-xid="DP_284166" point="myPoint7"&gt;&lt;/ma-get-point-value&gt;
    &lt;ma-point-values point="myPoint7" values="point7Values" latest="8"&gt;
    &lt;/ma-point-values&gt;
    &lt;ma-serial-chart style="height: 300px; width: 100%"

	series-1-values="point3Values" 
	series-1-point="myPoint3" 
	series-1-color="purple"
	series-1-type="column"
	series-3-values="point7Values"  
	series-3-point="myPoint7"  
	series-3-axis="right" 
	series-3-type="column" 
	series-3-color="green" 
	options="{
			valueAxes:[
				{title:'kJ', axisColor:'black', color:'black'},
				{title:'Outside Temp (°C)', axisColor:'green', color:'green'}
			]
		}"&gt;
	&lt;/ma-serial-chart&gt;
  &lt;/div&gt;
&lt;/div&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/12173</link><guid isPermaLink="true">https://forum.mango-os.com/post/12173</guid><dc:creator><![CDATA[StephenVDK]]></dc:creator><pubDate>Tue, 26 Jul 2016 17:50:19 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Tue, 26 Jul 2016 17:43:47 GMT]]></title><description><![CDATA[<p dir="auto">I can't really solve your problems with the tabs unless you post up the full markup, please wrap the markup between three backticks so the code is formatted (use the code button on the toolbar).</p>
<p dir="auto">From what I can see though you are trying to plot two points on a graph but for the second point you are using <code>latest="8"</code> which is giving funny results, try using the same set of attributes for both <code>&lt;ma-point-values&gt;</code></p>
]]></description><link>https://forum.mango-os.com/post/12172</link><guid isPermaLink="true">https://forum.mango-os.com/post/12172</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 26 Jul 2016 17:43:47 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Tue, 26 Jul 2016 17:32:33 GMT]]></title><description><![CDATA[<p dir="auto">Here's the code, I tried using some other examples that use 'moment' from the forum and the same issue arises, but anyway:</p>
<p dir="auto">&lt;h3&gt;Weekly Heat Transfer&lt;/h3&gt;<br />
&lt;div class="row hidden-xs"&gt;<br />
&lt;div class="col-sm-12 text-center extraPadding chart-holder"&gt;<br />
&lt;ma-now update-interval="1 HOURS" output="theTimeNow"&gt;&lt;/ma-now&gt;<br />
&lt;ma-get-point-value point-xid="DP_672608" point="myPoint3"&gt;&lt;/ma-get-point-value&gt;<br />
&lt;ma-point-values point="myPoint3" values="point3Values"<br />
from="theTimeNow | moment:'startOf':'day'|moment:'subtract':7:'days'"<br />
to="theTimeNow" rollup="SUM" rollup-interval="1 DAYS"&gt;<br />
&lt;/ma-point-values&gt;<br />
&lt;ma-get-point-value point-xid="DP_284166" point="myPoint7"&gt;&lt;/ma-get-point-value&gt;<br />
&lt;ma-point-values point="myPoint7" values="point7Values" latest="8"&gt;<br />
&lt;/ma-point-values&gt;<br />
&lt;ma-serial-chart style="height: 300px; width: 100%"</p>
<pre><code>	series-1-values="point3Values" 
	series-1-point="myPoint3" 
	series-1-color="purple"
	series-1-type="column"
	series-3-values="point7Values"  
	series-3-point="myPoint7"  
	series-3-axis="right" 
	series-3-type="column" 
	series-3-color="green" 
	options="{
			valueAxes:[
				{title:'kJ', axisColor:'black', color:'black'},
				{title:'Outside Temp (°C)', axisColor:'green', color:'green'}
			]
		}"&gt;
	&lt;/ma-serial-chart&gt;
&lt;/div&gt;
</code></pre>
<p dir="auto">&lt;/div&gt;</p>
]]></description><link>https://forum.mango-os.com/post/12171</link><guid isPermaLink="true">https://forum.mango-os.com/post/12171</guid><dc:creator><![CDATA[StephenVDK]]></dc:creator><pubDate>Tue, 26 Jul 2016 17:32:33 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Tue, 26 Jul 2016 17:28:38 GMT]]></title><description><![CDATA[<p dir="auto">If you post up your markup I'll help you.</p>
]]></description><link>https://forum.mango-os.com/post/12170</link><guid isPermaLink="true">https://forum.mango-os.com/post/12170</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 26 Jul 2016 17:28:38 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Tue, 26 Jul 2016 17:04:21 GMT]]></title><description><![CDATA[<p dir="auto">I may have spoke too soon.<br />
The graph is displaying the information the way it should be, but it's causing issues with the rest of the dashboard. It's displaying itself on other tabs, and when I click back to it's tab, it brings other graphs to that one. The graphs code are on different html files.</p>
]]></description><link>https://forum.mango-os.com/post/12168</link><guid isPermaLink="true">https://forum.mango-os.com/post/12168</guid><dc:creator><![CDATA[StephenVDK]]></dc:creator><pubDate>Tue, 26 Jul 2016 17:04:21 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Mon, 25 Jul 2016 20:06:51 GMT]]></title><description><![CDATA[<p dir="auto">Great that seems to have worked, Thank you.</p>
]]></description><link>https://forum.mango-os.com/post/12157</link><guid isPermaLink="true">https://forum.mango-os.com/post/12157</guid><dc:creator><![CDATA[StephenVDK]]></dc:creator><pubDate>Mon, 25 Jul 2016 20:06:51 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Mon, 25 Jul 2016 19:19:54 GMT]]></title><description><![CDATA[<p dir="auto">Hey Stephen,</p>
<p dir="auto">Here's a quick example of how to do what you are asking for. You use the ma-now directive to get the current time then use the moment filter to manipulate the from time.</p>
<pre><code>&lt;div layout="row"&gt;
    &lt;md-input-container flex=""&gt;
        &lt;label&gt;Choose a point&lt;/label&gt;
        &lt;ma-point-list limit="200" ng-model="point1"&gt;&lt;/ma-point-list&gt;
    &lt;/md-input-container&gt;
&lt;/div&gt;

&lt;ma-now update-interval="1 HOURS" output="theTimeNow"&gt;&lt;/ma-now&gt;

&lt;ma-point-values point="point1" values="point1Values"
  from="theTimeNow | moment:'startOf':'day'|moment:'subtract':7:'days'"
    to="theTimeNow" rollup="SUM" rollup-interval="1 DAYS"&gt;
&lt;/ma-point-values&gt;

&lt;ma-serial-chart style="height: 300px; width: 100%" series-1-values="point1Values" series-1-point="point1" default-type="column"&gt;
&lt;/ma-serial-chart&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/12156</link><guid isPermaLink="true">https://forum.mango-os.com/post/12156</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Mon, 25 Jul 2016 19:19:54 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Mon, 25 Jul 2016 17:20:18 GMT]]></title><description><![CDATA[<p dir="auto">I have, but I'm still unsure of options I have for from="" and to="" without using date picker.</p>
]]></description><link>https://forum.mango-os.com/post/12147</link><guid isPermaLink="true">https://forum.mango-os.com/post/12147</guid><dc:creator><![CDATA[StephenVDK]]></dc:creator><pubDate>Mon, 25 Jul 2016 17:20:18 GMT</pubDate></item><item><title><![CDATA[Reply to Setting &quot;from&quot; and &quot;to&quot; to only last 7 days without range picker on Sat, 23 Jul 2016 15:11:30 GMT]]></title><description><![CDATA[<p dir="auto">Have you seen this post <a rel="nofollow ugc">http://infiniteautomation.com/forum/topic/2216/how-to-simulate-presetpicker-change-with-buttons</a>? I think it may be helpful.</p>
]]></description><link>https://forum.mango-os.com/post/12141</link><guid isPermaLink="true">https://forum.mango-os.com/post/12141</guid><dc:creator><![CDATA[Woody Beverley]]></dc:creator><pubDate>Sat, 23 Jul 2016 15:11:30 GMT</pubDate></item></channel></rss>