• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. dgm
    3. Topics

    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
    D
    • Profile
    • Following 1
    • Followers 0
    • Topics 14
    • Posts 33
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by dgm

    • D

      query on datapoint value

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      4
      0
      Votes
      4
      Posts
      1.4k
      Views

      MattFoxM

      I think before we go further, you need to modify your naming convention...

      So you've got a system where techs are installing these systems, but there's no actual documentation on what's what??
      Sounds like an impending cluster...
      You're storing the batch number as a point value, as well as having four other points to hold sensor data, correct?
      Sounds like you need something to parse the data either before or in mango otherwise you're forever going to be chasing your tail.

      If you need to parse values you're going to have to write a controller to read these values and sort them into groups.

      EDIT: use a meta data source point for each PLC unit. get it to store the timestamps of when the batch number changes. That way you can create a dropdown of batch values, and filter them with a text box:

      //metapoint is settable, var name: batch, type alphanumeric //context point, plc batch number point: batchNum var curr = JSON.parse(batch.value); if(!curr) { var batchObj = {batch:batchNum.value, start:batchNum.time, end:''} return JSON.stringify( batchObj ); } else { if(curr.batch == batchNum.value){return UNCHANGED;} if(curr.batch !== batchNum.value) { curr.end = batchNum.time; batch.set( JSON.stringify(curr), batch.time); //overwrite last value var batchObj = {batch:batchNum.value, start:batchNum.time, end:''} return JSON.stringify( batchObj ); } }

      Fox

    • D

      change export filename

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      4
      0
      Votes
      4
      Posts
      1.3k
      Views

      MattFoxM

      @dgm I have an update for you.
      I am unsure if it will work in the dashboard because I write controllers to do this for me. But I revisited this for you and I have some good news:

      options="{'export': { enabled: true,fileName: 'MyFilename'}}" export="true"></ma-serial-chart>

      You can override using the options attribute to set your export filename. Apologies for misleading you, I was unaware without looking at the source that the export options were as easily accessible than I had first assumed...

      However you're still stuck with that XID value.

    • D

      sql timestamp to serialChart

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      6
      0
      Votes
      6
      Posts
      1.6k
      Views

      D

      Thanks CraigWeb,

      I will watch

    • D

      json store

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      3
      0
      Votes
      3
      Posts
      1.2k
      Views

      D

      hello MattFox,

      got it finally!
      Thanks for checking in.

    • D

      saving chart settings

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      2
      0
      Votes
      2
      Posts
      955
      Views

      MattFoxM

      That's what I do. Use the json store, it's ideal for it.
      Make a page with all your fields and load and save the info. Look under examples, there's an address form you can use as an example to work from.

      Fox

    • D

      ng-if condition used with point query

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      5
      0
      Votes
      5
      Posts
      1.4k
      Views

      MattFoxM

      Use <ma-get-point-value> for both points.
      2) in your ng if, use both points with the challenge:

      ng-if="pt1.value==pt2.value"

      This way you are comparing two variables to see if they are the same/both equal to one another.

      For false simply:

      ng-if="pt1.value!=pt2.value"

      That should you help you with where you want to go!

      Fox

    • D

      serial chart lineThickness

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      4
      0
      Votes
      4
      Posts
      1.4k
      Views

      MattFoxM

      We were all noobs at one point! I'm glad you're able to apply what you've learnt.
      I don't mind helping, I learned a boatload here over the last few years.
      But I think it's always good to have a good search. If not here, there's stackoverflow and other sites. Sometimes I'll get a private message because it's one of those things that is there in your face but as you've said - you've stared at for hours and have made zero progress and need a fresh pair of eyes.

      Everyone is happy to help here, I just like loitering here more than I probably should!

    • D

      initializing an input of type=text

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      4
      0
      Votes
      4
      Posts
      1.2k
      Views

      MattFoxM

      Might be because the second way needs the init outside in another element... probably a parent div. I usually use the first way myself, as I write and map everything in my own controllers.
      At least you're learning, that's the main thing!

    • D

      more than 4 Axes

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      8
      0
      Votes
      8
      Posts
      1.6k
      Views

      MattFoxM

      Nicely done, glad I could be of assistance!

    • D

      Adding multiple axes

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      4
      0
      Votes
      4
      Posts
      1.2k
      Views

      MattFoxM

      You need to add the strictMinMax property, this question has come up a lot in the forums. I suggest you use the search and have a browse with amcharts/serial chart as the search item, you'll gain a lot of experience very quickly I assure you.

      options="{valueAxes: [{ unit: '%', unitPosition: right, strictMinMax: true, minimum: 10, maximum: 60, axisColor: '#00CED1' } ] }"

      For the graphs themselves if you want individual colours for each datapoint split them up and use series-#- attributes rather than just points and values.
      Enable the api menu item under administration -> edit menu -> Api Docs, turn it on and click save at the top.
      The maSerialChart will be under components.

    • D

      Change individual pen scales

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      2
      0
      Votes
      2
      Posts
      567
      Views

      MattFoxM

      Search through this forum the term 'valueAxes' There are many cases of this where people have set custom ranges for individual y axes. The V3 amcharts documentation is also a valuable tool.

      Fox

    • D

      Changing grid color

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      5
      0
      Votes
      5
      Posts
      1.3k
      Views

      MattFoxM

      You may need to have more array elements inside the value axes to correlate with the number of points you are inserting.
      Secondly, check for errors in your browser's console window.

    • D

      Datapoint Assignment

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      5
      0
      Votes
      5
      Posts
      1.4k
      Views

      D

      Thanks, I will get on it.

    • D

      real time chart

      Dashboard Designer & Custom AngularJS Pages
      • • • dgm
      7
      0
      Votes
      7
      Posts
      1.5k
      Views

      MattFoxM

      @dgm said in real time chart:

      how to change line thickness on a point in a series chart, some how I'm not able to get it right.

      There are graph options available via amcharts V3:
      https://docs.amcharts.com/3/javascriptcharts/AmGraph

      You['ll want to apply the settings under graph-options

      so in your amchart serial instance you'd put into the dashboard:

      <ma-serial-chart graph-options="{ lineThickness: 3 } " points="pts" values="vals"></ma-serial-chart>

      Note that it will pay to enable the API help menu item under administration->edit menus
      then click through the available components to see how everything works inside the dashboard.
      Sorry I'm late to the party, had to work out of office for 3 days,
      Fox