• 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

    Floating point values line chart

    Dashboard Designer & Custom AngularJS Pages
    2
    4
    2.1k
    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.
    • L
      LarryVaredo
      last edited by LarryVaredo

      Hi all. I'm making some tests with line charts of 3.x of the dashboards module. I'm trying to plot historical values of a floating point sinusoidal virtual data point by means of the following code.

       <ma-point-values point-xid="energy" values="point2Values" from="from" to="to" rollup="AVERAGE" auto-rollup-interval="true">
      </ma-point-values>
       <ma-serial-chart style="height: 300px; width: 100%" series-1-values="point2Values" balloon="true" export="true">
      </ma-serial-chart>
      

      Also if "energy" data are floating point values, on the chart I see them as integers. Maybe with <ma-serial-chart> directive is it possible to plot just the integer data?

      Thanksa a lot.
      Stefano

      1 Reply Last reply Reply Quote 0
      • Jared WiltshireJ
        Jared Wiltshire
        last edited by

        Hi Larry,

        The charts should definitely display the values as floating point. If you view the data on the data points detail page can you see floating point values?

        Jared

        Developer at Radix IoT

        1 Reply Last reply Reply Quote 0
        • L
          LarryVaredo
          last edited by LarryVaredo

          Hi Jared, thanks for your reply. Yes, on the detail page I can see floating point values.

          You can appreciate the same behaviour on the Custom Dashboard Module; please check the "outside temp value" plot on the Line Chart example page (YOUR_MANGO/dashboards/examples/charts/line-chart). The demo "outside temp" value is a floating point data. If you pass with mouse on the line to show the ballon, you will read just the integer value. Moreover if you check the "voltage" data you should see an often constant function's trend; this occurs because the voltage data has very small increments.

          Therefore I suppose that the chart is composed by rounded integer values which are interpolated between them to obtain a continue plot. Is it correct? If so, how can I change this behaviour? Thanks a lot!

          1 Reply Last reply Reply Quote 0
          • Jared WiltshireJ
            Jared Wiltshire
            last edited by

            Unfortunately I can't replicate what you are seeing, I can see the floating point values. Are you using the latest dashboard module? v3.2.1?

            The other suggestion I can make is playing with the series-x-type attributes on the serial chart and also look at setting the various valueAxis options as shown in the "Advanced Chart" example.

            Developer at Radix IoT

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