• 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

    Overriding the dateRangePicker

    Mango Automation general Discussion
    3
    3
    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.
    • B
      Brad_GMI
      last edited by Brad_GMI

      We have been testing and refining our dashboard setup for around three months now and have resolved most of the user feedback.

      The biggest and final complaint we have left to resolve is the chart complexity.

      All of the users would prefer to have less options in the date range drop down, and no roll up data.

      From what I can tell, a good bit of this work is done in the dateBar and dateRangePicker components.

      To achieve the goal above, is the best path forward to override the components of the mdAdmin template, or is there a simpler path?

      1 Reply Last reply Reply Quote 0
      • ThomasEinastoT
        ThomasEinasto
        last edited by

        Hi Brad,

        You can make custom date ranges yourself by using ma-calc.

        Here is a post about this problem, look at Jared's post and modify it according to your needs.

        http://infiniteautomation.com/forum/topic/2216/how-to-simulate-presetpicker-change-with-buttons/13

        About roll up you should look into the documentation I guess in dashboards module.

        Path to it:

        mango-host(<--change this to the mango hostname)/dashboards/docs/ma-dashboards/ma-point-values

        The following is written about the rollup variable:

        rollup (optional) string	
        
        The statistical operation to apply to the values over the given rollup-interval. This will effect the outputted values. Rollup possibilities are:
        
        NONE (Default)
        AVERAGE
        DELTA
        MINIMUM
        MAXIMUM
        ACCUMULATOR
        SUM
        FIRST
        LAST
        COUNT
        INTEGRAL
        

        Thomas

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

          Also take a look at the "date pickers and presets" example.

          Developer at Radix IoT

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