• Recent
    • Tags
    • Popular
    • Register
    • Login

    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 Mango 5 Documentation Website

    Charts for past 12 hours

    Dashboard Designer & Custom AngularJS Pages
    charts time ma-point-value
    2
    4
    1.7k
    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.
    • R
      rshah
      last edited by

      Hi All,

      I want to create a chart which shows the value of multiple points over the past 12 hours. It is my understanding that I should use ma-point-values which will then return an array which I can pass into the chart, is that correct?

      I also want the chart to update every x minutes, what is the best way to do that? I think if I use ma-point-values every time the chart updates it will query for ALL 12 hours of data again, is that right, is there a better way? The latest attribute wouldn't work for us since some points might have 100 values over 12 hours, some might have 3000.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • MattFoxM
        MattFox
        last edited by

        Correct, look under API Docs -> Components -> maSerialChart
        They have a complete guideline of what attribute tags to use to apply values. You will want the series-x-values where the x is the chart number.
        The Chart update rate is affected by the maPointValues components which you can also read about. The realtime="true" attribute will allow datapoints to update into the chart at the rate they change or are updated.
        If you don't want to average, make sure you set the rollup type to NONE. Alternatively, use the rollup-interval to set the interval duration between datapoints in the chart, note that changing from the live updating rate may mean you;ll need to average.

        Do not follow where the path may lead; go instead where there is no path.
        And leave a trail - Muriel Strode

        1 Reply Last reply Reply Quote 2
        • R
          rshah
          last edited by

          @mattfox said in Charts for past 12 hours:

          If you don't want to average, make sure you set the rollup type to NONE. Alternatively, use the rollup-interval to set the interval duration between datapoints in the chart, note that changing from the live updating rate may mean you;ll need to average.

          Thank you!

          It looks like realtime only works if you use latest, which we cannot use since it only retrieves the latest X point values, rather than the latest X hours of point values.

          I'll poke around some more, but thanks again for the detailed response!

          1 Reply Last reply Reply Quote 0
          • MattFoxM
            MattFox
            last edited by

            if you use the ma-now directive and combine it with a maMoment filter for your point values, you can then have it updating for the last 12 hours fixed.

            <ma-now update-interval="1 SECONDS" output="timeNow"></ma-now> <!-- change to minutes or hours as required -->
            <ma-point-values point="device" values="seasonal" from="timeNow | maMoment : subtract : '12 hours'" to="timeNow" rollup="ACCUMULATOR" rollup-interval="1 DAYS"></ma-point-values>
            

            I believe it's something to that effect off the top of my head...

            Do not follow where the path may lead; go instead where there is no path.
            And leave a trail - Muriel Strode

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