var width = 836; var height = 500; var x1min = 0; var x1max = 1810; var x2min = 0; var x2max = 1810/3600; var y1min = 0; var y1max = 1180; var y2min = 0; var y2max = 1100; function handleMouseOver(d, i) { d3.select(this).attr({ fill: "orange", r: radius * 2 }); } function make_x_gridlines() { return d3.axisBottom(x).ticks(5) } function make_y_gridlines() { return d3.axisLeft(y).ticks(5) } var x = d3.scaleTime().range([70, width]); var y = d3.scaleLinear().rangeRound([height, 0]); var svg = d3.select("#chart").append("svg").attr("width", width).attr("height", height); svg.on("mousemove", function() { //console.log("x", xscale.invert(d3.mouse(this)[0] - 50)); //console.log("y", yscale.invert(d3.mouse(this)[1] - 10)); var cx = scale.invert(d3.mouse(this)[0] - 49.3); var cy = yscale.invert(d3.mouse(this)[1] - 23.5); //$("#cx").text(cx); //$("#cy").text(cy); //console.log(d3.event); enterFrame(cx, cy); //console.log("x - using invert", xscale.invert(d3.event.pageX)); //console.log("y- using invert", yscale.invert(d3.event.pageY)); }); var scale = d3.scaleLinear().domain([x1min, x1max]).range([22, width - 80]); var x_axis = d3.axisTop().scale(scale); var xAxisTranslate = height - 50; // przesuniecie scali x na dol svg.append("g").attr("class", "gray").attr("transform", "translate(48, " + xAxisTranslate +")").call(x_axis) var xscale = d3.scaleLinear().domain([x2min, x2max]).range([22, width - 80]); var x_axis = d3.axisBottom().scale(xscale); var xAxisTranslate = height - 50; // przesuniecie scali x na dol svg.append("g").attr("class", "gray graytext").attr("transform", "translate(48, " + xAxisTranslate +")").call(x_axis) var yscale = d3.scaleLinear().domain([y1min, y1max]).range([height - 100, 0]); var y_axis = d3.axisLeft().scale(yscale); svg.append("g").attr("transform", "translate(70, 20)").call(y_axis); //var yscale_right = d3.scaleLinear().domain([y2min, y2max]).range([height - 100, 0]); //var yr_axis = d3.axisRight().scale(yscale_right); //var yAxisTranslate = width - 31; // przesuniecie scali x na dol //svg.append("g").attr("class", "red").attr("transform", "translate(" + yAxisTranslate +", 20)").call(yr_axis); // siatki ciensze var yscale = d3.scaleLinear().domain([y1min, y1max]).range([height - 100, 0]); var grid = d3.axisLeft().scale(yscale).ticks(60) svg.append("g").attr("class", "grid2").attr("transform", "translate(70,20)").call(grid.tickSize(-(width-101)).tickFormat("")) // siatki var yscale = d3.scaleLinear().domain([y1min, y1max]).range([height - 100, 0]); var grid = d3.axisLeft().scale(yscale); svg.append("g").attr("class", "grid").attr("transform", "translate(70,20)").call(grid.tickSize(-(width-101)).tickFormat("")) // siatki var scale = d3.scaleLinear().domain([x1min, x1max]).range([22, width - 80]); var grid = d3.axisTop().scale(scale); svg.append("g").attr("class", "grid").attr("transform", "translate(48, 20)").call(grid.tickSize(-(height-100)).tickFormat("")) var n = 21; var xScale = d3.scaleLinear() .domain([x1min, x1max]) .range([70, width-30]); var yScale = d3.scaleLinear() .domain([y1min, y1max]) .range([height-100, 0]); svg.append("text").style("fill", "#555").style("font-size", "10px") .attr("font-family", "Rubik") .text("m3/s") .attr("x", function (d) { return 805; }) .attr("y", function (d) { return 465; }); svg.append("text").data([{ x: x1max - 50, y: -83 }]).style("fill", "#555").style("font-size", "10px") .attr("font-family", "Rubik") .text("m3/h") .attr("x", function (d) { return 805; }) .attr("y", function (d) { return 440; }); svg.append("text").data([{ x: -150, y: y1max - 25 }]).style("fill", "#555").style("font-size", "10px") .attr("font-family", "Rubik") .text("Pa") .attr("x", function (d) { return 50; }) .attr("y", function (d) { return 15; }); var line = d3.area() .x(function(d, i) { return xScale(d.x); }) .y(function(d) { return yScale(d.y); }) .curve(d3.curveMonotoneX) var area = d3.area() .x(function(d, i) { return xScale(d.x); }) .y0(height-100) .y1(function(d) { return yScale(d.y); }); var Arr_paramsA = new Array(); var Arr_paramsID = new Array(); var data_chart = []; var data_chart_name = []; var data_chart_area = []; let paramsPresureA = []; const getPressureDynamic_A2 = (diameterCalculating) => { let A2 = (1.2 * 62543.94) / Math.pow(diameterCalculating, 4); return A2; }; let is_total = 1; let diameterCalculating = null; diameterCalculating = 133; paramsPresureA = [219.89719054616828,3.269278855167346,-0.017329733426337122,2.0572966429169136e-5]; if (is_total) { paramsPresureA[2] += getPressureDynamic_A2(diameterCalculating); } Arr_paramsA.push(paramsPresureA); Arr_paramsID.push(35136); data_chart[46771] = [{"x" : 60, "y" : 358.97414242419114316363},{"x" : 63.25, "y" : 363.51566844681349266466},{"x" : 66.5, "y" : 367.77863701070720026109},{"x" : 69.75, "y" : 371.76728550405124451572},{"x" : 73, "y" : 375.48585131502488820843},{"x" : 76.25, "y" : 378.93857183180750780593},{"x" : 79.5, "y" : 382.12968444257802502761},{"x" : 82.75, "y" : 385.06342653551581634019},{"x" : 86, "y" : 387.74403549880014452356},{"x" : 89.25, "y" : 390.17574872060998814050},{"x" : 92.5, "y" : 392.36280358912495103141},{"x" : 95.75, "y" : 394.30943749252378438541},{"x" : 99, "y" : 396.01988781898592151265},{"x" : 102.25, "y" : 397.49839195669073887984},{"x" : 105.5, "y" : 398.74918729381710136295},{"x" : 108.75, "y" : 399.77651121854438542869},{"x" : 112, "y" : 400.58460111905185385694},{"x" : 115.25, "y" : 401.17769438351859889735},{"x" : 118.5, "y" : 401.56002840012399701664},{"x" : 121.75, "y" : 401.73584055704702677758},{"x" : 125, "y" : 401.70936824246706464692},{"x" : 128.25, "y" : 401.48484884456325971769},{"x" : 131.5, "y" : 401.06651975151481792636},{"x" : 134.75, "y" : 400.45861835150094520941},{"x" : 138, "y" : 399.66538203270096119013},{"x" : 141.25, "y" : 398.69104818329378758790},{"x" : 144.5, "y" : 397.53985419145902824312},{"x" : 147.75, "y" : 396.21603744537549118832},{"x" : 151, "y" : 394.72383533322260973364},{"x" : 154.25, "y" : 393.06748524317964665897},{"x" : 157.5, "y" : 391.25122456342563737053},{"x" : 160.75, "y" : 389.27929068213995833503},{"x" : 164, "y" : 387.15592098750164495868},{"x" : 167.25, "y" : 384.88535286769001686480},{"x" : 170.5, "y" : 382.47182371088433683326},{"x" : 173.75, "y" : 379.91957090526358342686},{"x" : 177, "y" : 377.23283183900718995574},{"x" : 180.25, "y" : 374.41584390029430551294},{"x" : 183.5, "y" : 371.47284447730402234811},{"x" : 186.75, "y" : 368.40807095821577377137},{"x" : 190, "y" : 365.22576073120865203236},{"x" : 193.25, "y" : 361.93015118446174938072},{"x" : 196.5, "y" : 358.52547970615438543973},{"x" : 199.75, "y" : 355.01598368446576614588},{"x" : 203, "y" : 351.40590050757509743562},{"x" : 206.25, "y" : 347.69946756366164208885},{"x" : 209.5, "y" : 343.90092224090449235518},{"x" : 212.75, "y" : 340.01450192748302470136},{"x" : 216, "y" : 336.04444401157616084674},{"x" : 219.25, "y" : 331.99498588136327725806},{"x" : 222.5, "y" : 327.87036492502375040203},{"x" : 225.75, "y" : 323.67481853073655884145},{"x" : 229, "y" : 319.41258408668096535621},{"x" : 232.25, "y" : 315.08789898103617588276},{"x" : 235.5, "y" : 310.70500060198145320101},{"x" : 238.75, "y" : 306.26812633769583271715},{"x" : 242, "y" : 301.78151357635880458474},{"x" : 245.25, "y" : 297.24939970614934736659},{"x" : 248.5, "y" : 292.67602211524672384257},{"x" : 251.75, "y" : 288.06561819183019679258},{"x" : 255, "y" : 283.42242532407897215307},{"x" : 258.25, "y" : 278.75068090017242639078},{"x" : 261.5, "y" : 274.05462230828936753824},{"x" : 264.75, "y" : 269.33848693660900153191},{"x" : 268, "y" : 264.60651217331098905561},{"x" : 271.25, "y" : 259.86293540657425182872},{"x" : 274.5, "y" : 255.11199402457810947453},{"x" : 277.75, "y" : 250.35792541550171108611},{"x" : 281, "y" : 245.60496696752397838281},{"x" : 284.25, "y" : 240.85735606882468573531},{"x" : 287.5, "y" : 236.11933010758252748928},{"x" : 290.75, "y" : 231.39512647197688011147},{"x" : 294, "y" : 226.68898255018734744226},{"x" : 297.25, "y" : 222.00513573039268067078},{"x" : 300.5, "y" : 217.34782340077208573348},{"x" : 303.75, "y" : 212.72128294950482541026},{"x" : 307, "y" : 208.12975176477027616784},{"x" : 310.25, "y" : 203.57746723474770078610},{"x" : 313.5, "y" : 199.06866674761567992391},{"x" : 316.75, "y" : 194.60758769155415848218},{"x" : 320, "y" : 190.19846745474205818027},{"x" : 323.25, "y" : 185.84554342535886917176},{"x" : 326.5, "y" : 181.55305299158305842866},{"x" : 329.75, "y" : 177.32523354159457085188},{"x" : 333, "y" : 173.16632246357210078713},{"x" : 336.25, "y" : 169.08055714569536576164},{"x" : 339.5, "y" : 165.07217497614306012110},{"x" : 342.75, "y" : 161.14541334309512876644},{"x" : 346, "y" : 157.30450963472992498282},{"x" : 349.25, "y" : 153.55370123922693892382},{"x" : 352.5, "y" : 149.89722554476554705616},{"x" : 355.75, "y" : 146.33931993952489847288},{"x" : 359, "y" : 142.88422181168436964072},{"x" : 362.25, "y" : 139.53616854942276859219},{"x" : 365.5, "y" : 136.29939754091947179404},{"x" : 368.75, "y" : 133.17814617435374202614},{"x" : 372, "y" : 130.17665183790495575522},{"x" : 375.25, "y" : 127.29915191975214838749},{"x" : 378.5, "y" : 124.54988380807435532915},{"x" : 381.75, "y" : 121.93308489105106673378},{"x" : 385, "y" : 119.45299255686086326023}]; data_chart_name[46771] = "50Hz"; data_chart_area[46771] = new Array(); if ((data_chart[46771][0].x != undefined && parseFloat(data_chart[46771][0].x))) { var a_before = parseFloat(data_chart[46771][0].y) / (parseFloat(data_chart[46771][0].x) * parseFloat(data_chart[46771][0].x)); var append_before = ''; for(var b = 0; b <= 10; b++) { var _x = (b * data_chart[46771][0].x) / 10; var _y = _x * _x * a_before; data_chart_area[46771].push({x: _x, y: _y}); } } var last_index = data_chart[46771].length; for(var b = 0; b < last_index; b++) { data_chart_area[46771].push(data_chart[46771][b]); } last_index = last_index - 1; if (data_chart[46771][last_index].y != undefined && parseFloat(data_chart[46771][last_index].y) > 5) { var a_after = parseFloat(data_chart[46771][last_index].y) / (parseFloat(data_chart[46771][last_index].x) * parseFloat(data_chart[46771][last_index].x)); for(var b = 10; b >= 0; b--) { var _x = (b * data_chart[46771][last_index].x) / 10; var _y = _x * _x * a_after; data_chart_area[46771].push({x: _x, y: _y}); } } var dataset_46771 = [{"x" : 60, "y" : 358.97414242419114316363},{"x" : 63.25, "y" : 363.51566844681349266466},{"x" : 66.5, "y" : 367.77863701070720026109},{"x" : 69.75, "y" : 371.76728550405124451572},{"x" : 73, "y" : 375.48585131502488820843},{"x" : 76.25, "y" : 378.93857183180750780593},{"x" : 79.5, "y" : 382.12968444257802502761},{"x" : 82.75, "y" : 385.06342653551581634019},{"x" : 86, "y" : 387.74403549880014452356},{"x" : 89.25, "y" : 390.17574872060998814050},{"x" : 92.5, "y" : 392.36280358912495103141},{"x" : 95.75, "y" : 394.30943749252378438541},{"x" : 99, "y" : 396.01988781898592151265},{"x" : 102.25, "y" : 397.49839195669073887984},{"x" : 105.5, "y" : 398.74918729381710136295},{"x" : 108.75, "y" : 399.77651121854438542869},{"x" : 112, "y" : 400.58460111905185385694},{"x" : 115.25, "y" : 401.17769438351859889735},{"x" : 118.5, "y" : 401.56002840012399701664},{"x" : 121.75, "y" : 401.73584055704702677758},{"x" : 125, "y" : 401.70936824246706464692},{"x" : 128.25, "y" : 401.48484884456325971769},{"x" : 131.5, "y" : 401.06651975151481792636},{"x" : 134.75, "y" : 400.45861835150094520941},{"x" : 138, "y" : 399.66538203270096119013},{"x" : 141.25, "y" : 398.69104818329378758790},{"x" : 144.5, "y" : 397.53985419145902824312},{"x" : 147.75, "y" : 396.21603744537549118832},{"x" : 151, "y" : 394.72383533322260973364},{"x" : 154.25, "y" : 393.06748524317964665897},{"x" : 157.5, "y" : 391.25122456342563737053},{"x" : 160.75, "y" : 389.27929068213995833503},{"x" : 164, "y" : 387.15592098750164495868},{"x" : 167.25, "y" : 384.88535286769001686480},{"x" : 170.5, "y" : 382.47182371088433683326},{"x" : 173.75, "y" : 379.91957090526358342686},{"x" : 177, "y" : 377.23283183900718995574},{"x" : 180.25, "y" : 374.41584390029430551294},{"x" : 183.5, "y" : 371.47284447730402234811},{"x" : 186.75, "y" : 368.40807095821577377137},{"x" : 190, "y" : 365.22576073120865203236},{"x" : 193.25, "y" : 361.93015118446174938072},{"x" : 196.5, "y" : 358.52547970615438543973},{"x" : 199.75, "y" : 355.01598368446576614588},{"x" : 203, "y" : 351.40590050757509743562},{"x" : 206.25, "y" : 347.69946756366164208885},{"x" : 209.5, "y" : 343.90092224090449235518},{"x" : 212.75, "y" : 340.01450192748302470136},{"x" : 216, "y" : 336.04444401157616084674},{"x" : 219.25, "y" : 331.99498588136327725806},{"x" : 222.5, "y" : 327.87036492502375040203},{"x" : 225.75, "y" : 323.67481853073655884145},{"x" : 229, "y" : 319.41258408668096535621},{"x" : 232.25, "y" : 315.08789898103617588276},{"x" : 235.5, "y" : 310.70500060198145320101},{"x" : 238.75, "y" : 306.26812633769583271715},{"x" : 242, "y" : 301.78151357635880458474},{"x" : 245.25, "y" : 297.24939970614934736659},{"x" : 248.5, "y" : 292.67602211524672384257},{"x" : 251.75, "y" : 288.06561819183019679258},{"x" : 255, "y" : 283.42242532407897215307},{"x" : 258.25, "y" : 278.75068090017242639078},{"x" : 261.5, "y" : 274.05462230828936753824},{"x" : 264.75, "y" : 269.33848693660900153191},{"x" : 268, "y" : 264.60651217331098905561},{"x" : 271.25, "y" : 259.86293540657425182872},{"x" : 274.5, "y" : 255.11199402457810947453},{"x" : 277.75, "y" : 250.35792541550171108611},{"x" : 281, "y" : 245.60496696752397838281},{"x" : 284.25, "y" : 240.85735606882468573531},{"x" : 287.5, "y" : 236.11933010758252748928},{"x" : 290.75, "y" : 231.39512647197688011147},{"x" : 294, "y" : 226.68898255018734744226},{"x" : 297.25, "y" : 222.00513573039268067078},{"x" : 300.5, "y" : 217.34782340077208573348},{"x" : 303.75, "y" : 212.72128294950482541026},{"x" : 307, "y" : 208.12975176477027616784},{"x" : 310.25, "y" : 203.57746723474770078610},{"x" : 313.5, "y" : 199.06866674761567992391},{"x" : 316.75, "y" : 194.60758769155415848218},{"x" : 320, "y" : 190.19846745474205818027},{"x" : 323.25, "y" : 185.84554342535886917176},{"x" : 326.5, "y" : 181.55305299158305842866},{"x" : 329.75, "y" : 177.32523354159457085188},{"x" : 333, "y" : 173.16632246357210078713},{"x" : 336.25, "y" : 169.08055714569536576164},{"x" : 339.5, "y" : 165.07217497614306012110},{"x" : 342.75, "y" : 161.14541334309512876644},{"x" : 346, "y" : 157.30450963472992498282},{"x" : 349.25, "y" : 153.55370123922693892382},{"x" : 352.5, "y" : 149.89722554476554705616},{"x" : 355.75, "y" : 146.33931993952489847288},{"x" : 359, "y" : 142.88422181168436964072},{"x" : 362.25, "y" : 139.53616854942276859219},{"x" : 365.5, "y" : 136.29939754091947179404},{"x" : 368.75, "y" : 133.17814617435374202614},{"x" : 372, "y" : 130.17665183790495575522},{"x" : 375.25, "y" : 127.29915191975214838749},{"x" : 378.5, "y" : 124.54988380807435532915},{"x" : 381.75, "y" : 121.93308489105106673378},{"x" : 385, "y" : 119.45299255686086326023}]; var dataset_area_46771 = data_chart_area[46771]; svg.append("path") .attr("transform", "translate(0, 20)") .datum(dataset_area_46771) .attr("class", "area") .attr("id", "area_35136") .style('fill-opacity', 0) .attr("fill", "#00427a") .on('mouseover', function(d, i) { selectItemGraph(35136) }) .attr("d", area); svg.append("path") .attr("transform", "translate(0, 20)") .attr("id", "path_35136") .datum(dataset_46771) .attr("class", "line") .attr("d", line); diameterCalculating = 133; paramsPresureA = [219.89719054616828,3.269278855167346,-0.017329733426337122,2.0572966429169136e-5]; if (is_total) { paramsPresureA[2] += getPressureDynamic_A2(diameterCalculating); } Arr_paramsA.push(paramsPresureA); Arr_paramsID.push(35134); data_chart[46769] = [{"x" : 60, "y" : 358.97414242419114316363},{"x" : 63.25, "y" : 363.51566844681349266466},{"x" : 66.5, "y" : 367.77863701070720026109},{"x" : 69.75, "y" : 371.76728550405124451572},{"x" : 73, "y" : 375.48585131502488820843},{"x" : 76.25, "y" : 378.93857183180750780593},{"x" : 79.5, "y" : 382.12968444257802502761},{"x" : 82.75, "y" : 385.06342653551581634019},{"x" : 86, "y" : 387.74403549880014452356},{"x" : 89.25, "y" : 390.17574872060998814050},{"x" : 92.5, "y" : 392.36280358912495103141},{"x" : 95.75, "y" : 394.30943749252378438541},{"x" : 99, "y" : 396.01988781898592151265},{"x" : 102.25, "y" : 397.49839195669073887984},{"x" : 105.5, "y" : 398.74918729381710136295},{"x" : 108.75, "y" : 399.77651121854438542869},{"x" : 112, "y" : 400.58460111905185385694},{"x" : 115.25, "y" : 401.17769438351859889735},{"x" : 118.5, "y" : 401.56002840012399701664},{"x" : 121.75, "y" : 401.73584055704702677758},{"x" : 125, "y" : 401.70936824246706464692},{"x" : 128.25, "y" : 401.48484884456325971769},{"x" : 131.5, "y" : 401.06651975151481792636},{"x" : 134.75, "y" : 400.45861835150094520941},{"x" : 138, "y" : 399.66538203270096119013},{"x" : 141.25, "y" : 398.69104818329378758790},{"x" : 144.5, "y" : 397.53985419145902824312},{"x" : 147.75, "y" : 396.21603744537549118832},{"x" : 151, "y" : 394.72383533322260973364},{"x" : 154.25, "y" : 393.06748524317964665897},{"x" : 157.5, "y" : 391.25122456342563737053},{"x" : 160.75, "y" : 389.27929068213995833503},{"x" : 164, "y" : 387.15592098750164495868},{"x" : 167.25, "y" : 384.88535286769001686480},{"x" : 170.5, "y" : 382.47182371088433683326},{"x" : 173.75, "y" : 379.91957090526358342686},{"x" : 177, "y" : 377.23283183900718995574},{"x" : 180.25, "y" : 374.41584390029430551294},{"x" : 183.5, "y" : 371.47284447730402234811},{"x" : 186.75, "y" : 368.40807095821577377137},{"x" : 190, "y" : 365.22576073120865203236},{"x" : 193.25, "y" : 361.93015118446174938072},{"x" : 196.5, "y" : 358.52547970615438543973},{"x" : 199.75, "y" : 355.01598368446576614588},{"x" : 203, "y" : 351.40590050757509743562},{"x" : 206.25, "y" : 347.69946756366164208885},{"x" : 209.5, "y" : 343.90092224090449235518},{"x" : 212.75, "y" : 340.01450192748302470136},{"x" : 216, "y" : 336.04444401157616084674},{"x" : 219.25, "y" : 331.99498588136327725806},{"x" : 222.5, "y" : 327.87036492502375040203},{"x" : 225.75, "y" : 323.67481853073655884145},{"x" : 229, "y" : 319.41258408668096535621},{"x" : 232.25, "y" : 315.08789898103617588276},{"x" : 235.5, "y" : 310.70500060198145320101},{"x" : 238.75, "y" : 306.26812633769583271715},{"x" : 242, "y" : 301.78151357635880458474},{"x" : 245.25, "y" : 297.24939970614934736659},{"x" : 248.5, "y" : 292.67602211524672384257},{"x" : 251.75, "y" : 288.06561819183019679258},{"x" : 255, "y" : 283.42242532407897215307},{"x" : 258.25, "y" : 278.75068090017242639078},{"x" : 261.5, "y" : 274.05462230828936753824},{"x" : 264.75, "y" : 269.33848693660900153191},{"x" : 268, "y" : 264.60651217331098905561},{"x" : 271.25, "y" : 259.86293540657425182872},{"x" : 274.5, "y" : 255.11199402457810947453},{"x" : 277.75, "y" : 250.35792541550171108611},{"x" : 281, "y" : 245.60496696752397838281},{"x" : 284.25, "y" : 240.85735606882468573531},{"x" : 287.5, "y" : 236.11933010758252748928},{"x" : 290.75, "y" : 231.39512647197688011147},{"x" : 294, "y" : 226.68898255018734744226},{"x" : 297.25, "y" : 222.00513573039268067078},{"x" : 300.5, "y" : 217.34782340077208573348},{"x" : 303.75, "y" : 212.72128294950482541026},{"x" : 307, "y" : 208.12975176477027616784},{"x" : 310.25, "y" : 203.57746723474770078610},{"x" : 313.5, "y" : 199.06866674761567992391},{"x" : 316.75, "y" : 194.60758769155415848218},{"x" : 320, "y" : 190.19846745474205818027},{"x" : 323.25, "y" : 185.84554342535886917176},{"x" : 326.5, "y" : 181.55305299158305842866},{"x" : 329.75, "y" : 177.32523354159457085188},{"x" : 333, "y" : 173.16632246357210078713},{"x" : 336.25, "y" : 169.08055714569536576164},{"x" : 339.5, "y" : 165.07217497614306012110},{"x" : 342.75, "y" : 161.14541334309512876644},{"x" : 346, "y" : 157.30450963472992498282},{"x" : 349.25, "y" : 153.55370123922693892382},{"x" : 352.5, "y" : 149.89722554476554705616},{"x" : 355.75, "y" : 146.33931993952489847288},{"x" : 359, "y" : 142.88422181168436964072},{"x" : 362.25, "y" : 139.53616854942276859219},{"x" : 365.5, "y" : 136.29939754091947179404},{"x" : 368.75, "y" : 133.17814617435374202614},{"x" : 372, "y" : 130.17665183790495575522},{"x" : 375.25, "y" : 127.29915191975214838749},{"x" : 378.5, "y" : 124.54988380807435532915},{"x" : 381.75, "y" : 121.93308489105106673378},{"x" : 385, "y" : 119.45299255686086326023}]; data_chart_name[46769] = "50Hz"; data_chart_area[46769] = new Array(); if ((data_chart[46769][0].x != undefined && parseFloat(data_chart[46769][0].x))) { var a_before = parseFloat(data_chart[46769][0].y) / (parseFloat(data_chart[46769][0].x) * parseFloat(data_chart[46769][0].x)); var append_before = ''; for(var b = 0; b <= 10; b++) { var _x = (b * data_chart[46769][0].x) / 10; var _y = _x * _x * a_before; data_chart_area[46769].push({x: _x, y: _y}); } } var last_index = data_chart[46769].length; for(var b = 0; b < last_index; b++) { data_chart_area[46769].push(data_chart[46769][b]); } last_index = last_index - 1; if (data_chart[46769][last_index].y != undefined && parseFloat(data_chart[46769][last_index].y) > 5) { var a_after = parseFloat(data_chart[46769][last_index].y) / (parseFloat(data_chart[46769][last_index].x) * parseFloat(data_chart[46769][last_index].x)); for(var b = 10; b >= 0; b--) { var _x = (b * data_chart[46769][last_index].x) / 10; var _y = _x * _x * a_after; data_chart_area[46769].push({x: _x, y: _y}); } } var dataset_46769 = [{"x" : 60, "y" : 358.97414242419114316363},{"x" : 63.25, "y" : 363.51566844681349266466},{"x" : 66.5, "y" : 367.77863701070720026109},{"x" : 69.75, "y" : 371.76728550405124451572},{"x" : 73, "y" : 375.48585131502488820843},{"x" : 76.25, "y" : 378.93857183180750780593},{"x" : 79.5, "y" : 382.12968444257802502761},{"x" : 82.75, "y" : 385.06342653551581634019},{"x" : 86, "y" : 387.74403549880014452356},{"x" : 89.25, "y" : 390.17574872060998814050},{"x" : 92.5, "y" : 392.36280358912495103141},{"x" : 95.75, "y" : 394.30943749252378438541},{"x" : 99, "y" : 396.01988781898592151265},{"x" : 102.25, "y" : 397.49839195669073887984},{"x" : 105.5, "y" : 398.74918729381710136295},{"x" : 108.75, "y" : 399.77651121854438542869},{"x" : 112, "y" : 400.58460111905185385694},{"x" : 115.25, "y" : 401.17769438351859889735},{"x" : 118.5, "y" : 401.56002840012399701664},{"x" : 121.75, "y" : 401.73584055704702677758},{"x" : 125, "y" : 401.70936824246706464692},{"x" : 128.25, "y" : 401.48484884456325971769},{"x" : 131.5, "y" : 401.06651975151481792636},{"x" : 134.75, "y" : 400.45861835150094520941},{"x" : 138, "y" : 399.66538203270096119013},{"x" : 141.25, "y" : 398.69104818329378758790},{"x" : 144.5, "y" : 397.53985419145902824312},{"x" : 147.75, "y" : 396.21603744537549118832},{"x" : 151, "y" : 394.72383533322260973364},{"x" : 154.25, "y" : 393.06748524317964665897},{"x" : 157.5, "y" : 391.25122456342563737053},{"x" : 160.75, "y" : 389.27929068213995833503},{"x" : 164, "y" : 387.15592098750164495868},{"x" : 167.25, "y" : 384.88535286769001686480},{"x" : 170.5, "y" : 382.47182371088433683326},{"x" : 173.75, "y" : 379.91957090526358342686},{"x" : 177, "y" : 377.23283183900718995574},{"x" : 180.25, "y" : 374.41584390029430551294},{"x" : 183.5, "y" : 371.47284447730402234811},{"x" : 186.75, "y" : 368.40807095821577377137},{"x" : 190, "y" : 365.22576073120865203236},{"x" : 193.25, "y" : 361.93015118446174938072},{"x" : 196.5, "y" : 358.52547970615438543973},{"x" : 199.75, "y" : 355.01598368446576614588},{"x" : 203, "y" : 351.40590050757509743562},{"x" : 206.25, "y" : 347.69946756366164208885},{"x" : 209.5, "y" : 343.90092224090449235518},{"x" : 212.75, "y" : 340.01450192748302470136},{"x" : 216, "y" : 336.04444401157616084674},{"x" : 219.25, "y" : 331.99498588136327725806},{"x" : 222.5, "y" : 327.87036492502375040203},{"x" : 225.75, "y" : 323.67481853073655884145},{"x" : 229, "y" : 319.41258408668096535621},{"x" : 232.25, "y" : 315.08789898103617588276},{"x" : 235.5, "y" : 310.70500060198145320101},{"x" : 238.75, "y" : 306.26812633769583271715},{"x" : 242, "y" : 301.78151357635880458474},{"x" : 245.25, "y" : 297.24939970614934736659},{"x" : 248.5, "y" : 292.67602211524672384257},{"x" : 251.75, "y" : 288.06561819183019679258},{"x" : 255, "y" : 283.42242532407897215307},{"x" : 258.25, "y" : 278.75068090017242639078},{"x" : 261.5, "y" : 274.05462230828936753824},{"x" : 264.75, "y" : 269.33848693660900153191},{"x" : 268, "y" : 264.60651217331098905561},{"x" : 271.25, "y" : 259.86293540657425182872},{"x" : 274.5, "y" : 255.11199402457810947453},{"x" : 277.75, "y" : 250.35792541550171108611},{"x" : 281, "y" : 245.60496696752397838281},{"x" : 284.25, "y" : 240.85735606882468573531},{"x" : 287.5, "y" : 236.11933010758252748928},{"x" : 290.75, "y" : 231.39512647197688011147},{"x" : 294, "y" : 226.68898255018734744226},{"x" : 297.25, "y" : 222.00513573039268067078},{"x" : 300.5, "y" : 217.34782340077208573348},{"x" : 303.75, "y" : 212.72128294950482541026},{"x" : 307, "y" : 208.12975176477027616784},{"x" : 310.25, "y" : 203.57746723474770078610},{"x" : 313.5, "y" : 199.06866674761567992391},{"x" : 316.75, "y" : 194.60758769155415848218},{"x" : 320, "y" : 190.19846745474205818027},{"x" : 323.25, "y" : 185.84554342535886917176},{"x" : 326.5, "y" : 181.55305299158305842866},{"x" : 329.75, "y" : 177.32523354159457085188},{"x" : 333, "y" : 173.16632246357210078713},{"x" : 336.25, "y" : 169.08055714569536576164},{"x" : 339.5, "y" : 165.07217497614306012110},{"x" : 342.75, "y" : 161.14541334309512876644},{"x" : 346, "y" : 157.30450963472992498282},{"x" : 349.25, "y" : 153.55370123922693892382},{"x" : 352.5, "y" : 149.89722554476554705616},{"x" : 355.75, "y" : 146.33931993952489847288},{"x" : 359, "y" : 142.88422181168436964072},{"x" : 362.25, "y" : 139.53616854942276859219},{"x" : 365.5, "y" : 136.29939754091947179404},{"x" : 368.75, "y" : 133.17814617435374202614},{"x" : 372, "y" : 130.17665183790495575522},{"x" : 375.25, "y" : 127.29915191975214838749},{"x" : 378.5, "y" : 124.54988380807435532915},{"x" : 381.75, "y" : 121.93308489105106673378},{"x" : 385, "y" : 119.45299255686086326023}]; var dataset_area_46769 = data_chart_area[46769]; svg.append("path") .attr("transform", "translate(0, 20)") .datum(dataset_area_46769) .attr("class", "area") .attr("id", "area_35134") .style('fill-opacity', 0) .attr("fill", "#00427a") .on('mouseover', function(d, i) { selectItemGraph(35134) }) .attr("d", area); svg.append("path") .attr("transform", "translate(0, 20)") .attr("id", "path_35134") .datum(dataset_46769) .attr("class", "line") .attr("d", line); diameterCalculating = 133; paramsPresureA = [361.0636752415385,1.6033551994009545,-0.01125256490047125,1.3773683951154071e-5]; if (is_total) { paramsPresureA[2] += getPressureDynamic_A2(diameterCalculating); } Arr_paramsA.push(paramsPresureA); Arr_paramsID.push(35132); data_chart[46770] = [{"x" : 17, "y" : 385.20571235785200769897},{"x" : 20.82, "y" : 389.79613342604886838672},{"x" : 24.64, "y" : 394.09025874686574297812},{"x" : 28.46, "y" : 398.09269503644520682428},{"x" : 32.28, "y" : 401.80804901092966474607},{"x" : 36.1, "y" : 405.24092738646135103409},{"x" : 39.92, "y" : 408.39593687918289788286},{"x" : 43.74, "y" : 411.27768420523642589615},{"x" : 47.56, "y" : 413.89077608076451042507},{"x" : 51.38, "y" : 416.23981922190944260365},{"x" : 55.2, "y" : 418.32942034481357040931},{"x" : 59.02, "y" : 420.16418616561946919319},{"x" : 62.84, "y" : 421.74872340046931640245},{"x" : 66.66, "y" : 423.08763876550557370138},{"x" : 70.48, "y" : 424.18553897687075959766},{"x" : 74.3, "y" : 425.04703075070710838190},{"x" : 78.12, "y" : 425.67672080315702487496},{"x" : 81.94, "y" : 426.07921585036285705428},{"x" : 85.76, "y" : 426.25912260846718027096},{"x" : 89.58, "y" : 426.22104779361217197220},{"x" : 93.4, "y" : 425.96959812194029382226},{"x" : 97.22, "y" : 425.50938030959400748543},{"x" : 101.04, "y" : 424.84500107271566093914},{"x" : 104.86, "y" : 423.98106712744760216083},{"x" : 108.68, "y" : 422.92218518993212228452},{"x" : 112.5, "y" : 421.67296197631185350474},{"x" : 116.32, "y" : 420.23800420272897326868},{"x" : 120.14, "y" : 418.62191858532600008402},{"x" : 123.96, "y" : 416.82931184024533877164},{"x" : 127.78, "y" : 414.86479068362928046554},{"x" : 131.6, "y" : 412.73296183162005945633},{"x" : 135.42, "y" : 410.43843200036047846879},{"x" : 139.24, "y" : 407.98580790599254441986},{"x" : 143.06, "y" : 405.37969626465871897381},{"x" : 146.88, "y" : 402.62470379250163432516},{"x" : 150.7, "y" : 399.72543720566352476453},{"x" : 154.52, "y" : 396.68650322028679511277},{"x" : 158.34, "y" : 393.51250855251367966048},{"x" : 162.16, "y" : 390.20805991848669691535},{"x" : 165.98, "y" : 386.77776403434808116799},{"x" : 169.8, "y" : 383.22622761624057829977},{"x" : 173.62, "y" : 379.55805738030630891444},{"x" : 177.44, "y" : 375.77786004268773467629},{"x" : 181.26, "y" : 371.89024231952726040618},{"x" : 185.08, "y" : 367.89981092696712039469},{"x" : 188.9, "y" : 363.81117258114988999296},{"x" : 192.72, "y" : 359.62893399821786033499},{"x" : 196.54, "y" : 355.35770189431337939823},{"x" : 200.36, "y" : 351.00208298557902253378},{"x" : 204.18, "y" : 346.56668398815702403226},{"x" : 208, "y" : 342.05611161818973187110},{"x" : 211.82, "y" : 337.47497259181966455799},{"x" : 215.64, "y" : 332.82787362518905638353},{"x" : 219.46, "y" : 328.11942143444042585543},{"x" : 223.28, "y" : 323.35422273571606410769},{"x" : 227.1, "y" : 318.53688424515860333486},{"x" : 230.92, "y" : 313.67201267891027782753},{"x" : 234.74, "y" : 308.76421475311332187630},{"x" : 238.56, "y" : 303.81809718391025398887},{"x" : 242.38, "y" : 298.83826668744336529926},{"x" : 246.2, "y" : 293.82932997985500378491},{"x" : 250.02, "y" : 288.79589377728791532718},{"x" : 253.84, "y" : 283.74256479588416368642},{"x" : 257.66, "y" : 278.67394975178638105717},{"x" : 261.48, "y" : 273.59465536113663119977},{"x" : 265.3, "y" : 268.50928834007754630875},{"x" : 269.12, "y" : 263.42245540475153120497},{"x" : 272.94, "y" : 258.33876327130070649218},{"x" : 276.76, "y" : 253.26281865586776120836},{"x" : 280.58, "y" : 248.19922827459492964408},{"x" : 284.4, "y" : 243.15259884362461662022},{"x" : 288.22, "y" : 238.12753707909911327079},{"x" : 292.04, "y" : 233.12864969716122232057},{"x" : 295.86, "y" : 228.16054341395266646941},{"x" : 299.68, "y" : 223.22782494561636212893},{"x" : 303.5, "y" : 218.33510100829448674631},{"x" : 307.32, "y" : 213.48697831812950198582},{"x" : 311.14, "y" : 208.68806359126386951175},{"x" : 314.96, "y" : 203.94296354383970992785},{"x" : 318.78, "y" : 199.25628489199959858524},{"x" : 322.6, "y" : 194.63263435188594030478},{"x" : 326.42, "y" : 190.07661863964102622049},{"x" : 330.24, "y" : 185.59284447140726115322},{"x" : 334.06, "y" : 181.18591856332716361067},{"x" : 337.88, "y" : 176.86044763154302472685},{"x" : 341.7, "y" : 172.62103839219707879238},{"x" : 345.52, "y" : 168.47229756143201484520},{"x" : 349.34, "y" : 164.41883185539018086274},{"x" : 353.16, "y" : 160.46524799021381113562},{"x" : 356.98, "y" : 156.61615268204502626759},{"x" : 360.8, "y" : 152.87615264702674267028},{"x" : 364.62, "y" : 149.24985460130142200796},{"x" : 368.44, "y" : 145.74186526101073013706},{"x" : 372.26, "y" : 142.35679134229769715603},{"x" : 376.08, "y" : 139.09923956130432998179},{"x" : 379.9, "y" : 135.97381663417320396547},{"x" : 383.72, "y" : 132.98512927704689445818},{"x" : 387.54, "y" : 130.13778420606774943735},{"x" : 391.36, "y" : 127.43638813737743475940},{"x" : 395.18, "y" : 124.88554778711932158330},{"x" : 399, "y" : 122.48986987143518945231}]; data_chart_name[46770] = "50Hz"; data_chart_area[46770] = new Array(); if ((data_chart[46770][0].x != undefined && parseFloat(data_chart[46770][0].x))) { var a_before = parseFloat(data_chart[46770][0].y) / (parseFloat(data_chart[46770][0].x) * parseFloat(data_chart[46770][0].x)); var append_before = ''; for(var b = 0; b <= 10; b++) { var _x = (b * data_chart[46770][0].x) / 10; var _y = _x * _x * a_before; data_chart_area[46770].push({x: _x, y: _y}); } } var last_index = data_chart[46770].length; for(var b = 0; b < last_index; b++) { data_chart_area[46770].push(data_chart[46770][b]); } last_index = last_index - 1; if (data_chart[46770][last_index].y != undefined && parseFloat(data_chart[46770][last_index].y) > 5) { var a_after = parseFloat(data_chart[46770][last_index].y) / (parseFloat(data_chart[46770][last_index].x) * parseFloat(data_chart[46770][last_index].x)); for(var b = 10; b >= 0; b--) { var _x = (b * data_chart[46770][last_index].x) / 10; var _y = _x * _x * a_after; data_chart_area[46770].push({x: _x, y: _y}); } } var dataset_46770 = [{"x" : 17, "y" : 385.20571235785200769897},{"x" : 20.82, "y" : 389.79613342604886838672},{"x" : 24.64, "y" : 394.09025874686574297812},{"x" : 28.46, "y" : 398.09269503644520682428},{"x" : 32.28, "y" : 401.80804901092966474607},{"x" : 36.1, "y" : 405.24092738646135103409},{"x" : 39.92, "y" : 408.39593687918289788286},{"x" : 43.74, "y" : 411.27768420523642589615},{"x" : 47.56, "y" : 413.89077608076451042507},{"x" : 51.38, "y" : 416.23981922190944260365},{"x" : 55.2, "y" : 418.32942034481357040931},{"x" : 59.02, "y" : 420.16418616561946919319},{"x" : 62.84, "y" : 421.74872340046931640245},{"x" : 66.66, "y" : 423.08763876550557370138},{"x" : 70.48, "y" : 424.18553897687075959766},{"x" : 74.3, "y" : 425.04703075070710838190},{"x" : 78.12, "y" : 425.67672080315702487496},{"x" : 81.94, "y" : 426.07921585036285705428},{"x" : 85.76, "y" : 426.25912260846718027096},{"x" : 89.58, "y" : 426.22104779361217197220},{"x" : 93.4, "y" : 425.96959812194029382226},{"x" : 97.22, "y" : 425.50938030959400748543},{"x" : 101.04, "y" : 424.84500107271566093914},{"x" : 104.86, "y" : 423.98106712744760216083},{"x" : 108.68, "y" : 422.92218518993212228452},{"x" : 112.5, "y" : 421.67296197631185350474},{"x" : 116.32, "y" : 420.23800420272897326868},{"x" : 120.14, "y" : 418.62191858532600008402},{"x" : 123.96, "y" : 416.82931184024533877164},{"x" : 127.78, "y" : 414.86479068362928046554},{"x" : 131.6, "y" : 412.73296183162005945633},{"x" : 135.42, "y" : 410.43843200036047846879},{"x" : 139.24, "y" : 407.98580790599254441986},{"x" : 143.06, "y" : 405.37969626465871897381},{"x" : 146.88, "y" : 402.62470379250163432516},{"x" : 150.7, "y" : 399.72543720566352476453},{"x" : 154.52, "y" : 396.68650322028679511277},{"x" : 158.34, "y" : 393.51250855251367966048},{"x" : 162.16, "y" : 390.20805991848669691535},{"x" : 165.98, "y" : 386.77776403434808116799},{"x" : 169.8, "y" : 383.22622761624057829977},{"x" : 173.62, "y" : 379.55805738030630891444},{"x" : 177.44, "y" : 375.77786004268773467629},{"x" : 181.26, "y" : 371.89024231952726040618},{"x" : 185.08, "y" : 367.89981092696712039469},{"x" : 188.9, "y" : 363.81117258114988999296},{"x" : 192.72, "y" : 359.62893399821786033499},{"x" : 196.54, "y" : 355.35770189431337939823},{"x" : 200.36, "y" : 351.00208298557902253378},{"x" : 204.18, "y" : 346.56668398815702403226},{"x" : 208, "y" : 342.05611161818973187110},{"x" : 211.82, "y" : 337.47497259181966455799},{"x" : 215.64, "y" : 332.82787362518905638353},{"x" : 219.46, "y" : 328.11942143444042585543},{"x" : 223.28, "y" : 323.35422273571606410769},{"x" : 227.1, "y" : 318.53688424515860333486},{"x" : 230.92, "y" : 313.67201267891027782753},{"x" : 234.74, "y" : 308.76421475311332187630},{"x" : 238.56, "y" : 303.81809718391025398887},{"x" : 242.38, "y" : 298.83826668744336529926},{"x" : 246.2, "y" : 293.82932997985500378491},{"x" : 250.02, "y" : 288.79589377728791532718},{"x" : 253.84, "y" : 283.74256479588416368642},{"x" : 257.66, "y" : 278.67394975178638105717},{"x" : 261.48, "y" : 273.59465536113663119977},{"x" : 265.3, "y" : 268.50928834007754630875},{"x" : 269.12, "y" : 263.42245540475153120497},{"x" : 272.94, "y" : 258.33876327130070649218},{"x" : 276.76, "y" : 253.26281865586776120836},{"x" : 280.58, "y" : 248.19922827459492964408},{"x" : 284.4, "y" : 243.15259884362461662022},{"x" : 288.22, "y" : 238.12753707909911327079},{"x" : 292.04, "y" : 233.12864969716122232057},{"x" : 295.86, "y" : 228.16054341395266646941},{"x" : 299.68, "y" : 223.22782494561636212893},{"x" : 303.5, "y" : 218.33510100829448674631},{"x" : 307.32, "y" : 213.48697831812950198582},{"x" : 311.14, "y" : 208.68806359126386951175},{"x" : 314.96, "y" : 203.94296354383970992785},{"x" : 318.78, "y" : 199.25628489199959858524},{"x" : 322.6, "y" : 194.63263435188594030478},{"x" : 326.42, "y" : 190.07661863964102622049},{"x" : 330.24, "y" : 185.59284447140726115322},{"x" : 334.06, "y" : 181.18591856332716361067},{"x" : 337.88, "y" : 176.86044763154302472685},{"x" : 341.7, "y" : 172.62103839219707879238},{"x" : 345.52, "y" : 168.47229756143201484520},{"x" : 349.34, "y" : 164.41883185539018086274},{"x" : 353.16, "y" : 160.46524799021381113562},{"x" : 356.98, "y" : 156.61615268204502626759},{"x" : 360.8, "y" : 152.87615264702674267028},{"x" : 364.62, "y" : 149.24985460130142200796},{"x" : 368.44, "y" : 145.74186526101073013706},{"x" : 372.26, "y" : 142.35679134229769715603},{"x" : 376.08, "y" : 139.09923956130432998179},{"x" : 379.9, "y" : 135.97381663417320396547},{"x" : 383.72, "y" : 132.98512927704689445818},{"x" : 387.54, "y" : 130.13778420606774943735},{"x" : 391.36, "y" : 127.43638813737743475940},{"x" : 395.18, "y" : 124.88554778711932158330},{"x" : 399, "y" : 122.48986987143518945231}]; var dataset_area_46770 = data_chart_area[46770]; svg.append("path") .attr("transform", "translate(0, 20)") .datum(dataset_area_46770) .attr("class", "area") .attr("id", "area_35132") .style('fill-opacity', 0) .attr("fill", "#00427a") .on('mouseover', function(d, i) { selectItemGraph(35132) }) .attr("d", area); svg.append("path") .attr("transform", "translate(0, 20)") .attr("id", "path_35132") .datum(dataset_46770) .attr("class", "line") .attr("d", line); diameterCalculating = 140; paramsPresureA = [509.5555514094692,-0.22803620829636853,0.0016075903684790607,-2.437269775363554e-6]; if (is_total) { paramsPresureA[2] += getPressureDynamic_A2(diameterCalculating); } Arr_paramsA.push(paramsPresureA); Arr_paramsID.push(35135); data_chart[46768] = [{"x" : 52, "y" : 502.23016948377693324801},{"x" : 58.66, "y" : 501.89096066702370535495},{"x" : 65.32, "y" : 501.67364530096995167696},{"x" : 71.98, "y" : 501.57390344734841391983},{"x" : 78.64, "y" : 501.58741516789160641565},{"x" : 85.3, "y" : 501.70986052433221402680},{"x" : 91.96, "y" : 501.93691957840280792880},{"x" : 98.62, "y" : 502.26427239183595929717},{"x" : 105.28, "y" : 502.68759902636435299428},{"x" : 111.94, "y" : 503.20257954372050335223},{"x" : 118.6, "y" : 503.80489400563709523340},{"x" : 125.26, "y" : 504.49022247384664296987},{"x" : 131.92, "y" : 505.25424501008183142403},{"x" : 138.58, "y" : 506.09264167607523177139},{"x" : 145.24, "y" : 507.00109253355947203090},{"x" : 151.9, "y" : 507.97527764426718022150},{"x" : 158.56, "y" : 509.01087706993087067531},{"x" : 165.22, "y" : 510.10357087228311456784},{"x" : 171.88, "y" : 511.24903911305676729171},{"x" : 178.54, "y" : 512.44296185398422949220},{"x" : 185.2, "y" : 513.68101915679812918825},{"x" : 191.86, "y" : 514.95889108323103755538},{"x" : 198.52, "y" : 516.27225769501558261254},{"x" : 205.18, "y" : 517.61679905388450606551},{"x" : 211.84, "y" : 518.98819522157032224641},{"x" : 218.5, "y" : 520.38212625980554548732},{"x" : 225.16, "y" : 521.79427223032291749405},{"x" : 231.82, "y" : 523.22031319485495259869},{"x" : 238.48, "y" : 524.65592921513427882019},{"x" : 245.14, "y" : 526.09680035289352417749},{"x" : 251.8, "y" : 527.53860666986520300270},{"x" : 258.46, "y" : 528.97702822778205700160},{"x" : 265.12, "y" : 530.40774508837671419315},{"x" : 271.78, "y" : 531.82643731338157522259},{"x" : 278.44, "y" : 533.22878496452949548257},{"x" : 285.1, "y" : 534.61046810355276193150},{"x" : 291.76, "y" : 535.96716679218422996200},{"x" : 298.42, "y" : 537.29456109215652759303},{"x" : 305.08, "y" : 538.58833106520216915669},{"x" : 311.74, "y" : 539.84415677305378267192},{"x" : 318.4, "y" : 541.05771827744388247083},{"x" : 325.06, "y" : 542.22469564010521025921},{"x" : 331.72, "y" : 543.34076892277028036915},{"x" : 338.38, "y" : 544.40161818717172081961},{"x" : 345.04, "y" : 545.40292349504215962952},{"x" : 351.7, "y" : 546.34036490811422481784},{"x" : 358.36, "y" : 547.20962248812043071666},{"x" : 365.02, "y" : 548.00637629679340534494},{"x" : 371.68, "y" : 548.72630639586577672162},{"x" : 378.34, "y" : 549.36509284707028655248},{"x" : 385, "y" : 549.91841571213944916963},{"x" : 391.66, "y" : 550.38195505280566521833},{"x" : 398.32, "y" : 550.75139093080179009121},{"x" : 404.98, "y" : 551.02240340786033812037},{"x" : 411.64, "y" : 551.19067254571382363793},{"x" : 418.3, "y" : 551.25187840609510203649},{"x" : 424.96, "y" : 551.20170105073646027449},{"x" : 431.62, "y" : 551.03582054137086743140},{"x" : 438.28, "y" : 550.74991693973049677879},{"x" : 444.94, "y" : 550.33967030754831739614},{"x" : 451.6, "y" : 549.80076070655684361554},{"x" : 458.26, "y" : 549.12886819848858976911},{"x" : 464.92, "y" : 548.31967284507629756263},{"x" : 471.58, "y" : 547.36885470805236764136},{"x" : 478.24, "y" : 546.27209384914965539792},{"x" : 484.9, "y" : 545.02507033010056147759},{"x" : 491.56, "y" : 543.62346421263782758615},{"x" : 498.22, "y" : 542.06295555849396805570},{"x" : 504.88, "y" : 540.33922442940161090519},{"x" : 511.54, "y" : 538.44795088709327046672},{"x" : 518.2, "y" : 536.38481499330168844608},{"x" : 524.86, "y" : 534.14549680975949286221},{"x" : 531.52, "y" : 531.72567639819919804722},{"x" : 538.18, "y" : 529.12103382035354570689},{"x" : 544.84, "y" : 526.32724913795493648649},{"x" : 551.5, "y" : 523.34000241273611209181},{"x" : 558.16, "y" : 520.15497370642958685494},{"x" : 564.82, "y" : 516.76784308076810248167},{"x" : 571.48, "y" : 513.17429059748405961727},{"x" : 578.14, "y" : 509.36999631831031365437},{"x" : 584.8, "y" : 505.35064030497932208164},{"x" : 591.46, "y" : 501.11190261922371291803},{"x" : 598.12, "y" : 496.64946332277600049565},{"x" : 604.78, "y" : 491.95900247736892652028},{"x" : 611.44, "y" : 487.03620014473517585429},{"x" : 618.1, "y" : 481.87673638660703545611},{"x" : 624.76, "y" : 476.47629126471736071835},{"x" : 631.42, "y" : 470.83054484079866597313},{"x" : 638.08, "y" : 464.93517717658357923938},{"x" : 644.74, "y" : 458.78586833380484222289},{"x" : 651.4, "y" : 452.37829837419485556893},{"x" : 658.06, "y" : 445.70814735948613360961},{"x" : 664.72, "y" : 438.77109535141187279805},{"x" : 671.38, "y" : 431.56282241170390534535},{"x" : 678.04, "y" : 424.07900860209520033095},{"x" : 684.7, "y" : 416.31533398431849946064},{"x" : 691.36, "y" : 408.26747862010631706653},{"x" : 698.02, "y" : 399.93112257119116748072},{"x" : 704.68, "y" : 391.30194589930522397481},{"x" : 711.34, "y" : 382.37562866618202406244},{"x" : 718, "y" : 373.14785093355362732837}]; data_chart_name[46768] = "50Hz"; data_chart_area[46768] = new Array(); if ((data_chart[46768][0].x != undefined && parseFloat(data_chart[46768][0].x))) { var a_before = parseFloat(data_chart[46768][0].y) / (parseFloat(data_chart[46768][0].x) * parseFloat(data_chart[46768][0].x)); var append_before = ''; for(var b = 0; b <= 10; b++) { var _x = (b * data_chart[46768][0].x) / 10; var _y = _x * _x * a_before; data_chart_area[46768].push({x: _x, y: _y}); } } var last_index = data_chart[46768].length; for(var b = 0; b < last_index; b++) { data_chart_area[46768].push(data_chart[46768][b]); } last_index = last_index - 1; if (data_chart[46768][last_index].y != undefined && parseFloat(data_chart[46768][last_index].y) > 5) { var a_after = parseFloat(data_chart[46768][last_index].y) / (parseFloat(data_chart[46768][last_index].x) * parseFloat(data_chart[46768][last_index].x)); for(var b = 10; b >= 0; b--) { var _x = (b * data_chart[46768][last_index].x) / 10; var _y = _x * _x * a_after; data_chart_area[46768].push({x: _x, y: _y}); } } var dataset_46768 = [{"x" : 52, "y" : 502.23016948377693324801},{"x" : 58.66, "y" : 501.89096066702370535495},{"x" : 65.32, "y" : 501.67364530096995167696},{"x" : 71.98, "y" : 501.57390344734841391983},{"x" : 78.64, "y" : 501.58741516789160641565},{"x" : 85.3, "y" : 501.70986052433221402680},{"x" : 91.96, "y" : 501.93691957840280792880},{"x" : 98.62, "y" : 502.26427239183595929717},{"x" : 105.28, "y" : 502.68759902636435299428},{"x" : 111.94, "y" : 503.20257954372050335223},{"x" : 118.6, "y" : 503.80489400563709523340},{"x" : 125.26, "y" : 504.49022247384664296987},{"x" : 131.92, "y" : 505.25424501008183142403},{"x" : 138.58, "y" : 506.09264167607523177139},{"x" : 145.24, "y" : 507.00109253355947203090},{"x" : 151.9, "y" : 507.97527764426718022150},{"x" : 158.56, "y" : 509.01087706993087067531},{"x" : 165.22, "y" : 510.10357087228311456784},{"x" : 171.88, "y" : 511.24903911305676729171},{"x" : 178.54, "y" : 512.44296185398422949220},{"x" : 185.2, "y" : 513.68101915679812918825},{"x" : 191.86, "y" : 514.95889108323103755538},{"x" : 198.52, "y" : 516.27225769501558261254},{"x" : 205.18, "y" : 517.61679905388450606551},{"x" : 211.84, "y" : 518.98819522157032224641},{"x" : 218.5, "y" : 520.38212625980554548732},{"x" : 225.16, "y" : 521.79427223032291749405},{"x" : 231.82, "y" : 523.22031319485495259869},{"x" : 238.48, "y" : 524.65592921513427882019},{"x" : 245.14, "y" : 526.09680035289352417749},{"x" : 251.8, "y" : 527.53860666986520300270},{"x" : 258.46, "y" : 528.97702822778205700160},{"x" : 265.12, "y" : 530.40774508837671419315},{"x" : 271.78, "y" : 531.82643731338157522259},{"x" : 278.44, "y" : 533.22878496452949548257},{"x" : 285.1, "y" : 534.61046810355276193150},{"x" : 291.76, "y" : 535.96716679218422996200},{"x" : 298.42, "y" : 537.29456109215652759303},{"x" : 305.08, "y" : 538.58833106520216915669},{"x" : 311.74, "y" : 539.84415677305378267192},{"x" : 318.4, "y" : 541.05771827744388247083},{"x" : 325.06, "y" : 542.22469564010521025921},{"x" : 331.72, "y" : 543.34076892277028036915},{"x" : 338.38, "y" : 544.40161818717172081961},{"x" : 345.04, "y" : 545.40292349504215962952},{"x" : 351.7, "y" : 546.34036490811422481784},{"x" : 358.36, "y" : 547.20962248812043071666},{"x" : 365.02, "y" : 548.00637629679340534494},{"x" : 371.68, "y" : 548.72630639586577672162},{"x" : 378.34, "y" : 549.36509284707028655248},{"x" : 385, "y" : 549.91841571213944916963},{"x" : 391.66, "y" : 550.38195505280566521833},{"x" : 398.32, "y" : 550.75139093080179009121},{"x" : 404.98, "y" : 551.02240340786033812037},{"x" : 411.64, "y" : 551.19067254571382363793},{"x" : 418.3, "y" : 551.25187840609510203649},{"x" : 424.96, "y" : 551.20170105073646027449},{"x" : 431.62, "y" : 551.03582054137086743140},{"x" : 438.28, "y" : 550.74991693973049677879},{"x" : 444.94, "y" : 550.33967030754831739614},{"x" : 451.6, "y" : 549.80076070655684361554},{"x" : 458.26, "y" : 549.12886819848858976911},{"x" : 464.92, "y" : 548.31967284507629756263},{"x" : 471.58, "y" : 547.36885470805236764136},{"x" : 478.24, "y" : 546.27209384914965539792},{"x" : 484.9, "y" : 545.02507033010056147759},{"x" : 491.56, "y" : 543.62346421263782758615},{"x" : 498.22, "y" : 542.06295555849396805570},{"x" : 504.88, "y" : 540.33922442940161090519},{"x" : 511.54, "y" : 538.44795088709327046672},{"x" : 518.2, "y" : 536.38481499330168844608},{"x" : 524.86, "y" : 534.14549680975949286221},{"x" : 531.52, "y" : 531.72567639819919804722},{"x" : 538.18, "y" : 529.12103382035354570689},{"x" : 544.84, "y" : 526.32724913795493648649},{"x" : 551.5, "y" : 523.34000241273611209181},{"x" : 558.16, "y" : 520.15497370642958685494},{"x" : 564.82, "y" : 516.76784308076810248167},{"x" : 571.48, "y" : 513.17429059748405961727},{"x" : 578.14, "y" : 509.36999631831031365437},{"x" : 584.8, "y" : 505.35064030497932208164},{"x" : 591.46, "y" : 501.11190261922371291803},{"x" : 598.12, "y" : 496.64946332277600049565},{"x" : 604.78, "y" : 491.95900247736892652028},{"x" : 611.44, "y" : 487.03620014473517585429},{"x" : 618.1, "y" : 481.87673638660703545611},{"x" : 624.76, "y" : 476.47629126471736071835},{"x" : 631.42, "y" : 470.83054484079866597313},{"x" : 638.08, "y" : 464.93517717658357923938},{"x" : 644.74, "y" : 458.78586833380484222289},{"x" : 651.4, "y" : 452.37829837419485556893},{"x" : 658.06, "y" : 445.70814735948613360961},{"x" : 664.72, "y" : 438.77109535141187279805},{"x" : 671.38, "y" : 431.56282241170390534535},{"x" : 678.04, "y" : 424.07900860209520033095},{"x" : 684.7, "y" : 416.31533398431849946064},{"x" : 691.36, "y" : 408.26747862010631706653},{"x" : 698.02, "y" : 399.93112257119116748072},{"x" : 704.68, "y" : 391.30194589930522397481},{"x" : 711.34, "y" : 382.37562866618202406244},{"x" : 718, "y" : 373.14785093355362732837}]; var dataset_area_46768 = data_chart_area[46768]; svg.append("path") .attr("transform", "translate(0, 20)") .datum(dataset_area_46768) .attr("class", "area") .attr("id", "area_35135") .style('fill-opacity', 0) .attr("fill", "#00427a") .on('mouseover', function(d, i) { selectItemGraph(35135) }) .attr("d", area); svg.append("path") .attr("transform", "translate(0, 20)") .attr("id", "path_35135") .datum(dataset_46768) .attr("class", "line") .attr("d", line); diameterCalculating = 180; paramsPresureA = [736.3260097058641,0.10416345771576503,-0.00017490205365555184,3.885338507250575e-9]; if (is_total) { paramsPresureA[2] += getPressureDynamic_A2(diameterCalculating); } Arr_paramsA.push(paramsPresureA); Arr_paramsID.push(35133); data_chart[46767] = [{"x" : 38, "y" : 740.13511469805473552697},{"x" : 54.35, "y" : 741.68246136954917346884},{"x" : 70.7, "y" : 743.17486074649787042290},{"x" : 87.05, "y" : 744.61241471932805779943},{"x" : 103.4, "y" : 745.99522517846685332188},{"x" : 119.75, "y" : 747.32339401434182946105},{"x" : 136.1, "y" : 748.59702311738044500089},{"x" : 152.45, "y" : 749.81621437800981766486},{"x" : 168.8, "y" : 750.98106968665751992376},{"x" : 185.15, "y" : 752.09169093375055581419},{"x" : 201.5, "y" : 753.14818000971649780695},{"x" : 217.85, "y" : 754.15063880498257731233},{"x" : 234.2, "y" : 755.09916920997636680113},{"x" : 250.55, "y" : 755.99387311512487030996},{"x" : 266.9, "y" : 756.83485241085577399645},{"x" : 283.25, "y" : 757.62220898759608189721},{"x" : 299.6, "y" : 758.35604473577370754356},{"x" : 315.95, "y" : 759.03646154581531391159},{"x" : 332.3, "y" : 759.66356130814858715894},{"x" : 348.65, "y" : 760.23744591320075869589},{"x" : 365, "y" : 760.75821725139940099325},{"x" : 381.35, "y" : 761.22597721317151808762},{"x" : 397.7, "y" : 761.64082768894479613664},{"x" : 414.05, "y" : 762.00287056914646655059},{"x" : 430.4, "y" : 762.31220774420364705293},{"x" : 446.75, "y" : 762.56894110454391011444},{"x" : 463.1, "y" : 762.77317254059471451910},{"x" : 479.45, "y" : 762.92500394278306430351},{"x" : 495.8, "y" : 763.02453720153653193847},{"x" : 512.15, "y" : 763.07187420728234883427},{"x" : 528.5, "y" : 763.06711685044797377486},{"x" : 544.85, "y" : 763.01036702146063817054},{"x" : 561.2, "y" : 762.90172661074802817893},{"x" : 577.55, "y" : 762.74129750873703414982},{"x" : 593.9, "y" : 762.52918160585511486715},{"x" : 610.25, "y" : 762.26548079252972911490},{"x" : 626.6, "y" : 761.95029695918810830335},{"x" : 642.95, "y" : 761.58373199625759752962},{"x" : 659.3, "y" : 761.16588779416576926451},{"x" : 675.65, "y" : 760.69686624333974123147},{"x" : 692, "y" : 760.17676923420697221445},{"x" : 708.35, "y" : 759.60569865719469362375},{"x" : 724.7, "y" : 758.98375640273036424333},{"x" : 741.05, "y" : 758.31104436124110179662},{"x" : 757.4, "y" : 757.58766442315459244128},{"x" : 773.75, "y" : 756.81371847889784021390},{"x" : 790.1, "y" : 755.98930841889853127213},{"x" : 806.45, "y" : 755.11453613358366965258},{"x" : 822.8, "y" : 754.18950351338105519972},{"x" : 839.15, "y" : 753.21431244871746457648},{"x" : 855.5, "y" : 752.18906483002069762733},{"x" : 871.85, "y" : 751.11386254771787207574},{"x" : 888.2, "y" : 749.98880749223633301881},{"x" : 904.55, "y" : 748.81400155400353924051},{"x" : 920.9, "y" : 747.58954662344672215113},{"x" : 937.25, "y" : 746.31554459099334053462},{"x" : 953.6, "y" : 744.99209734707062580128},{"x" : 969.95, "y" : 743.61930678210592304822},{"x" : 986.3, "y" : 742.19727478652669105941},{"x" : 1002.65, "y" : 740.72610325076016124513},{"x" : 1019, "y" : 739.20589406523379238934},{"x" : 1035.35, "y" : 737.63674912037481590232},{"x" : 1051.7, "y" : 736.01877030661057688121},{"x" : 1068.05, "y" : 734.35205951436864779680},{"x" : 1084.4, "y" : 732.63671863407614637254},{"x" : 1100.75, "y" : 730.87284955616030401870},{"x" : 1117.1, "y" : 729.06055417104869320610},{"x" : 1133.45, "y" : 727.19993436916865903186},{"x" : 1149.8, "y" : 725.29109204094731921941},{"x" : 1166.15, "y" : 723.33412907681224623957},{"x" : 1182.5, "y" : 721.32914736719078518945},{"x" : 1198.85, "y" : 719.27624880251028116618},{"x" : 1215.2, "y" : 717.17553527319785189320},{"x" : 1231.55, "y" : 715.02710866968095615448},{"x" : 1247.9, "y" : 712.83107088238705273397},{"x" : 1264.25, "y" : 710.58752380174348672881},{"x" : 1280.6, "y" : 708.29656931817737586243},{"x" : 1296.95, "y" : 705.95830932211629260564},{"x" : 1313.3, "y" : 703.57284570398758205556},{"x" : 1329.65, "y" : 701.14028035421836193564},{"x" : 1346, "y" : 698.66071516323631840351},{"x" : 1362.35, "y" : 696.13425202146856918262},{"x" : 1378.7, "y" : 693.56099281934234568325},{"x" : 1395.05, "y" : 690.94103944728522037622},{"x" : 1411.4, "y" : 688.27449379572453835863},{"x" : 1427.75, "y" : 685.56145775508741735393},{"x" : 1444.1, "y" : 682.80203321580131614610},{"x" : 1460.45, "y" : 679.99632206829380720592},{"x" : 1476.8, "y" : 677.14442620299200825684},{"x" : 1493.15, "y" : 674.24644751032326439599},{"x" : 1509.5, "y" : 671.30248788071480703366},{"x" : 1525.85, "y" : 668.31264920459420864063},{"x" : 1542.2, "y" : 665.27703337238881431404},{"x" : 1558.55, "y" : 662.19574227452574177732},{"x" : 1574.9, "y" : 659.06887780143279087497},{"x" : 1591.25, "y" : 655.89654184353673826990},{"x" : 1607.6, "y" : 652.67883629126527011977},{"x" : 1623.95, "y" : 649.41586303504550414800},{"x" : 1640.3, "y" : 646.10772396530489913857},{"x" : 1656.65, "y" : 642.75452097247102756228},{"x" : 1673, "y" : 639.35635594697089345573}]; data_chart_name[46767] = "50Hz"; data_chart_area[46767] = new Array(); if ((data_chart[46767][0].x != undefined && parseFloat(data_chart[46767][0].x))) { var a_before = parseFloat(data_chart[46767][0].y) / (parseFloat(data_chart[46767][0].x) * parseFloat(data_chart[46767][0].x)); var append_before = ''; for(var b = 0; b <= 10; b++) { var _x = (b * data_chart[46767][0].x) / 10; var _y = _x * _x * a_before; data_chart_area[46767].push({x: _x, y: _y}); } } var last_index = data_chart[46767].length; for(var b = 0; b < last_index; b++) { data_chart_area[46767].push(data_chart[46767][b]); } last_index = last_index - 1; if (data_chart[46767][last_index].y != undefined && parseFloat(data_chart[46767][last_index].y) > 5) { var a_after = parseFloat(data_chart[46767][last_index].y) / (parseFloat(data_chart[46767][last_index].x) * parseFloat(data_chart[46767][last_index].x)); for(var b = 10; b >= 0; b--) { var _x = (b * data_chart[46767][last_index].x) / 10; var _y = _x * _x * a_after; data_chart_area[46767].push({x: _x, y: _y}); } } var dataset_46767 = [{"x" : 38, "y" : 740.13511469805473552697},{"x" : 54.35, "y" : 741.68246136954917346884},{"x" : 70.7, "y" : 743.17486074649787042290},{"x" : 87.05, "y" : 744.61241471932805779943},{"x" : 103.4, "y" : 745.99522517846685332188},{"x" : 119.75, "y" : 747.32339401434182946105},{"x" : 136.1, "y" : 748.59702311738044500089},{"x" : 152.45, "y" : 749.81621437800981766486},{"x" : 168.8, "y" : 750.98106968665751992376},{"x" : 185.15, "y" : 752.09169093375055581419},{"x" : 201.5, "y" : 753.14818000971649780695},{"x" : 217.85, "y" : 754.15063880498257731233},{"x" : 234.2, "y" : 755.09916920997636680113},{"x" : 250.55, "y" : 755.99387311512487030996},{"x" : 266.9, "y" : 756.83485241085577399645},{"x" : 283.25, "y" : 757.62220898759608189721},{"x" : 299.6, "y" : 758.35604473577370754356},{"x" : 315.95, "y" : 759.03646154581531391159},{"x" : 332.3, "y" : 759.66356130814858715894},{"x" : 348.65, "y" : 760.23744591320075869589},{"x" : 365, "y" : 760.75821725139940099325},{"x" : 381.35, "y" : 761.22597721317151808762},{"x" : 397.7, "y" : 761.64082768894479613664},{"x" : 414.05, "y" : 762.00287056914646655059},{"x" : 430.4, "y" : 762.31220774420364705293},{"x" : 446.75, "y" : 762.56894110454391011444},{"x" : 463.1, "y" : 762.77317254059471451910},{"x" : 479.45, "y" : 762.92500394278306430351},{"x" : 495.8, "y" : 763.02453720153653193847},{"x" : 512.15, "y" : 763.07187420728234883427},{"x" : 528.5, "y" : 763.06711685044797377486},{"x" : 544.85, "y" : 763.01036702146063817054},{"x" : 561.2, "y" : 762.90172661074802817893},{"x" : 577.55, "y" : 762.74129750873703414982},{"x" : 593.9, "y" : 762.52918160585511486715},{"x" : 610.25, "y" : 762.26548079252972911490},{"x" : 626.6, "y" : 761.95029695918810830335},{"x" : 642.95, "y" : 761.58373199625759752962},{"x" : 659.3, "y" : 761.16588779416576926451},{"x" : 675.65, "y" : 760.69686624333974123147},{"x" : 692, "y" : 760.17676923420697221445},{"x" : 708.35, "y" : 759.60569865719469362375},{"x" : 724.7, "y" : 758.98375640273036424333},{"x" : 741.05, "y" : 758.31104436124110179662},{"x" : 757.4, "y" : 757.58766442315459244128},{"x" : 773.75, "y" : 756.81371847889784021390},{"x" : 790.1, "y" : 755.98930841889853127213},{"x" : 806.45, "y" : 755.11453613358366965258},{"x" : 822.8, "y" : 754.18950351338105519972},{"x" : 839.15, "y" : 753.21431244871746457648},{"x" : 855.5, "y" : 752.18906483002069762733},{"x" : 871.85, "y" : 751.11386254771787207574},{"x" : 888.2, "y" : 749.98880749223633301881},{"x" : 904.55, "y" : 748.81400155400353924051},{"x" : 920.9, "y" : 747.58954662344672215113},{"x" : 937.25, "y" : 746.31554459099334053462},{"x" : 953.6, "y" : 744.99209734707062580128},{"x" : 969.95, "y" : 743.61930678210592304822},{"x" : 986.3, "y" : 742.19727478652669105941},{"x" : 1002.65, "y" : 740.72610325076016124513},{"x" : 1019, "y" : 739.20589406523379238934},{"x" : 1035.35, "y" : 737.63674912037481590232},{"x" : 1051.7, "y" : 736.01877030661057688121},{"x" : 1068.05, "y" : 734.35205951436864779680},{"x" : 1084.4, "y" : 732.63671863407614637254},{"x" : 1100.75, "y" : 730.87284955616030401870},{"x" : 1117.1, "y" : 729.06055417104869320610},{"x" : 1133.45, "y" : 727.19993436916865903186},{"x" : 1149.8, "y" : 725.29109204094731921941},{"x" : 1166.15, "y" : 723.33412907681224623957},{"x" : 1182.5, "y" : 721.32914736719078518945},{"x" : 1198.85, "y" : 719.27624880251028116618},{"x" : 1215.2, "y" : 717.17553527319785189320},{"x" : 1231.55, "y" : 715.02710866968095615448},{"x" : 1247.9, "y" : 712.83107088238705273397},{"x" : 1264.25, "y" : 710.58752380174348672881},{"x" : 1280.6, "y" : 708.29656931817737586243},{"x" : 1296.95, "y" : 705.95830932211629260564},{"x" : 1313.3, "y" : 703.57284570398758205556},{"x" : 1329.65, "y" : 701.14028035421836193564},{"x" : 1346, "y" : 698.66071516323631840351},{"x" : 1362.35, "y" : 696.13425202146856918262},{"x" : 1378.7, "y" : 693.56099281934234568325},{"x" : 1395.05, "y" : 690.94103944728522037622},{"x" : 1411.4, "y" : 688.27449379572453835863},{"x" : 1427.75, "y" : 685.56145775508741735393},{"x" : 1444.1, "y" : 682.80203321580131614610},{"x" : 1460.45, "y" : 679.99632206829380720592},{"x" : 1476.8, "y" : 677.14442620299200825684},{"x" : 1493.15, "y" : 674.24644751032326439599},{"x" : 1509.5, "y" : 671.30248788071480703366},{"x" : 1525.85, "y" : 668.31264920459420864063},{"x" : 1542.2, "y" : 665.27703337238881431404},{"x" : 1558.55, "y" : 662.19574227452574177732},{"x" : 1574.9, "y" : 659.06887780143279087497},{"x" : 1591.25, "y" : 655.89654184353673826990},{"x" : 1607.6, "y" : 652.67883629126527011977},{"x" : 1623.95, "y" : 649.41586303504550414800},{"x" : 1640.3, "y" : 646.10772396530489913857},{"x" : 1656.65, "y" : 642.75452097247102756228},{"x" : 1673, "y" : 639.35635594697089345573}]; var dataset_area_46767 = data_chart_area[46767]; svg.append("path") .attr("transform", "translate(0, 20)") .datum(dataset_area_46767) .attr("class", "area") .attr("id", "area_35133") .style('fill-opacity', 0) .attr("fill", "#00427a") .on('mouseover', function(d, i) { selectItemGraph(35133) }) .attr("d", area); svg.append("path") .attr("transform", "translate(0, 20)") .attr("id", "path_35133") .datum(dataset_46767) .attr("class", "line") .attr("d", line); function enterFrame(x,y) { var iNearestHigher = _findNearestHigherPolynomial({x, y}, Arr_paramsA); var graph = Arr_paramsID[iNearestHigher]; selectItemGraph(graph); } function calcPolynomial(x, paramsA) { var ret = 0; var ratio = 1; for (var i = 0; i < paramsA.length; i++) { ret += paramsA[i] * Math.pow(x, i); } ret = ret * ratio; return ret; } function _findNearestHigherPolynomial(pointObj, Arr_paramsA) { var Arr_xrange = null; var idPolynomial = -1; var inputX = pointObj.x; var inputY = pointObj.y; var deltaY = undefined; for (var i = 0; i < Arr_paramsA.length; i++){ var searchInGraph = true; if (Array.isArray(Arr_xrange) && Arr_paramsA.length == Arr_xrange.length){ if (inputXArr_xrange[i].graphMax){ searchInGraph=false; console.log('searchInGraph', i, searchInGraph); } } var polynomialY = calcPolynomial(inputX, Arr_paramsA[i]) * 1; if ( searchInGraph && polynomialY>=inputY && (polynomialY-inputY MAXIMA Północ -GDYNIA", "|| tel. 58-667-00-07 || , 81-061 ul.Hutnicza 18A", "", "julian@maxima-polnoc.pl"]; aph[40086] = ["", "Graniczna 15, 62-007 Biskupice", "", "jakub@bud-went.com.pl"]; aph[40157] = ["Klimazbyt Łódź", "Piłsudskiego 092, 92-202 Łódź", "", "lodz@klimazbyt.pl"]; aph[40185] = ["", "Przemysłowa 11, 35-105 Rzeszów", "", "biuro@klimasystem.pl"]; aph[40356] = ["INWEST-KLIMA", " 0, 15-688 ", "", "ewa.hankowska@inwestklima.com.pl"]; aph[40439] = ["", "Produkcyjna 105 0, 15-680 Białystok", "", "termitech@termitech.com.pl"]; aph[40509] = ["PW Politerm-Izol Sp. z o.o.", "Przemysłowa 5B, 75-216 Koszalin", "", "lukasz.kaczynski@politerm-izol.com.pl"]; aph[40521] = ["", "Kunickiego 11 0, 95-200 Pabianice", "", "biuro@tramontana.net.pl"]; aph[40558] = ["IZOLA", "F. Ossendowskiego 4 0, 93-228 Łódź", "", "wentylacja@izola.pl"]; aph[40606] = ["DABROwent", "A. Krzywca 9, 85-862 BYDGOSZCZ", "", "kasia.dabrowska@dabrowent.pl"]; aph[40751] = ["", " 0, 15-688 ", "", "biuro@inwestklima.com.pl"]; aph[40784] = ["ANG", "Modlnica 315 0, 32-085 Modlnica", "", "biuro@ang.com.pl"]; aph[40790] = ["Dystrybucja Artykułów Technicznych Krzysztof Kubaiński", "ul. Tarnogajska 11-13, 50-512 Wrocław", "", "dat@dat.wroc.pl"]; aph[40844] = ["LEMAR S.J", "Bytomska 18 0, 42-672 Wieszowa", "", "joanna@lemar.pl"]; aph[40863] = ["", "LUBELSKA 36, 10-409 OLSZTYN", "", "olsztyn@klimazbyt.pl"]; aph[40905] = ["Luft-System", "ul. Mieszka I 82, 71-011 Szczecin", "", "biuro@luft-system.pl"]; aph[40912] = ["LEMAR Sp. J.", "Bytomska 18 18, 42-672 Wieszowa", "", "damian@lemar.pl"]; aph[40944] = ["Went-Dom Centrum Profesjonalnej Wentylacji", "Bartycka 26, 00-716 Warszawa", "", "went@went-dom.pl"]; aph[40999] = ["Venture", "Mokra 27 0, 05-092 Kiełpin", "", "mariusz.bialobrzewski@venture.pl"]; aph[41002] = ["MK-WENT Sp. Z o.o. Sp. K.", "Trakt Lubelski 195, 04-667 Warszawa", "", "piotr.kobosko@mkwent.com.pl"]; aph[41036] = ["", "Porfirowa 35, 32-067 Zalas", "", "michalkulpinski@wp.pl"]; aph[41078] = ["Dabrowent", "Krzywca 9, 85-862 Bydgoszcz", "", "magda.olszewska@dabrowent.pl"]; aph[41216] = ["PUH VECO", "Świerczewska 5 5, 71-066 Szczecin", "", "zakupy@veco.com.pl"]; aph[41305] = ["ANG Wentylacja Sp. z o.o.", "Częstochowska 26, 32-085 Modlnica", "", "patrycja.zieba@ang.com.pl"]; aph[93524] = ["BIMs Plus FHH Sp. Z o.o. Dolny Śląsk Sp.K.", "Klonowa 1, 55-200 Stanowice-Oława", "", "pawel.majdak@bimsplus.com.pl"]; aph[93540] = ["Venture Industries sp.z o.o.", "MOKRA 27, 05-092 Kiełpin", "", "izabela.morawska@venture.pl"]; aph[93751] = ["Venture Industries", "aaa 1, 11-111 aaaa", "", "karolina.kubesova@ventur.cz"]; aph[93784] = ["", "Karpia 21, 61-619 Poznań", "", "Roman.filipiak@venture.pl"]; aph[93894] = ["Amster Global", "Obrońców Modlina 9, 30-733 Kraków", "", "mostrowski@amster.pl"]; aph[94259] = ["CALDO-WENTYLACJA SP. Z O.O.", "BISKUPIŃSKA 14, 30-732 Kraków", "", "mariusz.biadun@caldo-wentylacja.pl"]; aph[94356] = ["Caldo-Wentylacja", "Hurtowa 2, 15-399 Białystok", "", "mariusz.bialystok@caldo.pl"]; aph[94357] = ["Caldo-Wentylacja", "Torowa 11, 08-110 Siedlce", "", "mariusz.siedlce@caldo.pl"]; aph[94358] = ["Caldo-Wentylacja", "Rapackiego 15, 20-150 Lublin", "", "mariusz.lublin@caldo.pl"]; aph[94359] = ["Caldo-Wentylacja", "Tartaczna 3, 26-600 Radom", "", "mariusz.radom@caldo.pl"]; aph[94360] = ["Caldo-Wentylacja", "Brandla 1, 30-732 Kraków", "", "mariusz.krakow@caldo.pl"]; aph[94361] = ["Caldo-Wentylacja", "Skrajna 78, 25-650 Kielce", "", "mariusz.kielce@caldo.pl"]; aph[94362] = ["Caldo-Wentylacja", "Szeligowska 42, 01-320 Warszawa", "", "mariusz.warszawa@caldo.pl"]; aph[94363] = ["Caldo-Wentylacja", "Magnacka 27, 08-180 Kowale", "", "mariusz.gdansk@caldo.pl"]; aph[94364] = ["Caldo-Wentylacja", "Orląt Lwowskich 145, 41-208 Sosnowiec", "", "mariusz.sosnowiec@caldo.pl"]; aph[94365] = ["Caldo-Wentylacja", "Św. Teresy 178, 91-222 Łódź", "", "mariusz.lodz@caldo.pl"]; aph[94366] = ["Caldo-Wentylacja", "Wapienna 6/8, 87-100 Toruń", "", "mariusz.torun@caldo.pl"]; aph[94367] = ["Caldo-Wentylacja", "Jerzmanowska 19, 54-530 Wrocław", "", "mariusz.wroclaw@caldo.pl"]; aph[94368] = ["Caldo-Wentylacja", "Kamiennogórska 22, 60-179 Poznań", "", "mariusz.poznan@caldo.pl"]; aph[94369] = ["Caldo-Wentylacja", "Struga 62-64, 70-784 Szczecin", "", "mariusz.szczecin@caldo.pl"]; function scale_round(value, step) { step || (step = 1.0); var inv = 1.0 / step; return Math.round(value * inv) / inv; } function scale_max(value) { value = parseInt(value); var v = value.toString(); var l = v.length; if (l <= 2) { if (value < 50) { return 50; } else { return 100; } } var p = l - 2; var s1 = ''; var s2 = ''; for (var i = 0; i < l; i++) { if (i >= p) { s2 += v[i]; } else { s1 += v[i]; } } s2 = parseInt(s2); if (s2 > 50) { s1 = parseInt(s1) + 1; s2 = '00'; } else { s2 = '50'; } s1 = s1.toString(); s = s1+''+s2; s = parseInt(s); return s; } function createChart(id, charts) { var div = "product_"+id; charts = charts.split(";"); var data_x = 0; var data_y = 0; for (var g = 0; g < charts.length; g++) { var data = data_chart[charts[g]]; console.log(data); Object.keys(data).forEach(function (item) { if (data[item].x > data_x) { data_x = data[item].x } if (data[item].y > data_y) { data_y = data[item].y } }); } data_x = scale_max(data_x); data_y = scale_max(data_y); var x1min = 0; var x1max = data_x; var x2min = 0; var x2max = data_x/3600; var y1min = 0; var y1max = data_y; var y2min = 0; var y2max = data_y; var width = 759; var height = 505; var svg = d3.select("#"+div).append("svg").attr("width", width).attr("height", height); function handleMouseOver(d, i) { d3.select(this).attr({ fill: "orange", r: radius * 2 }); } function make_x_gridlines() { return d3.axisBottom(x).ticks(5) } function make_y_gridlines() { return d3.axisLeft(y).ticks(5) } var x = d3.scaleTime().range([70, width]); var y = d3.scaleLinear().rangeRound([height, 0]); var scale = d3.scaleLinear().domain([x1min, x1max]).range([22, width - 80]); var x_axis = d3.axisTop().scale(scale); var xAxisTranslate = height - 50; // przesuniecie scali x na dol svg.append("g").attr("class", "gray").attr("transform", "translate(48, " + xAxisTranslate +")").call(x_axis) var xscale = d3.scaleLinear().domain([x2min, x2max]).range([22, width - 80]); var x_axis = d3.axisBottom().scale(xscale); var xAxisTranslate = height - 50; // przesuniecie scali x na dol svg.append("g").attr("class", "gray graytext").attr("transform", "translate(48, " + xAxisTranslate +")").call(x_axis) var yscale = d3.scaleLinear().domain([y1min, y1max]).range([height - 100, 0]); var y_axis = d3.axisLeft().scale(yscale); svg.append("g").attr("transform", "translate(70, 20)").call(y_axis); //var yscale_right = d3.scaleLinear().domain([y2min, y2max]).range([height - 100, 0]); //var yr_axis = d3.axisRight().scale(yscale_right); //var yAxisTranslate = width - 31; // przesuniecie scali x na dol //svg.append("g").attr("class", "red").attr("transform", "translate(" + yAxisTranslate +", 20)").call(yr_axis); var yscale = d3.scaleLinear().domain([y1min, y1max]).range([height - 100, 0]); var grid = d3.axisLeft().scale(yscale).ticks(60) svg.append("g").attr("class", "grid2").attr("transform", "translate(70,20)").call(grid.tickSize(-(width-101)).tickFormat("")) var yscale = d3.scaleLinear().domain([y1min, y1max]).range([height - 100, 0]); var grid = d3.axisLeft().scale(yscale); svg.append("g").attr("class", "grid").attr("transform", "translate(70,20)").call(grid.tickSize(-(width-101)).tickFormat("")) var scale = d3.scaleLinear().domain([x1min, x1max]).range([22, width - 80]); var grid = d3.axisTop().scale(scale); svg.append("g").attr("class", "grid").attr("transform", "translate(48, 20)").call(grid.tickSize(-(height-100)).tickFormat("")) var n = 21; var xScale = d3.scaleLinear().domain([x1min, x1max]).range([70, width-30]); var yScale = d3.scaleLinear().domain([y1min, y1max]).range([height-100, 0]); var line = d3.area().x(function(d, i) { return xScale(d.x); }).y(function(d) { return yScale(d.y); }) .curve(d3.curveCardinal) var area = d3.area().x(function(d, i) { return xScale(d.x); }).y0(height-100).y1(function(d) { return yScale(d.y); }).curve(d3.curveCardinal); svg.append("text").style("fill", "#555").style("font-size", "10px") .attr("font-family", "Rubik") .text("m3/s") .attr("x", function (d) { return 730; }) .attr("y", function (d) { return 480; }); svg.append("text").data([{ x: x1max - 50, y: -83 }]).style("fill", "#555").style("font-size", "10px") .attr("font-family", "Rubik") .text("m3/h") .attr("x", function (d) { return 730; }) .attr("y", function (d) { return 455; }); svg.append("text").data([{ x: -150, y: y1max - 25 }]).style("fill", "#555").style("font-size", "10px") .attr("font-family", "Rubik") .text("Pa") .attr("x", function (d) { return 50; }) .attr("y", function (d) { return 15; }); for (var g = 0; g < charts.length; g++) { svg.append("path") .attr("transform", "translate(0, 20)") .datum(data_chart_area[charts[g]]) .attr("id", "area_"+charts[g]) .style('fill-opacity', .2) .attr("fill", "#00427a") .attr("d", area); svg.append("path") .attr("transform", "translate(0, 20)") .attr("id", "path_"+charts[g]) .datum(data_chart[charts[g]]) .attr("stroke", "#00427a") .attr("stroke-width", 1.5) .attr("d", line); } for (var g = 0; g < charts.length; g++) { svg.append("text").data([{ x: data_chart[charts[g]][0].x, y: data_chart[charts[g]][0].y }]).style("fill", "#555").style("font-size", "11px") .attr("font-family", "Rubik") .attr("font-weight", "800") .text(data_chart_name[charts[g]]) .attr("x", function (d) { return xScale(d.x) + 5; }) .attr("y", function (d) { return yScale(d.y) + 18; }) } } $(document).ready(function() { if ($('[data-tech]').length > 0) { var url = "/products/ajax/tech?id="+$('[data-tech]').attr("data-tech"); $.get(url, function(data) { $('[data-tech]').html(data); setTimeout(function(){ create_table_header(); $(".product__tech .tab li[tab-id='data']").trigger("click"); }, 100); }) } else { create_table_header(); } $(document).on("click", "table.data tr", function() { var isModel = $(this).hasClass("row-model"); if (isModel == false) { var id = $(this).next().find(".product_chart").attr("id"); if (id != undefined) { id = id.replace("product_", ""); var charts = $(this).next().find(".product_chart").attr("data-charts"); var _id = "product_"+id; $("tr.row-model td").hide(); $(this).next().find("td").slideDown(); var hasSvg = $("#"+_id).find("svg").length; if (hasSvg == 0) { createChart(id, charts); } } } }); $(document).on("click", ".product .data-tech tr.row-model td h3", function() { $(this).closest("td").slideUp(); }); /*$(document).on("click", "table.data tr", function() { var link = $(this).find("a").attr("href"); if (link != undefined) { document.location.href = link; } });*/ $(document).on("click", ".product__tech .tab li", function(){ $(".product__tech .tab li.active").removeClass("active"); $(this).addClass("active"); var _id = $(this).attr("tab-id"); $("#tab_data, #tab_shop").hide(); $("#tab_"+_id).show(); create_table_header(); }); $(".data-tech").tablesorter({ headers: { 1: { sorter: "digit" }, 2: { sorter: "digit" }, 3: { sorter: "digit" }, 4: { sorter: "digit" }, 5: { sorter: "digit" }, 6: { sorter: "digit" }, 7: { sorter: "digit" }, 8: { sorter: "digit" }, 9: { sorter: "digit" }, 10: { sorter: "digit" }, 11: { sorter: "digit" }, '.state' : { sorter: false } } }); $("#product_gallery img").click(function() { $(".product-gallery__item.active").removeClass("active"); $(this).closest(".product-gallery__item").addClass("active"); var is360 = $(this).closest(".product-gallery__item").hasClass("isShow360"); if (is360 == false) { $(".product-gallery__item a").attr({"data-lightbox" : "cert-set"}); $("#box360").hide(); var medium = $(this).closest(".product-gallery__item").attr("data-medium"); var zoom = $(this).closest(".product-gallery__item").find("a").attr("href"); $(this).closest(".product-gallery__item").find("a").removeAttr("data-lightbox") $(".product__img-360-box").find("img").show().attr({"src" : medium}); $(".product__img-360-box").find("a").attr({"href" : zoom}); } else { $("#box360").show(); $(".product__img-360-box").find("img").hide(); $(".spin360").show(); } }); $("#graph_list li").mouseenter(function() { $(".product__graph-area ul li.active").removeClass("active"); $(this).addClass("active"); selectGraph(); }); $(".form-count-cart input").keypress(function(e) { if (isNaN(parseInt(e.key, 10)) === true && e.key.length == 1) { return e.preventDefault() } }); $(".form-count-cart input").blur(function() { var v = $(this).val(); if (v == 0) { v = 1; } else if (v > parseInt($(this).attr("data-max"))) { v = $(this).attr("data-max"); } $(this).val(v); }); $(".form-count-cart a.minus").click(function() { var $a = $(this).closest(".form-count-cart"); var $v = $a.find("input").val(); var $v = parseInt($v) - 1; if ($v < 1) { $v = 1; } $a.find("input").val($v); }); $(".form-count-cart a.plus").click(function() { var $a = $(this).closest(".form-count-cart"); var $v = $a.find("input").val(); var $m = parseInt($a.find("input").attr("data-max")); var $v = parseInt($v) + 1; if ($v > $m) { $v = $m; } $a.find("input").val($v); }); $(document).on("mouseenter", "[data-state-popup]", function() { //$(".avalModal").remove(); var data = $(this).attr("data-state-popup"); var _name = $(this).closest("tr").find(".product-name").text(); var _d = data.split("|"); var _c = _d.length; var html = '
Produkt dostępny u dostawców: stan na:
'; for(var a = 0; a < _c; a++) { var _p = _d[a].split(";"); html += `
${aph[_p[0]][2] ? '' : ''}
${aph[_p[0]][0]} ${aph[_p[0]][1]}
${_p[2].replace("00:00:00", "")}
`; } html += '
'; $(this).after(html); var _h = parseInt($(this).closest("td").find(".avalModalBody").height()) + 36; $(this).closest("td").find(".avalModal").css({"height" : _h+"px"}); }); $("#d_equipment").change(function() { var id = $(this).val(); equipment(id); }); }); function equipment(id) { $("#equipment").html('
'); $.get("/products/products/equipment?id="+id, function(data) { $("#equipment").html(data) }); } function selectGraph() { $(".area").css({"fill-opacity" : 0}); $(".line").css({"stoke" : "rgb(0, 52, 96)"}).attr('style', "stroke:#00427a"); var id = $("#graph_list").find("li.active").attr("data-char"); document.getElementById('frame-pdu-family').src=`https://www.programdoboru.pl/include/product.html?id_product=${id}`; $("#area_"+id).css({"fill-opacity" : 0.5}); $("#path_"+id).css({"stoke" : "#00427a"}).attr('style', "stroke:#00427a"); var $row = $("#dane-techniczne #data-tech tr#data_"+id); $(".product__graph-area .product__graph-info p").text($row.find("td:nth-child(1)").text()); $(".product__graph-area .product__graph-info ul li:nth-child(1) span").text($row.find("td:nth-child(3)").text()); $(".product__graph-area .product__graph-info ul li:nth-child(2) span").text($row.find("td:nth-child(2)").text()); $(".product__graph-area .product__graph-info ul li:nth-child(3) span").text($row.find("td:nth-child(4)").text()); $(".product__graph-area .product__graph-info ul li:nth-child(4) span").text($row.find("td:nth-child(5)").text()); $(".product__graph-area .product__graph-info ul li:nth-child(5) span").text($row.find("td:nth-child(6)").text()); $(".product__graph-area .product__graph-info ul li:nth-child(6) span").text($row.find("td:nth-child(7)").text()); $(".product__graph-area .product__graph-info ul li:nth-child(7) span").text($row.find("td:nth-child(8)").text()); } function selectItemGraph(id) { $(".product__graph-area ul li.active").removeClass("active"); $("#graph_list li[data-char='"+id+"']").addClass("active"); selectGraph(); }