Hello.
Im working with dashboards and I want to generate point statistics. Everything is working fine, but I have one problem.
Im using this code from example:
<ma-point-statistics point="myPoint" from="from" to="to" statistics="statsObj"></ma-point-statistics>
<div>The average for the period is {{ statsObj.average.value }} at {{ statsObj.average.timestamp | moment:'format':'lll' }}<br>
The max value for the period is {{ statsObj.maximum.value }}
<br>
{{ statsObj.last.value - statsObj.first.value }} L
<br>
{{ statsObj.last.value }}
<br>
{{ statsObj.first.value }}
</div>
And the problem is that
{{ statsObj.last.value - statsObj.first.value }} L
Is not working. It returns the "NaN L".
L is for unit of my datapoint.
Other part of script is working. Last and first values are showing corecctly.