<?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[Integral of a point]]></title><description><![CDATA[<p dir="auto">I have a component that has an entry point as a parameter and I need to show the integral of this point.<br />
I was testing with this:</p>
<pre><code>&lt;ma-get-point-value  point="$ctrl.data"&gt;&lt;/ma-get-point-value&gt;
&lt;ma-calc input="$ctrl.data | filter:{statistics:'INTEGRAL'} " output="$ctrl.dataIntegral"&gt;&lt;/ma-calc&gt;
</code></pre>
<p dir="auto">but it does not work, also try this:</p>
<pre><code>&lt;ma-get-point-value  point="$ctrl.data"&gt;&lt;/ma-get-point-value&gt;
&lt;ma-point-statistics points="$ctrl.data" rendered=false  display-mode="INTEGRAL" rollup-interval="1 MONTHS"&gt;&lt;/ma-point-statistics&gt;
</code></pre>
<p dir="auto">I was seeing some examples and after trying other options, I can't show the value in my view.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.mango-os.com/topic/4476/integral-of-a-point</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 19:30:49 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4476.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Sep 2019 12:42:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Integral of a point on Mon, 16 Sep 2019 13:32:50 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Edit: Phil you were ahead once again. :)</p>
</blockquote>
<p dir="auto">Your reply does add detail though, so thanks for it!</p>
]]></description><link>https://forum.mango-os.com/post/23641</link><guid isPermaLink="true">https://forum.mango-os.com/post/23641</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 16 Sep 2019 13:32:50 GMT</pubDate></item><item><title><![CDATA[Reply to Integral of a point on Mon, 16 Sep 2019 13:23:48 GMT]]></title><description><![CDATA[<p dir="auto">Firstly it is really hard to help if we do not know the value of your controller data.</p>
<p dir="auto">Secondly if I am not mistaken you have no output of ma-point-statistics hence why you cannot show any values calculated by the directive.</p>
<p dir="auto">Thirdly rollup-interval is not present in the directive. I assume you want to use a preset of a ma-date-range-picker.</p>
<pre><code> &lt;ma-date-range-picker from="from" to="to" preset="LAST_1_DAYS" update-interval="5 seconds"&gt;&lt;/ma-date-range-picker&gt;
</code></pre>
<p dir="auto">Fourthly ma-point-statistics require from and to date objects to work. So I guess correctly you should use following:</p>
<pre><code> &lt;ma-date-range-picker from="from" to="to" preset="LAST_1_MONTHS" &gt;&lt;/ma-date-range-picker&gt;

&lt;ma-point-statistics points="$ctrl.data" from="from" to="to" display-mode="INTEGRAL" statistics="statsObj"&gt;&lt;/ma-point-statistics&gt;

{{statsObj}}
</code></pre>
<p dir="auto">Edit: Phil you were ahead once again. :)</p>
]]></description><link>https://forum.mango-os.com/post/23639</link><guid isPermaLink="true">https://forum.mango-os.com/post/23639</guid><dc:creator><![CDATA[ThomasEinasto]]></dc:creator><pubDate>Mon, 16 Sep 2019 13:23:48 GMT</pubDate></item><item><title><![CDATA[Reply to Integral of a point on Mon, 16 Sep 2019 13:21:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi johana,</p>
<p dir="auto">Have you seen the example pages? For instance the page at <code>/ui/examples/statistics/get-statistics</code> has some information like this:</p>
<pre><code>&lt;ma-filtering-point-list ng-model="myPoint" auto-init="true" data-type="NUMERIC"&gt;&lt;/ma-filtering-point-list&gt;

&lt;ma-point-statistics point="myPoint" from="dateBar.from" to="dateBar.to" statistics="statsObj"&gt;&lt;/ma-point-statistics&gt;

&lt;p&gt;
    The average for the period is {{ statsObj.average.value }} at {{ statsObj.average.timestamp | maMoment:'format':'lll' }}

    &lt;br&gt;

    The max value for the period is {{ statsObj.maximum.value }} at {{ statsObj.maximum.timestamp | maMoment:'format':'lll' }}
    
&lt;/p&gt;
</code></pre>
<p dir="auto">If the integral were mentioned there, it would probably be in some sentence like this one,</p>
<pre><code>&lt;br&gt;
    The integral for the period is {{ statsObj.integral.value }} and has a timestamp matching period start {{ statsObj.integral.timestamp }}
</code></pre>
]]></description><link>https://forum.mango-os.com/post/23638</link><guid isPermaLink="true">https://forum.mango-os.com/post/23638</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Mon, 16 Sep 2019 13:21:15 GMT</pubDate></item></channel></rss>