Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Chart error after update
-
Hello,
I have just updated my Mango from v3.0.1 to v3.1.1. Previously I was able to take a virtual point using ma-point-values, and create a bar chart for the daily maximum for that point for the past week. The chart looked like this:
Once I upgraded to 3.1.1, the chart is no longer working on the dashboard.
I have copied the code to the play area, and it wont work there either. The code I used was:<ma-now update-interval="1 HOURS" output="theTimeNow"></ma-now> <ma-point-values point-xid="Site_Total_Real_Power" point="point1" values="max_val" from="theTimeNow | moment:'startOf':'day'|moment:'subtract':7:'days'" to="theTimeNow" rollup="MAXIMUM" rollup-interval="1 DAYS"> </ma-point-values> <ma-serial-chart style="height: 300px; width: 100%" series-1-values="max_val" series-1-point="point1" default-type="column"> </ma-serial-chart>
Advice on why this output isn't working anymore would be really appreciated!
Henry -
@henryblu I think it's probably just the
moment
filters, change them tomaMoment
-
Excellent! Thanks Jared, the following code worked perfectly:
<ma-now update-interval="1 HOURS" output="theTimeNow"></ma-now> <ma-point-values point-xid="Site_Total_Real_Power" point="point1" values="max_val" from="theTimeNow | maMoment:'startOf':'day'|maMoment:'subtract':7:'days'" to="theTimeNow" rollup="MAXIMUM" rollup-interval="1 DAYS"> </ma-point-values> <ma-serial-chart style="height: 300px; width: 100%" series-1-values="max_val" series-1-point="point1" default-type="column"> </ma-serial-chart>