Integral of a point

I have a component that has an entry point as a parameter and I need to show the integral of this point.
I was testing with this:<magetpointvalue point="$ctrl.data"></magetpointvalue> <macalc input="$ctrl.data  filter:{statistics:'INTEGRAL'} " output="$ctrl.dataIntegral"></macalc>
but it does not work, also try this:
<magetpointvalue point="$ctrl.data"></magetpointvalue> <mapointstatistics points="$ctrl.data" rendered=false displaymode="INTEGRAL" rollupinterval="1 MONTHS"></mapointstatistics>
I was seeing some examples and after trying other options, I can't show the value in my view.
Thanks.

Hi johana,
Have you seen the example pages? For instance the page at
/ui/examples/statistics/getstatistics
has some information like this:<mafilteringpointlist ngmodel="myPoint" autoinit="true" datatype="NUMERIC"></mafilteringpointlist> <mapointstatistics point="myPoint" from="dateBar.from" to="dateBar.to" statistics="statsObj"></mapointstatistics> <p> The average for the period is {{ statsObj.average.value }} at {{ statsObj.average.timestamp  maMoment:'format':'lll' }} <br> The max value for the period is {{ statsObj.maximum.value }} at {{ statsObj.maximum.timestamp  maMoment:'format':'lll' }} </p>
If the integral were mentioned there, it would probably be in some sentence like this one,
<br> The integral for the period is {{ statsObj.integral.value }} and has a timestamp matching period start {{ statsObj.integral.timestamp }}

Firstly it is really hard to help if we do not know the value of your controller data.
Secondly if I am not mistaken you have no output of mapointstatistics hence why you cannot show any values calculated by the directive.
Thirdly rollupinterval is not present in the directive. I assume you want to use a preset of a madaterangepicker.
<madaterangepicker from="from" to="to" preset="LAST_1_DAYS" updateinterval="5 seconds"></madaterangepicker>
Fourthly mapointstatistics require from and to date objects to work. So I guess correctly you should use following:
<madaterangepicker from="from" to="to" preset="LAST_1_MONTHS" ></madaterangepicker> <mapointstatistics points="$ctrl.data" from="from" to="to" displaymode="INTEGRAL" statistics="statsObj"></mapointstatistics> {{statsObj}}
Edit: Phil you were ahead once again. :)

Edit: Phil you were ahead once again. :)
Your reply does add detail though, so thanks for it!