• 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

    AM Line Chart change from default smooth line to regular line

    Dashboard Designer & Custom AngularJS Pages
    2
    4
    1.5k
    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.
    • M
      mihairosu
      last edited by

      Is there any way to change the default smooth chart line to a non-smoothed line, perhaps with your angular directives?

      I'd like to fix things like this:

      0_1477060011102_smoothing.png

      I'd like to be able to see the steps in the line anyway.

      I noticed in the AM charts website that you can choose smoothed line like below:

      "graphs": [{"type": "smoothedLine",}
      

      So I tracked down the property here.

      Then I tried to add this to the options:

      graphs:[{type:'line'}]
      

      But it still looks the same to me.

      In case you'd like to see the entire options code here it is:

                        options="{
                              valueAxes:[
                                  {
                                      axisColor:'black', 
                                      color:'black', 
                                      title: 'Temperature °F', 
                                      titleColor: 'black',
                                      fontSize:26,
                                      titleFontSize:26,
                                      minimum:0, 
                                      maximum:160
                                  }, 
                                  {
                                      axisColor:'black', 
                                      color:'black', 
                                      title: 'Firing Rate %', 
                                      titleColor: 'black',
                                      fontSize:26,
                                      titleFontSize:26, 
                                      minimum:0, 
                                      maximum:100
                                  }
                              ],
                              graphs:[
                                  {type:'line'}
                              ]
                          }"
      
      1 Reply Last reply Reply Quote 0
      • M
        mihairosu
        last edited by

        I just noticed that adding the "graphs" to the options adds an extra legend item. See below:

        0_1477060793666_added.png

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

          @mihairosu
          I'm not sure how you are using the ma-serial-chart directive (post it up). But if you specify the series-x-point attribute it will use the point's plot type (set on the point edit page) or you can explicitly set it using the series-x-type attribute. You can also set the default-type attribute to change all of the series' types.

          Developer at Radix IoT

          1 Reply Last reply Reply Quote 0
          • M
            mihairosu
            last edited by

            The series-x-type was exactly what I was looking for.

            I did just notice that it was in your documentation too. I do remember looking that over, but at that time I didn't understand what I was reading. It's all getting more and more clear.

            Thanks Jared.

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