(window.webpackJsonp=window.webpackJsonp||[]).push([[500],{1280:function(t,e,n){var content=n(1614);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(122).default)("541ddeac",content,!0,{sourceMap:!1})},1613:function(t,e,n){"use strict";n(1280)},1614:function(t,e,n){var o=n(121),r=n(559),c=n(560),l=o(!1),d=r(c);l.push([t.i,"@font-face{src:url("+d+') format("woff");font-family:"Helvetica Neue";font-weight:100}#chart-container[data-v-42adc9ae]{position:relative;width:90%}',""]),t.exports=l},2124:function(t,e,n){"use strict";n.r(e);n(166),n(311),n(136);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:!1,plugins:{legend:{position:"right",display:!1},title:{display:!0,text:"ISC",font:{size:14}},tooltip:{callbacks:{}}},scales:{x:{bounds:"ticks",display:!0,type:"linear",min:3,max:7,ticks:{crossAlign:"center",major:{enabled:!0}},title:{display:!0,text:"Umidade (%)"}},y:{display:!0,min:74,max:96,title:{display:!0,text:"ISC (%)"},ticks:{callback:function(t,e){return t}}}}}}},watch:{elemento:{deep:!0,handler:function(t){if(console.log(t),t[1].length>0){var e=this.chartData.datasets;if(e[0].data=[],e[1].data=[],void 0!==t[0][0]&&(e[0].data.push({x:t[0][0].cilindro2,y:t[1][2].percentualIsc1}),e[0].data.push({x:t[0][0].cilindro3,y:t[1][2].percentualIsc2}),e[0].data.push({x:t[0][0].cilindro4,y:t[1][2].percentualIsc3})),e[1].data.push({x:0,y:t[2].isc}),e[1].data.push({x:t[2].umidadeOtima,y:t[2].isc}),e[1].data.push({x:t[2].umidadeOtima,y:0}),void 0!==t[0][0]){var n=[t[0][0].cilindro2,t[0][0].cilindro3,t[0][0].cilindro4];n.sort((function(a,b){return a-b})),this.options.scales.x.min=n[0]-1,this.options.scales.x.max=n[2]+1}if(void 0!==t[1][2]){var o=[t[1][2].percentualIsc1,t[1][2].percentualIsc2,t[1][2].percentualIsc3,t[2].isc];o.sort((function(a,b){return a-b})),this.options.scales.y.min=Number(o[0]-1).toFixed(2),this.options.scales.y.max=Number(o[3]+1).toFixed(2)}this.chartData.datasets=e,this.baseChart.update()}}}},mounted:function(){this.chartCtx=document.getElementById("chart-isc"),this.baseChart=new o.f(this.chartCtx,{type:"line",data:this.chartData,options:this.options})}},c=(n(1613),n(42)),component=Object(c.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-isc"}})])])}],!1,null,"42adc9ae",null);e.default=component.exports}}]);
//# sourceMappingURL=cd8e683-1.2.11.js.map