Files
TZU/js/chartTest.js
2018-04-11 22:17:21 +02:00

279 lines
19 KiB
JavaScript

$(document).ready(function() {
$('body').off("click", "#btn00");
$('body').off("click", "#btn01");
$('body').off("click", "#btn02");
$('body').off("click", "#btn03");
$('body').on("click", "#btn00", function() {
renderChart();
});
$('body').on("click", "#btn01", function() {
renderStacked();
});
$('body').on("click", "#btn02", function() {
aufdroeseln();
});
$('body').on("click", "#btn03", function() {
fillMesswertArr(messwerte, "2121")
var chart = new CanvasJS.Chart("chartContainer",
{
title:{
text: "A Stacked Area Chart"
},
axisY:{
interlacedColor: "#FAFAFA",
minimum: 221.90,
maximum: 222.30,
labelAngle: -45,
labelFontSize: 13,
labelFontWeight: "normal",
interval: 0.05
},
axisX:{
interval: 1,
labelAngle: -45,
labelFontSize: 12,
labelFontWeight: "lighter"
},
data: [
{
type: "line",
markerType: "none",
dataPoints: OLMin2121
},{
type: "line",
markerType: "none",
dataPoints: OLMax2121
},{
type: "line",
dataPoints: OL1
}
]
});
chart.render();
});
});
var OL1 = []; var OL2 = []; var OW1 = []; var OW2 = [];
var R11 = []; var R12 = []; var R13 = []; var R21 = []; var R22 = []; var R23 = [];
var R31 = []; var R32 = []; var R33 = []; var R41 = []; var R42 = []; var R43 = [];
var OLMin3040 = []; var OLNom3040 = []; var OLMax3040 = []; var OWMin3040 = []; var OWNom3040 = []; var OWMax3040 = [];
var OLMin3030 = []; var OLNom3030 = []; var OLMax3030 = []; var OWMin3030 = []; var OWNom3030 = []; var OWMax3030 = [];
var OLMin2121 = []; var OLNom2121 = []; var OLMax2121 = []; var OWMin2121 = []; var OWNom2121 = []; var OWMax2121 = [];
var OLMin2121C = []; var OLNom2121C = []; var OLMax2121C = []; var OWMin2121C = []; var OWNom2121C = []; var OWMax2121C = [];
var messwerte = [{"TXLCode":"GA199010003","OL1":"222.03","OL2":"0","OW1":"222.04","OW2":"0","R11":"0.99","R12":"0.99","R13":"0","R21":"0.99","R22":"0.99","R23":"0","R31":"0.99","R32":"0.99","R33":"0","R41":"0.99","R42":"0.99","R43":"0","Messdatum":"2016-02-12 19:18:12","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA199010004","OL1":"222.04","OL2":"0","OW1":"222.18","OW2":"0","R11":"0.99","R12":"0.99","R13":"0","R21":"0.99","R22":"0.99","R23":"0","R31":"0.99","R32":"0.99","R33":"0","R41":"0.99","R42":"0.99","R43":"0","Messdatum":"2016-02-12 19:19:35","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010289","OL1":"222.11","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.3","R12":"42.3","R13":"0","R21":"42.29","R22":"42.32","R23":"0","R31":"42.29","R32":"42.29","R33":"0","R41":"42.3","R42":"42.27","R43":"0","Messdatum":"2016-07-20 11:29:57","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010290","OL1":"222.09","OL2":"0","OW1":"222.06","OW2":"0","R11":"42.3","R12":"42.3","R13":"0","R21":"42.29","R22":"42.3","R23":"0","R31":"42.3","R32":"42.31","R33":"0","R41":"42.27","R42":"42.28","R43":"0","Messdatum":"2016-07-20 11:32:40","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010291","OL1":"222.1","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.32","R12":"42.29","R13":"0","R21":"42.29","R22":"42.3","R23":"0","R31":"42.3","R32":"42.3","R33":"0","R41":"42.29","R42":"42.27","R43":"0","Messdatum":"2016-07-20 11:34:11","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010292","OL1":"222.1","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.32","R12":"42.32","R13":"0","R21":"42.26","R22":"42.28","R23":"0","R31":"42.3","R32":"42.3","R33":"0","R41":"42.3","R42":"42.29","R43":"0","Messdatum":"2016-07-20 11:35:50","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010293","OL1":"222.11","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.28","R12":"42.3","R13":"0","R21":"42.3","R22":"42.31","R23":"0","R31":"42.32","R32":"42.33","R33":"0","R41":"42.25","R42":"42.26","R43":"0","Messdatum":"2016-07-20 11:46:13","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010294","OL1":"222.09","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.31","R12":"42.32","R13":"0","R21":"42.28","R22":"42.29","R23":"0","R31":"42.33","R32":"42.3","R33":"0","R41":"42.24","R42":"42.25","R43":"0","Messdatum":"2016-07-20 11:48:51","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010295","OL1":"222.11","OL2":"0","OW1":"222.13","OW2":"0","R11":"42.31","R12":"42.33","R13":"0","R21":"42.26","R22":"42.3","R23":"0","R31":"42.29","R32":"42.33","R33":"0","R41":"42.27","R42":"42.27","R43":"0","Messdatum":"2016-07-20 11:52:18","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010296","OL1":"222.11","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.3","R12":"42.31","R13":"0","R21":"42.26","R22":"42.3","R23":"0","R31":"42.32","R32":"42.34","R33":"0","R41":"42.23","R42":"42.23","R43":"0","Messdatum":"2016-07-20 11:54:52","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010297","OL1":"222.09","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.31","R12":"42.32","R13":"0","R21":"42.29","R22":"42.33","R23":"0","R31":"42.32","R32":"42.33","R33":"0","R41":"42.26","R42":"42.27","R43":"0","Messdatum":"2016-07-20 11:56:51","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010298","OL1":"222.09","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.31","R12":"42.32","R13":"0","R21":"42.29","R22":"42.31","R23":"0","R31":"42.32","R32":"42.33","R33":"0","R41":"42.25","R42":"42.27","R43":"0","Messdatum":"2016-07-20 11:58:46","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010299","OL1":"222.09","OL2":"0","OW1":"222.1","OW2":"0","R11":"42.31","R12":"42.29","R13":"0","R21":"42.31","R22":"42.3","R23":"0","R31":"42.32","R32":"42.31","R33":"0","R41":"42.27","R42":"42.27","R43":"0","Messdatum":"2016-07-20 12:00:15","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010300","OL1":"222.08","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.28","R12":"42.29","R13":"0","R21":"42.3","R22":"42.3","R23":"0","R31":"42.33","R32":"42.34","R33":"0","R41":"42.24","R42":"42.25","R43":"0","Messdatum":"2016-07-20 12:01:52","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010301","OL1":"222.07","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.32","R12":"42.31","R13":"0","R21":"42.3","R22":"42.29","R23":"0","R31":"42.29","R32":"42.29","R33":"0","R41":"42.3","R42":"42.28","R43":"0","Messdatum":"2016-07-20 12:03:32","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010302","OL1":"222.09","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.3","R12":"42.3","R13":"0","R21":"42.29","R22":"42.32","R23":"0","R31":"42.26","R32":"42.28","R33":"0","R41":"42.3","R42":"42.3","R43":"0","Messdatum":"2016-07-20 12:05:11","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010303","OL1":"222.1","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.3","R12":"42.32","R13":"0","R21":"42.29","R22":"42.3","R23":"0","R31":"42.26","R32":"42.3","R33":"0","R41":"42.3","R42":"42.32","R43":"0","Messdatum":"2016-07-20 12:08:20","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010304","OL1":"222.12","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.3","R12":"42.31","R13":"0","R21":"42.29","R22":"42.3","R23":"0","R31":"42.31","R32":"42.3","R33":"0","R41":"42.28","R42":"42.29","R43":"0","Messdatum":"2016-07-20 12:10:14","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010305","OL1":"222.11","OL2":"0","OW1":"222.11","OW2":"0","R11":"42.32","R12":"42.33","R13":"0","R21":"42.28","R22":"42.28","R23":"0","R31":"42.3","R32":"42.33","R33":"0","R41":"42.24","R42":"42.25","R43":"0","Messdatum":"2016-07-20 12:12:16","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA103010195","OL1":"222.09","OL2":"0","OW1":"222.1","OW2":"0","R11":"42.27","R12":"42.26","R13":"0","R21":"42.31","R22":"42.28","R23":"0","R31":"42.3","R32":"42.28","R33":"0","R41":"42.34","R42":"42.33","R43":"0","Messdatum":"2016-07-20 14:31:15","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA103010196","OL1":"222.07","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.26","R12":"42.27","R13":"0","R21":"42.27","R22":"42.29","R23":"0","R31":"42.3","R32":"42.32","R33":"0","R41":"42.32","R42":"42.32","R43":"0","Messdatum":"2016-07-20 14:32:25","Rauheitsdatum":"0000-00-00 00:00:00"}];
function aufdroeseln(){
var cnt = 1;
OL1 = [];
OL2 = [];
OLMin3040 = [];
OLMax3040 = [];
$.each(messwerte, function(i, item){
partNr = item.TXLCode.substring(item.TXLCode.length -4);
toolNr = item.TXLCode.substring(3,5);
toolpart = toolNr + "-" + partNr;
OL1.push({ label: toolpart, x: cnt, y: Number(item.OL1) });
OL2.push({ label: toolpart, x: cnt, y: Number(item.OL2) });
OLMin3040.push({ x: cnt, y: 221.9});
OLMax3040.push({ x: cnt, y: 222.9});
// console.log(item.TXLCode + ": " + toolpart + "(" + cnt + ")");
cnt++;
});
console.log(OL1);
console.log(OL2);
}
var dps = [
{ label: "20-02", x: 2, y: 10 },
{ label: "20-04", x: 3, y: 15 },
{ label: "20-05", x: 4, y: 25 },
{ label: "20-09", x: 5, y: 30 },
{ label: "20-10", x: 6, y: 32 },
{ label: "20-11", x: 7, y: 10 },
{ label: "20-12", x: 8, y: 20 },
{ label: "20-13", x: 9, y: 33 },
{ label: "20-14", x: 10, y: 43 },
{ label: "20-15", x: 11, y: 55 },
{ label: "20-16", x: 12, y: 33 },
{ label: "20-17", x: 13, y: 21 },
{ label: "20-18", x: 14, y: 13 },
{ label: "20-19", x: 15, y: 28 }
];
function renderStacked(){
var chart = new CanvasJS.Chart("chartContainer",
{
title:{
text: "A Stacked Area Chart"
},
data: [
{
type: "line",
dataPoints: OL2
}//,{
//type: "line",
//dataPoints: OL2
//}
]
});
chart.render();
}
function renderChart(){
var chart = new CanvasJS.Chart("chartContainer", {
title:{
text: "My First Chart in CanvasJS"
},
axisX: {
labelAngle: 90
},
data: [{
// Change type to "doughnut", "line", "splineArea", etc.
type: "line",
dataPoints: dps
}]
});
chart.render();
}
function fillMesswertArr(messwerte, TMPType){
//var messwerte = [{"TXLCode":"GA199010003","OL1":"222.03","OL2":"0","OW1":"222.04","OW2":"0","R11":"0.99","R12":"0.99","R13":"0","R21":"0.99","R22":"0.99","R23":"0","R31":"0.99","R32":"0.99","R33":"0","R41":"0.99","R42":"0.99","R43":"0","Messdatum":"2016-02-12 19:18:12","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA199010004","OL1":"222.04","OL2":"0","OW1":"222.18","OW2":"0","R11":"0.99","R12":"0.99","R13":"0","R21":"0.99","R22":"0.99","R23":"0","R31":"0.99","R32":"0.99","R33":"0","R41":"0.99","R42":"0.99","R43":"0","Messdatum":"2016-02-12 19:19:35","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010289","OL1":"222.11","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.3","R12":"42.3","R13":"0","R21":"42.29","R22":"42.32","R23":"0","R31":"42.29","R32":"42.29","R33":"0","R41":"42.3","R42":"42.27","R43":"0","Messdatum":"2016-07-20 11:29:57","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010290","OL1":"222.09","OL2":"0","OW1":"222.06","OW2":"0","R11":"42.3","R12":"42.3","R13":"0","R21":"42.29","R22":"42.3","R23":"0","R31":"42.3","R32":"42.31","R33":"0","R41":"42.27","R42":"42.28","R43":"0","Messdatum":"2016-07-20 11:32:40","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010291","OL1":"222.1","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.32","R12":"42.29","R13":"0","R21":"42.29","R22":"42.3","R23":"0","R31":"42.3","R32":"42.3","R33":"0","R41":"42.29","R42":"42.27","R43":"0","Messdatum":"2016-07-20 11:34:11","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010292","OL1":"222.1","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.32","R12":"42.32","R13":"0","R21":"42.26","R22":"42.28","R23":"0","R31":"42.3","R32":"42.3","R33":"0","R41":"42.3","R42":"42.29","R43":"0","Messdatum":"2016-07-20 11:35:50","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010293","OL1":"222.11","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.28","R12":"42.3","R13":"0","R21":"42.3","R22":"42.31","R23":"0","R31":"42.32","R32":"42.33","R33":"0","R41":"42.25","R42":"42.26","R43":"0","Messdatum":"2016-07-20 11:46:13","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010294","OL1":"222.09","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.31","R12":"42.32","R13":"0","R21":"42.28","R22":"42.29","R23":"0","R31":"42.33","R32":"42.3","R33":"0","R41":"42.24","R42":"42.25","R43":"0","Messdatum":"2016-07-20 11:48:51","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010295","OL1":"222.11","OL2":"0","OW1":"222.13","OW2":"0","R11":"42.31","R12":"42.33","R13":"0","R21":"42.26","R22":"42.3","R23":"0","R31":"42.29","R32":"42.33","R33":"0","R41":"42.27","R42":"42.27","R43":"0","Messdatum":"2016-07-20 11:52:18","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010296","OL1":"222.11","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.3","R12":"42.31","R13":"0","R21":"42.26","R22":"42.3","R23":"0","R31":"42.32","R32":"42.34","R33":"0","R41":"42.23","R42":"42.23","R43":"0","Messdatum":"2016-07-20 11:54:52","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010297","OL1":"222.09","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.31","R12":"42.32","R13":"0","R21":"42.29","R22":"42.33","R23":"0","R31":"42.32","R32":"42.33","R33":"0","R41":"42.26","R42":"42.27","R43":"0","Messdatum":"2016-07-20 11:56:51","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010298","OL1":"222.09","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.31","R12":"42.32","R13":"0","R21":"42.29","R22":"42.31","R23":"0","R31":"42.32","R32":"42.33","R33":"0","R41":"42.25","R42":"42.27","R43":"0","Messdatum":"2016-07-20 11:58:46","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010299","OL1":"222.09","OL2":"0","OW1":"222.1","OW2":"0","R11":"42.31","R12":"42.29","R13":"0","R21":"42.31","R22":"42.3","R23":"0","R31":"42.32","R32":"42.31","R33":"0","R41":"42.27","R42":"42.27","R43":"0","Messdatum":"2016-07-20 12:00:15","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010300","OL1":"222.08","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.28","R12":"42.29","R13":"0","R21":"42.3","R22":"42.3","R23":"0","R31":"42.33","R32":"42.34","R33":"0","R41":"42.24","R42":"42.25","R43":"0","Messdatum":"2016-07-20 12:01:52","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010301","OL1":"222.07","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.32","R12":"42.31","R13":"0","R21":"42.3","R22":"42.29","R23":"0","R31":"42.29","R32":"42.29","R33":"0","R41":"42.3","R42":"42.28","R43":"0","Messdatum":"2016-07-20 12:03:32","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010302","OL1":"222.09","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.3","R12":"42.3","R13":"0","R21":"42.29","R22":"42.32","R23":"0","R31":"42.26","R32":"42.28","R33":"0","R41":"42.3","R42":"42.3","R43":"0","Messdatum":"2016-07-20 12:05:11","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010303","OL1":"222.1","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.3","R12":"42.32","R13":"0","R21":"42.29","R22":"42.3","R23":"0","R31":"42.26","R32":"42.3","R33":"0","R41":"42.3","R42":"42.32","R43":"0","Messdatum":"2016-07-20 12:08:20","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010304","OL1":"222.12","OL2":"0","OW1":"222.08","OW2":"0","R11":"42.3","R12":"42.31","R13":"0","R21":"42.29","R22":"42.3","R23":"0","R31":"42.31","R32":"42.3","R33":"0","R41":"42.28","R42":"42.29","R43":"0","Messdatum":"2016-07-20 12:10:14","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA102010305","OL1":"222.11","OL2":"0","OW1":"222.11","OW2":"0","R11":"42.32","R12":"42.33","R13":"0","R21":"42.28","R22":"42.28","R23":"0","R31":"42.3","R32":"42.33","R33":"0","R41":"42.24","R42":"42.25","R43":"0","Messdatum":"2016-07-20 12:12:16","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA103010195","OL1":"222.09","OL2":"0","OW1":"222.1","OW2":"0","R11":"42.27","R12":"42.26","R13":"0","R21":"42.31","R22":"42.28","R23":"0","R31":"42.3","R32":"42.28","R33":"0","R41":"42.34","R42":"42.33","R43":"0","Messdatum":"2016-07-20 14:31:15","Rauheitsdatum":"0000-00-00 00:00:00"},{"TXLCode":"GA103010196","OL1":"222.07","OL2":"0","OW1":"222.09","OW2":"0","R11":"42.26","R12":"42.27","R13":"0","R21":"42.27","R22":"42.29","R23":"0","R31":"42.3","R32":"42.32","R33":"0","R41":"42.32","R42":"42.32","R43":"0","Messdatum":"2016-07-20 14:32:25","Rauheitsdatum":"0000-00-00 00:00:00"}];
var cnt = 0;
OL1 = [];
OL2 = [];
OW1 = [];
OW2 = [];
R11 = [];
R12 = [];
R13 = [];
R21 = [];
R22 = [];
R23 = [];
R31 = [];
R32 = [];
R33 = [];
R41 = [];
R42 = [];
R43 = [];
OLMin3040 = [];
OLNom3040 = [];
OLMax3040 = [];
OWMin3040 = [];
OWNom3040 = [];
OWMax3040 = [];
OLMin3030 = [];
OLNom3030 = [];
OLMax3030 = [];
OWMin3030 = [];
OWNom3030 = [];
OWMax3030 = [];
OLMin2121 = [];
OLNom2121 = [];
OLMax2121 = [];
OWMin2121 = [];
OwNom2121 = [];
OWMax2121 = [];
OLMin2121C = [];
OLNom2121C = [];
OLMax2121C = [];
OWMin2121C = [];
OWNom2121C = [];
OWMax2121C = [];
$.each(messwerte, function(i, item){
partNr = item.TXLCode.substring(item.TXLCode.length -4);
toolNr = item.TXLCode.substring(3,5);
toolpart = toolNr + "-" + partNr;
OL1.push({ label: toolpart, x: cnt, y: Number(item.OL1) });
OL2.push({ label: toolpart, x: cnt, y: Number(item.OL2) });
OW1.push({ label: toolpart, x: cnt, y: Number(item.OW1) });
OW2.push({ label: toolpart, x: cnt, y: Number(item.OW2) });
R11.push({ label: toolpart, x: cnt, y: Number(item.R11) });
R12.push({ label: toolpart, x: cnt, y: Number(item.R12) });
R13.push({ label: toolpart, x: cnt, y: Number(item.R13) });
R21.push({ label: toolpart, x: cnt, y: Number(item.R21) });
R22.push({ label: toolpart, x: cnt, y: Number(item.R22) });
R23.push({ label: toolpart, x: cnt, y: Number(item.R23) });
R31.push({ label: toolpart, x: cnt, y: Number(item.R31) });
R32.push({ label: toolpart, x: cnt, y: Number(item.R32) });
R33.push({ label: toolpart, x: cnt, y: Number(item.R33) });
R41.push({ label: toolpart, x: cnt, y: Number(item.R41) });
R42.push({ label: toolpart, x: cnt, y: Number(item.R42) });
R43.push({ label: toolpart, x: cnt, y: Number(item.R43) });
switch (TMPType) {
case "3040": // 429,50 429,40 429,60 310,60 310,50 310,70
OLMin3040.push({ x: cnt, y: 429.40 });
OLNom3040.push({ x: cnt, y: 429.50 });
OLMax3040.push({ x: cnt, y: 429.60 });
OWMin3040.push({ x: cnt, y: 310.50 });
OWNom3040.push({ x: cnt, y: 310.60 });
OWMax3040.push({ x: cnt, y: 310.70 });
break;
case "3030": // 323,40 323,20 323,60 323,40 323,20 323,60
OLMin3030.push({ x: cnt, y: 323.20 });
OLNom3030.push({ x: cnt, y: 323.40 });
OLMax3030.push({ x: cnt, y: 323.60 });
OWMin3030.push({ x: cnt, y: 323.20 });
OWNom3030.push({ x: cnt, y: 323.40 });
OWMax3030.push({ x: cnt, y: 323.60 });
break;
case "2121": // 222,10 222,00 222,20 222,10 222,00 222,20
OLMin2121.push({ x: cnt, y: 222.00 });
OLNom2121.push({ x: cnt, y: 222.10 });
OLMax2121.push({ x: cnt, y: 222.20 });
OWMin2121.push({ x: cnt, y: 222.00 });
OWNom2121.push({ x: cnt, y: 222.10 });
OWMax2121.push({ x: cnt, y: 222.20 });
break;
case "2121C": // 217,70 217,60 217,80 217,70 217,60 217,80
OLMin2121C.push({ x: cnt, y: 217.60 });
OLNom2121C.push({ x: cnt, y: 217.70 });
OLMax2121C.push({ x: cnt, y: 217.80 });
OWMin2121C.push({ x: cnt, y: 217.60 });
OWNom2121C.push({ x: cnt, y: 217.70 });
OWMax2121C.push({ x: cnt, y: 217.80 });
break;
default:
swal("Fehler", "Es wurde kein Bauteiltyp angegeben", "error");
break;
}
cnt++;
});
}