• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. RonnyHinkel
    3. Posts

    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
    R
    • Profile
    • Following 1
    • Followers 0
    • Topics 8
    • Posts 26
    • Best 0
    • Controversial 1
    • Groups 0

    Posts made by RonnyHinkel

    • Label Text Column chart

      Hi all, i'm trying to get the lableText for my column charts to work.
      But somehow haven't come around a good option.

      Help would be very much apricated.

       <ma-serial-chart style="position: absolute; height: 350px; width: 700px; " 	
          series-1-values='[{"value":1, "labelText": "[[value]]", "timestamp":"Battery Lowor/No Battery"}]' 
          
          series-2-values='[{"value":2, "labelText":2, "timestamp":"Software Error"}]' 	
          
          series-3-values='[{"value":3, "timestamp":"Keypad test Error"}]' 	
          
          series-4-values='[{"value":4, "timestamp":"X1 Continuity"}]' 	
          
          series-5-values='[{"value":5, "timestamp":"X3 Continuity"}]' 	
          
          series-6-values='[{"value":6, "timestamp":"X4 Continuity"}]' 	
          
          series-7-values='[{"value":7, "timestamp": "Pressure out of Tolerance"}]' 
         	
          
          series-8-values='[{"value":8, "timestamp":"No Humidity Sensor"}]'
          
          series-9-values='[{"value":9, "timestamp":"Line Freq out of the 59 to 61 Hertz Range"}]'
          
          series-10-values='[{"value":10, "timestamp":"Temperature sensor wiring or delta Error"}]'
          
          default-type="column" labelText="[[value]]" legend="false" balloon="true" options="{categoryAxis:{parseDates:false, labelRotation:45}, tooltipText: value, labelText: [value], depth3D: 20, angle: 40, rotate: true, synchronizeGrid: false, valueAxes:[{ minimum:0, maximum:100,}]}"
          ></ma-serial-chart>	
      
      posted in How-To
      R
      RonnyHinkel
    • Sharing calculations between pages

      Hi all

      i'm using ma-calc and statistics on the most of my pages, while all having the same rollup.
      to simplify and increase loading speed of some pages, i would like to us the values from /ui/test1 in another page /ui/test2.

      would be very crateful for some help.

      Thank You

      posted in How-To
      R
      RonnyHinkel
    • RE: Dropdown selection for datapoint values

      @mattfox
      Perfect thats working for me

      Thank you very much Mattfox

      posted in User help
      R
      RonnyHinkel
    • RE: Dropdown selection for datapoint values

      @mattfox
      no thats just a left over from trying, sorry about that

      posted in User help
      R
      RonnyHinkel
    • RE: Dropdown selection for datapoint values

      @mattfox
      yes you're correct

      posted in User help
      R
      RonnyHinkel
    • RE: Dropdown selection for datapoint values

      @mattfox

      the timestamp would be from Serial number to Serial Number+1

      posted in User help
      R
      RonnyHinkel
    • RE: Dropdown selection for datapoint values

      @MattFox
      0_1595302363307_Screenshot 2020-07-21 at 11.32.08.png

      posted in User help
      R
      RonnyHinkel
    • RE: Dropdown selection for datapoint values

      @mattfox

      0_1595302200187_Screenshot 2020-07-21 at 11.29.40.png

      posted in User help
      R
      RonnyHinkel
    • RE: Dropdown selection for datapoint values

      @mattfox
      Hi Mattfox
      what i'm trying to do is a production report based on serial numbers. for this we have the selection of the serial number. After selection of the serial number, there is a start and end time for each serial number, which i would like to use for every datapoint at this page.

      <md-select ng-model="serialID" ng-required="true" ng-change="callOnChange()" >
      <md-option ng-repeat="serial in serials" ng-value="{{serial.value}}" > {{serial.value}} </md-option>
      </md-select>
      
      
      <ma-point-values point-xid="DP_bf4e8b98-ff25-439c-a63e-4af21bc92902" point="point1" values="point1Values" from="serialID.first.timestamp" to="serialID.last.timestamp" >
      </ma-point-values>
      
      posted in User help
      R
      RonnyHinkel
    • RE: Dropdown selection for datapoint values

      @mattfox

      <md-select ng-model="serialID" ng-required="true" ng-change="callOnChange()" >
      <md-option ng-repeat="serial in serials" ng-value="{{serial.value}}" > {{serial.value}} </md-option>
      </md-select>
      
       <ma-point-statistics point-xid="DP_7e9b56ef-578c-4a0a-96bc-289a29ccc37b" from='serialID' to='(serialID+1)' statistics="Ring"></ma-point-statistics>
      

      if i would like to use the SerialID with a MA-point-statistics as a from- to, how i could include those values?
      Sorry, really trying since days and have no conclusion yet.

      Thank you for giving me some help!!!

      posted in User help
      R
      RonnyHinkel
    • RE: Dropdown selection for datapoint values

      @MattFox

      <ma-point-values point-xid="DP_7e9b56ef-578c-4a0a-96bc-289a29ccc37b" values="serials" latest="100"></ma-point-values>
      
      <md-select ng-model="serialID">
      <md-option ng-repeat="serial in serials" ng-value={{serial.value}} ng-realtime="false">{{serial.value}}</md-option>
      </md-select>
      Chosen Serial: {{serialID}}
      <br>
      Start Time: {{serialID.minimum.timestamp | maMoment:'format':'lll'}}
      <br>
      Finished Time: {{serialID.maximum.timestamp | maMoment:'format':'lll'}}
      

      unfortunately is updating in real and after a short time the all values wold be the latest value (same values).
      also the from- to timestamp would be important for all other values to follow as a page rollup

      thank you for help and support

      posted in User help
      R
      RonnyHinkel
    • RE: Dropdown selection for datapoint values

      Hi mattfox

      yes thats works, but looks like the listing is updating real time, is there a ng-option to false the real time?

      posted in User help
      R
      RonnyHinkel
    • RE: Dropdown selection for datapoint values

      @mattfox
      Thank you for the reply, i'm doing learning by doing :)

      0_1594804430108_Screenshot 2020-07-15 at 17.12.47.png

      However the output looks like the picture, was hoping to have below off each other and also selectable.

      Sorry i'm not an expert in it, that why need some help here and there.

      Thank you for the support!

      posted in User help
      R
      RonnyHinkel
    • Dropdown selection for datapoint values

      Hi all
      i try to build a dropdown section of one datapoint, which has many different "serial Numbers". Those serial numbers will reflect as the page rollup.

      any good ideas how to do?

      posted in User help
      R
      RonnyHinkel
    • Integrating AmChart Code

      Hi All

      i have created a chart i would like to use at the AmChart code editor.
      but would need some help to get it into mango, maybe as an userModule.

      Here the code i would like to get into Mango:

      HTML:
      <script src="https://www.amcharts.com/lib/4/core.js"></script>
      <script src="https://www.amcharts.com/lib/4/charts.js"></script>
      <script src="https://www.amcharts.com/lib/4/themes/animated.js"></script>
      <div id="chartdiv"></div>
      <div id="piechart1" class="asset"></div>
      <div id="piechart2" class="asset"></div>
      <div id="piechart3" class="asset"></div>

      JavaScript:

      // Themes begin
      am4core.useTheme(am4themes_animated);
      // Themes end

      var data = [{
      "catergory": "ZPL Supplier Brazing",
      "units": 500,
      "pie": [{
      "value": 250,
      "title": "Cat #1"
      }, {
      "value": 150,
      "title": "Cat #2"
      }, {
      "value": 100,
      "title": "Cat #3"
      }]
      },{
      "catergory": "ZNL Supplier Brazing",
      "units": 300,
      "pie": [{
      "value": 250,
      "title": "Cat #1"
      }, {
      "value": 150,
      "title": "Cat #2"
      }, {
      "value": 100,
      "title": "Cat #3"
      }]
      },{
      "catergory": "ZPL Factory Brazing",
      "units": 300,
      "pie": [{
      "value": 250,
      "title": "Cat #1"
      }, {
      "value": 150,
      "title": "Cat #2"
      }, {
      "value": 100,
      "title": "Cat #3"
      }]
      },{
      "catergory": "ZNL Factory Brazing",
      "units": 300,
      "pie": [{
      "value": 250,
      "title": "Cat #1"
      }, {
      "value": 150,
      "title": "Cat #2"
      }, {
      "value": 100,
      "title": "Cat #3"
      }]
      },{
      "catergory": "Supplier Mechanic",
      "units": 150,
      "pie": [{
      "value": 250,
      "title": "Cat #1"
      }, {
      "value": 150,
      "title": "Cat #2"
      }, {
      "value": 100,
      "title": "Cat #3"
      }]
      },{
      "catergory": "Factory Mechanic",
      "units": 300,
      "pie": [{
      "value": 250,
      "title": "Cat #1"
      }, {
      "value": 150,
      "title": "Cat #2"
      }, {
      "value": 100,
      "title": "Cat #3"

      }]
      }];

      // Create chart instance
      var chart = am4core.create("chartdiv", am4charts.XYChart);
      chart.hiddenState.properties.opacity = 0; // this creates initial fade-in

      // Add data
      chart.data = data;

      // Create axes
      var categoryAxis = chart.xAxes.push(new am4charts.CategoryAxis());
      categoryAxis.dataFields.category = "catergory";
      categoryAxis.renderer.grid.template.disabled = true;

      var valueAxis = chart.yAxes.push(new am4charts.ValueAxis());
      valueAxis.title.text = "Units";
      valueAxis.min = 0;
      valueAxis.renderer.baseGrid.disabled = true;
      valueAxis.renderer.grid.template.strokeOpacity = 0.07;

      // Create series
      var series = chart.series.push(new am4charts.ColumnSeries());
      series.dataFields.valueY = "units";
      series.dataFields.categoryX = "catergory";
      series.tooltip.pointerOrientation = "vertical";

      var columnTemplate = series.columns.template;
      // add tooltip on column, not template, so that slices could also have tooltip
      columnTemplate.column.tooltipText = "Series: {name}\nCategory: {categoryX}\nValue: {valueY}";
      columnTemplate.column.tooltipY = 0;
      columnTemplate.column.cornerRadiusTopLeft = 20;
      columnTemplate.column.cornerRadiusTopRight = 20;
      columnTemplate.strokeOpacity = 0;

      // as by default columns of the same series are of the same color, we add adapter which takes colors from chart.colors color set
      columnTemplate.adapter.add("fill", function(fill, target) {
      var color = chart.colors.getIndex(target.dataItem.index * 3);
      return color;
      });

      // create pie chart as a column child
      var pieChart = series.columns.template.createChild(am4charts.PieChart);
      pieChart.width = am4core.percent(80);
      pieChart.height = am4core.percent(80);
      pieChart.align = "center";
      pieChart.valign = "middle";
      pieChart.dataFields.data = "pie";

      var pieSeries = pieChart.series.push(new am4charts.PieSeries());
      pieSeries.dataFields.value = "value";
      pieSeries.dataFields.category = "title";
      pieSeries.labels.template.disabled = true;
      pieSeries.ticks.template.disabled = true;
      pieSeries.slices.template.strokeWidth = 1;

      pieSeries.slices.template.adapter.add("stroke", function(stroke, target) {
      return chart.colors.getIndex(target.parent.parent.dataItem.index * 3);
      });

      pieSeries.slices.template.adapter.add("fill", function(fill, target) {
      return am4core.color("#ffffff")
      });

      pieSeries.slices.template.adapter.add("fillOpacity", function(fillOpacity, target) {
      return (target.dataItem.index + 1) * 0.2;
      });

      pieSeries.hiddenState.properties.startAngle = -90;
      pieSeries.hiddenState.properties.endAngle = 270;

      // this moves the pie out of the column if column is too small
      pieChart.adapter.add("verticalCenter", function(verticalCenter, target) {
      var point = am4core.utils.spritePointToSprite({ x: 0, y: 0 }, target.seriesContainer, chart.plotContainer);
      point.y -= target.dy;

      if (point.y > chart.plotContainer.measuredHeight - 15) {
      target.dy = -target.seriesContainer.measuredHeight - 15;
      }
      else {
      target.dy = 0;
      }
      return verticalCenter
      })

      CSS:

      body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
      }

      #chartdiv {
      width: 100%;
      height: 500px;
      }

      Here also an example how the chart would look like:
      0_1591986349967_Bullets Chart.JPG

      posted in User help
      R
      RonnyHinkel
    • Set values back to default with button

      Hi all

      i would like to change all switch and text input back to default with the button Finish.
      While the Button Finish also change the page.

      0_1590474439127_Comp page.JPG

      any good and simple idea?

      posted in How-To
      R
      RonnyHinkel
    • RE: Mango State Chart

      @craigweb
      Hi Craig, this option is unfortunately not working too

      posted in How-To
      R
      RonnyHinkel
    • RE: Mango State Chart

      @craigweb
      have tryed it, but looks like the state chart isn't taking options

      posted in How-To
      R
      RonnyHinkel
    • RE: Mango State Chart

      @craigweb

      <ma-point-values point-xid="DP_efcdc3c7-25da-48b2-8422-8dbaf2fd879f" point="point3" values="point3Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}">
      </ma-point-values>
      
      
      <ma-point-values point-xid="DP_4159a949-2267-4487-8c4d-eee7a2bbe5a6" point="point1" values="point1Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}">
      </ma-point-values>
          <ma-point-values point-xid="DP_a5993877-9c52-4814-a3fc-bc9d2e915dde" point="point2" values="point2Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}">
      </ma-point-values>
       <ma-point-values point-xid="DP_7e26a972-510c-4fa0-aea7-9e6183219289" point="point4" values="point4Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}">
      </ma-point-values>
       <ma-point-values point-xid="DP_c9d4c9e5-a2a0-4aae-a0bc-0cf42358be92" point="point5" values="point5Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}">
      </ma-point-values>
       <ma-point-values point-xid="DP_16174ae7-b83f-4352-b7b9-3fa3c963de5b" point="point6" values="point6Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}">
      </ma-point-values>
       <ma-point-values point-xid="DP_66f1217d-a9dc-40cc-91c3-d6b4cdbcb149" point="point7" values="point7Values" from="dateBar.from" to="dateBar.to" rollup="{{dateBar.rollupType}}" rollup-interval="{{dateBar.rollupIntervals}} {{dateBar.rollupIntervalPeriod}}">
      </ma-point-values>
          <ma-serial-chart id="48ebbc26-4836-4ca0-b4ee-49f47dd0ad82" style="position: absolute; width: 100%; height: 400px; left: -14px; top: 161px;" series-1-values="point1Values" series-1-point="point1" series-1-type="line" series-1-title="TBM 1 Earth Pressure 1" series-2-values="point2Values" series-2-point="point2" series-2-type="line" series-2-title="TBM 1 Earth Pressure 2" series-3-values="point4Values" series-3-point="point4" series-3-type="line" series-3-title="TBM 1 Earth Pressure 3" series-4-values="point5Values" series-4-point="point5" series-4-type="line" series-4-title="TBM 1 Earth Pressure 4" series-5-values="point6Values" series-5-point="point6" series-5-type="line" series-5-title="TBM 1 Earth Pressure 5" series-6-values="point7Values" series-6-point="point7" series-6-type="line" series-6-title="TBM 1 Earth Pressure 6" legend="true" balloon="true" export="false" options="{synchronizeGrid: true, valueAxes:[{title:'Bar'}], categoryAxis:{labelRotation:45}}">&gt;&gt;</ma-serial-chart>
          <ma-state-chart id="1bea8253-7d93-41a7-8e18-a3887c67ba23" series1-values="point3Values" style="position: absolute; width: 100%; height: 80px; left: 3px; top: 130px;" series1-title="Ring" option="{categoryAxis:{labelTime: transparent}}">&gt;</ma-state-chart>
      
      posted in How-To
      R
      RonnyHinkel