• 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

    Trendline Chart bug

    User help
    3
    8
    1.8k
    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.
    • S
      sbaik
      last edited by sbaik

      This bug has been there for a while before and after updates.
      When the cursor is anywhere on the chart left of that red line, the red line follows the cursor exactly. It stops where it is at in the picture when the cursor is past the right side of that. Meaning the data to the right can not be viewed by zoom/drag function. This is present on all size monitors of PC and phones.

      alt text

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

        Are you using ma-scale to scale the chart to the size of the screen or something? Is it only on this one page? Is it on the watch list or point details page chart?

        Developer at Radix IoT

        S 1 Reply Last reply Reply Quote 0
        • S
          sbaik @Jared Wiltshire
          last edited by sbaik

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • S
            sbaik
            last edited by

            Just noticed, it is due to the ma-scale-to on the background being set to ma-ui-page-view.
            The customer uses various size monitors and phones so I would like to keep the scaling function.

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

              @Jared-Wiltshire Just this issue and I will be content for a while!

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

                @sbaik unfortunately this will not be an easy thing to correct. I have definitely noticed that amCharts behaves a bit funny when it is scaled.

                The only real way to deal with this is to rework the pages so they don't use ma-scale-to. You will have to give things sizes and positions in percentages instead of pixels. Maybe look into using AngularJS Material flex layouts or plain old CSS flexbox.

                Developer at Radix IoT

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

                  Here's a hack I did with css to ensure the chart fits properly in a page. Not sure how well it will work for phones though...

                  <div class="chartwrapper">
                  <ma-serial-chart points="points" values="values" class="chartdiv"></ma-serial-chart>
                  </div>
                  <style>
                  .chartwrapper {
                    width: 90%;
                    position: relative;
                    padding-bottom: 40%;
                    box-sizing: border-box;
                  }
                  
                  .chartdiv {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    left: 5%;
                  }</style>
                  

                  If it works great, if not, apologies for wasting your time.

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

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sbaik @MattFox
                    last edited by

                    @mattfox Thank you for sharing that code.
                    As of this project, I don't think it would be cost effective for me to learn and redo all the pages just for the drag to zoom function on a chart.

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