(window.webpackJsonp=window.webpackJsonp||[]).push([[501],{1277:function(t,e,n){var content=n(1606);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(122).default)("6fbfaadc",content,!0,{sourceMap:!1})},1605:function(t,e,n){"use strict";n(1277)},1606:function(t,e,n){var o=n(121),r=n(559),l=n(560),c=o(!1),d=r(l);c.push([t.i,"@font-face{src:url("+d+') format("woff");font-family:"Helvetica Neue";font-weight:100}#chart-container[data-v-2b438a9c]{position:relative;width:90%}',""]),t.exports=c},2118:function(t,e,n){"use strict";n.r(e);n(7),n(4),n(38),n(136),n(166),n(311);var o=n(891);o.f.register(o.n,o.j,o.m,o.i,o.e,o.k,o.l,o.h,o.p,o.q,o.o);var r={name:"ChartExpansao",props:{elemento:{type:Array,default:function(){return[]},required:!0}},data:function(){return{baseChart:{},chartCtx:null,customAxis:null,chartData:{datasets:[{label:"",data:[],backgroundColor:"#007355",hoverBackgroundColor:"#fff0",borderColor:"#007355",tension:.4},{label:"",data:[],backgroundColor:"#4DB848",hoverBackgroundColor:"#fff0",borderColor:"#4DB848"}],labels:[3,3.5,4,4.5,5,5.5,6,6.5,7]},options:{responsive:!0,maintainAspectRatio:!0,responsiveAnimationDuration:1,plugins:{legend:{position:"right",display:!1},title:{display:!0,text:"Expansão",font:{size:14}},tooltip:{callbacks:{}}},scales:{x:{bounds:"ticks",display:!0,type:"linear",min:3,max:7,ticks:{crossAlign:"center",major:{enabled:!0},callback:function(t,e){return t}},title:{display:!0,text:"Umidade (%)"}},y:{display:!0,min:0,max:1,title:{display:!0,text:"Expansão (%)"},ticks:{callback:function(t,e){return t}}}}}}},watch:{elemento:{deep:!0,handler:function(t){var e,n,o=this.chartData.datasets;o[0].data=[],o[1].data=[];var r=null===(e=t[0])||void 0===e?void 0:e[0],l=null===(n=t[1])||void 0===n?void 0:n[4],c=t[2];if(r&&l&&(o[0].data.push({x:r.cilindro2,y:l.expansao1}),o[0].data.push({x:r.cilindro3,y:l.expansao2}),o[0].data.push({x:r.cilindro4,y:l.expansao3})),r){var d=[r.cilindro2,r.cilindro3,r.cilindro4].map(Number).filter((function(t){return!isNaN(t)}));d.sort((function(a,b){return a-b})),d.length>=2&&(this.options.scales.x.min=Number((d[0]-.4).toFixed(1)),this.options.scales.x.max=Number((d[d.length-1]+.4).toFixed(1)))}if(l&&c){var h=[l.expansao1,l.expansao2,l.expansao3,c.expansao].map(Number).filter((function(t){return!isNaN(t)}));h.sort((function(a,b){return a-b})),h.length>0&&(this.options.scales.y.min=Number((h[0]-.5).toFixed(1)),this.options.scales.y.max=Number((h[h.length-1]+.5).toFixed(1))),o[1].data.push({x:0,y:c.expansao}),o[1].data.push({x:c.umidadeOtima,y:c.expansao}),o[1].data.push({x:c.umidadeOtima,y:Number(h[0]-3)})}this.chartData.datasets=o,this.baseChart.update()}}},mounted:function(){this.chartCtx=document.getElementById("chart-expansao"),this.baseChart=new o.f(this.chartCtx,{type:"line",data:this.chartData,options:this.options})}},l=(n(1605),n(42)),component=Object(l.a)(r,(function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-6"},[e("div",{attrs:{id:"chart-container"}},[e("canvas",{attrs:{id:"chart-expansao"}})])])}],!1,null,"2b438a9c",null);e.default=component.exports}}]);
//# sourceMappingURL=3b8e88e-1.2.11.js.map