• Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    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.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

    Problem with graph of montly sum of a datapoint

    Mango Automation general Discussion
    3
    3
    624
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      etantonio last edited by

      Hy,
      concerning mango 2.8.8 I'm using the following script to show the production of each month of the year

      <div ng-if="energy ==2">
              <ma-point-values point-xid="FML01-energy-smart" point="energyYear" values="energyYearValues"
                from="theTimeNow | moment:'startOf':'year'"
                to="theTimeNow | moment:'endOf':'year'" rollup="DELTA" rollup-interval="1 months">
              </ma-point-values>
              <ma-serial-chart style="height: 250px; width: 98%" series-1-values="energyYearValues"
                default-balloon-text="Monthly Energy: [[value]] kWh" export="true" balloon="true"
                series-1-point="energyYear" series-1-color="#277527" default-type="column" time-format="MMM"
                options="{export: {'dateFormat': 'MM/YYYY', 'fileName': 'Energy in year'},
                valueAxes:[{title:'[kWh]', gridColor:'#444343', axisColor:'#444343',titleColor:'#165A87'}],
                titles:[{text:'Energy chart',color:'#165A87'}],
                categoryAxis:{gridColor:'#444343', axisColor:'#444343', startEffect:'elastic'}
                }">
              </ma-serial-chart>
      

      but the result is not as expected, in fact for example today it is shown only the production of today (300kWh) and not the sum of all January month (8000kWh):

      0_1580479408753_f893baef-f599-4c11-9545-a91f214a8f5d-immagine.png

      Any idea about where's the problem?

      1 Reply Last reply Reply Quote 0
      • S
        shoffend last edited by

        Hi,

        I have got exactly the same problem. Mine is just the other way around. For some or other reason the sum does not show the correct amount for the current month. If the month passes, then the sum just moves to the next month. The data of the prevous month is correct once the "Sum amount" moves to the next month.

        0_1581421057877_Month.PNG

        I have check all of my settings but could not find anything which is wrong.

        1 Reply Last reply Reply Quote 0
        • CraigWeb
          CraigWeb last edited by

          @etantonio I believe you have made a typo on the moment filter:
          {{'now' | maMoment:'startOf':'month' | maMoment:'format':'dddd'}}.
          You forgot the ma

          1 Reply Last reply Reply Quote 0
          • First post
            Last post