pages-admin-statistics-index.b067dd17.js 102 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-statistics-index"],{"0ced":function(t,e,a){"use strict";(function(t,e){var i=a("7037").default;a("d9e2"),a("d401"),a("d3b7"),a("25f0"),a("159b"),a("14d9"),a("ac1f"),a("5319"),a("e25e"),a("d81d"),a("00b4"),a("13d5"),a("99af"),a("4de4"),a("fb6a"),a("a9e3"),a("4e82"),a("26e9"),a("cb29"),a("e9c4");var n={yAxisWidth:15,yAxisSplit:5,xAxisHeight:15,xAxisLineHeight:15,legendHeight:15,yAxisTitleWidth:15,padding:[10,10,10,10],pixelRatio:1,rotate:!1,columePadding:3,fontSize:13,dataPointShape:["circle","circle","circle","circle"],colors:["#1890ff","#2fc25b","#facc14","#f04864","#8543e0","#90ed7d"],pieChartLinePadding:15,pieChartTextPadding:5,xAxisTextPadding:3,titleColor:"#333333",titleFontSize:20,subtitleColor:"#999999",subtitleFontSize:15,toolTipPadding:3,toolTipBackground:"#000000",toolTipOpacity:.7,toolTipLineHeight:20,radarLabelTextMargin:15,gaugeLabelTextMargin:15},o=function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),i=1;i<e;i++)a[i-1]=arguments[i];if(null==t)throw new TypeError("Cannot convert undefined or null to object");if(!a||a.length<=0)return t;function n(t,e){for(var a in e)t[a]=t[a]&&"[object Object]"===t[a].toString()?n(t[a],e[a]):t[a]=e[a];return t}return a.forEach((function(e){t=n(t,e)})),t},r={toFixed:function(t,e){return e=e||2,this.isFloat(t)&&(t=t.toFixed(e)),t},isFloat:function(t){return t%1!==0},approximatelyEqual:function(t,e){return Math.abs(t-e)<1e-10},isSameSign:function(t,e){return Math.abs(t)===t&&Math.abs(e)===e||Math.abs(t)!==t&&Math.abs(e)!==e},isSameXCoordinateArea:function(t,e){return this.isSameSign(t.x,e.x)},isCollision:function(t,e){t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height,e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height;var a=e.start.x>t.end.x||e.end.x<t.start.x||e.end.y>t.start.y||e.start.y<t.end.y;return!a}};function l(t,e){var a=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,a,i){return e+e+a+a+i+i})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a),n=parseInt(i[1],16),o=parseInt(i[2],16),r=parseInt(i[3],16);return"rgba("+n+","+o+","+r+","+e+")"}function s(t,e,a){if(isNaN(t))throw new Error("[uCharts] unvalid series data!");a=a||10,e=e||"upper";var i=1;while(a<1)a*=10,i*=10;t="upper"===e?Math.ceil(t*i):Math.floor(t*i);while(t%a!==0)"upper"===e?t++:t--;return t/i}function h(t,e,a){function i(t){while(t<0)t+=2*Math.PI;while(t>2*Math.PI)t-=2*Math.PI;return t}return t=i(t),e=i(e),a=i(a),e>a&&(a+=2*Math.PI,t<e&&(t+=2*Math.PI)),t>=e&&t<=a}function c(t,e){function a(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].y>=Math.max(t[e-1].y,t[e+1].y)||t[e].y<=Math.min(t[e-1].y,t[e+1].y))}function i(t,e){return!(!t[e-1]||!t[e+1])&&(t[e].x>=Math.max(t[e-1].x,t[e+1].x)||t[e].x<=Math.min(t[e-1].x,t[e+1].x))}var n=.2,o=.2,r=null,l=null,s=null,h=null;if(e<1?(r=t[0].x+(t[1].x-t[0].x)*n,l=t[0].y+(t[1].y-t[0].y)*n):(r=t[e].x+(t[e+1].x-t[e-1].x)*n,l=t[e].y+(t[e+1].y-t[e-1].y)*n),e>t.length-3){var c=t.length-1;s=t[c].x-(t[c].x-t[c-1].x)*o,h=t[c].y-(t[c].y-t[c-1].y)*o}else s=t[e+1].x-(t[e+2].x-t[e].x)*o,h=t[e+1].y-(t[e+2].y-t[e].y)*o;return a(t,e+1)&&(h=t[e+1].y),a(t,e)&&(l=t[e].y),i(t,e+1)&&(s=t[e+1].x),i(t,e)&&(r=t[e].x),(l>=Math.max(t[e].y,t[e+1].y)||l<=Math.min(t[e].y,t[e+1].y))&&(l=t[e].y),(h>=Math.max(t[e].y,t[e+1].y)||h<=Math.min(t[e].y,t[e+1].y))&&(h=t[e+1].y),(r>=Math.max(t[e].x,t[e+1].x)||r<=Math.min(t[e].x,t[e+1].x))&&(r=t[e].x),(s>=Math.max(t[e].x,t[e+1].x)||s<=Math.min(t[e].x,t[e+1].x))&&(s=t[e+1].x),{ctrA:{x:r,y:l},ctrB:{x:s,y:h}}}function d(t,e,a){return{x:a.x+t,y:a.y-e}}function p(t,e){if(e)while(r.isCollision(t,e))t.start.x>0?t.start.y--:t.start.x<0||t.start.y>0?t.start.y++:t.start.y--;return t}function f(t,e,a){var i=0;return t.map((function(t){if(t.color||(t.color=a.colors[i],i=(i+1)%a.colors.length),t.index||(t.index=0),t.type||(t.type=e.type),"undefined"==typeof t.show&&(t.show=!0),t.type||(t.type=e.type),t.pointShape||(t.pointShape="circle"),!t.legendShape)switch(t.type){case"line":t.legendShape="line";break;case"column":t.legendShape="rect";break;case"area":t.legendShape="triangle";break;default:t.legendShape="circle"}return t}))}function x(t,e){var a=0,i=e-t;return a=i>=1e4?1e3:i>=1e3?100:i>=100?10:i>=10?5:i>=1?1:i>=.1?.1:i>=.01?.01:i>=.001?.001:i>=1e-4?1e-4:i>=1e-5?1e-5:1e-6,{minRange:s(t,"lower",a),maxRange:s(e,"upper",a)}}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.fontSize;t=String(t);t=t.split("");for(var a=0,i=0;i<t.length;i++){var o=t[i];/[a-zA-Z]/.test(o)?a+=7:/[0-9]/.test(o)?a+=5.5:/\./.test(o)?a+=2.7:/-/.test(o)?a+=3.25:/[\u4e00-\u9fa5]/.test(o)?a+=10:/\(|\)/.test(o)?a+=3.73:/\s/.test(o)?a+=2.5:/%/.test(o)?a+=8:a+=10}return a*e/10}function u(t){return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data)}),[])}function y(t,e){for(var a=new Array(e),i=0;i<a.length;i++)a[i]=0;for(var n=0;n<t.length;n++)for(i=0;i<a.length;i++)a[i]+=t[n].data[i];return t.reduce((function(t,e){return(t.data?t.data:t).concat(e.data).concat(a)}),[])}function v(t,e,a){var i,n;return t.clientX?e.rotate?(n=e.height-t.clientX*e.pixelRatio,i=(t.pageY-a.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):(i=t.clientX*e.pixelRatio,n=(t.pageY-a.currentTarget.offsetTop-e.height/e.pixelRatio/2*(e.pixelRatio-1))*e.pixelRatio):e.rotate?(n=e.height-t.x*e.pixelRatio,i=t.y*e.pixelRatio):(i=t.x*e.pixelRatio,n=t.y*e.pixelRatio),{x:i,y:n}}function m(t,e){for(var a=[],i=0;i<t.length;i++){var n=t[i];if(null!==n.data[e]&&"undefined"!==typeof n.data[e]&&n.show){var o={};o.color=n.color,o.type=n.type,o.style=n.style,o.pointShape=n.pointShape,o.disableLegend=n.disableLegend,o.name=n.name,o.show=n.show,o.data=n.format?n.format(n.data[e]):n.data[e],a.push(o)}}return a}function b(t){var e=t.map((function(t){return g(t)}));return Math.max.apply(null,e)}function w(t){for(var e=2*Math.PI/t,a=[],i=0;i<t;i++)a.push(e*i);return a.map((function(t){return-1*t+Math.PI/2}))}function A(t,e,a,i){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.map((function(t){var e=[];return e=i||t.data,{text:n.format?n.format(t,e[a]):t.name+": "+t.data,color:t.color}})),r=[],l={x:0,y:0},s=0;s<e.length;s++){var h=e[s];"undefined"!==typeof h[a]&&null!==h[a]&&r.push(h[a])}for(var c=0;c<r.length;c++){var d=r[c];l.x=Math.round(d.x),l.y+=d.y}return l.y/=r.length,{textList:o,offset:l}}function T(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.map((function(t){return{text:n.format?n.format(t,i[a]):t.name+": "+t.data,color:t.color,disableLegend:!!t.disableLegend}}));o=o.filter((function(t){if(!0!==t.disableLegend)return t}));for(var r=[],l={x:0,y:0},s=0;s<e.length;s++){var h=e[s];"undefined"!==typeof h[a]&&null!==h[a]&&r.push(h[a])}for(var c=0;c<r.length;c++){var d=r[c];l.x=Math.round(d.x),l.y+=d.y}return l.y/=r.length,{textList:o,offset:l}}function S(t,e,a,i,n,o){var r=o.color.upFill,l=o.color.downFill,s=[r,r,l,r],h=[],c={text:n[i],color:null};h.push(c),e.map((function(e){0==i&&e.data[1]-e.data[0]<0?s[1]=l:(e.data[0]<t[i-1][1]&&(s[0]=l),e.data[1]<e.data[0]&&(s[1]=l),e.data[2]>t[i-1][1]&&(s[2]=r),e.data[3]<t[i-1][1]&&(s[3]=l));var a={text:"开盘:"+e.data[0],color:s[0]},n={text:"收盘:"+e.data[1],color:s[1]},o={text:"最低:"+e.data[2],color:s[2]},c={text:"最高:"+e.data[3],color:s[3]};h.push(a,n,o,c)}));for(var d=[],p={x:0,y:0},f=0;f<a.length;f++){var x=a[f];"undefined"!==typeof x[i]&&null!==x[i]&&d.push(x[i])}return p.x=Math.round(d[0][0].x),{textList:h,offset:p}}function _(t,e,a){return t.x<=e.width-e.area[1]+10&&t.x>=e.area[3]-10&&t.y>=e.area[0]&&t.y<=e.height-e.area[2]}function P(t,e,a){return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(a,2)}function D(t){var e=[],a=[];return t.forEach((function(t,i){null!==t?a.push(t):(a.length&&e.push(a),a=[])})),a.length&&e.push(a),e}function M(t,e,a,i){var n={angle:0,xAxisHeight:a.xAxisHeight},o=t.map((function(t){return g(t,e.xAxis.fontSize||a.fontSize)})),r=Math.max.apply(this,o);return 1==e.xAxis.rotateLabel&&r+2*a.xAxisTextPadding>i&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+r*Math.sin(n.angle)),n}function L(t,e,a){var n={angle:0,xAxisHeight:a.xAxisHeight};n.ranges=function(t,e,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=u(t),r=[];o=o.filter((function(t){return"object"===i(t)&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),o.map((function(t){"object"===i(t)?t.constructor==Array?"candle"==e.type?t.map((function(t){r.push(t)})):r.push(t[0]):r.push(t.value):r.push(t)}));var l=0,s=0;if(r.length>0&&(l=Math.min.apply(this,r),s=Math.max.apply(this,r)),n>-1?("number"===typeof e.xAxis.data[n].min&&(l=Math.min(e.xAxis.data[n].min,l)),"number"===typeof e.xAxis.data[n].max&&(s=Math.max(e.xAxis.data[n].max,s))):("number"===typeof e.xAxis.min&&(l=Math.min(e.xAxis.min,l)),"number"===typeof e.xAxis.max&&(s=Math.max(e.xAxis.max,s))),l===s){var h=s||10;s+=h}for(var c=l,d=s,p=[],f=(d-c)/e.xAxis.splitNumber,x=0;x<=e.xAxis.splitNumber;x++)p.push(c+f*x);return p}(t,e,a),n.rangesFormat=n.ranges.map((function(t){return t=e.xAxis.format?e.xAxis.format(t):r.toFixed(t,2),t}));var o=n.ranges.map((function(t){return t=r.toFixed(t,2),t=e.xAxis.format?e.xAxis.format(Number(t)):t,t}));n=Object.assign(n,B(o,e,a));var l=n.eachSpacing,s=o.map((function(t){return g(t)})),h=Math.max.apply(this,s);return h+2*a.xAxisTextPadding>l&&(n.angle=45*Math.PI/180,n.xAxisHeight=2*a.xAxisTextPadding+h*Math.sin(n.angle)),!0===e.xAxis.disabled&&(n.xAxisHeight=0),n}function F(t,e,a,i,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,r=n.extra.radar||{};r.max=r.max||0;for(var l=Math.max(r.max,Math.max.apply(null,u(i))),s=[],h=function(n){var r=i[n],h={};h.color=r.color,h.legendShape=r.legendShape,h.pointShape=r.pointShape,h.data=[],r.data.forEach((function(i,n){var r={};r.angle=t[n],r.proportion=i/l,r.position=d(a*r.proportion*o*Math.cos(r.angle),a*r.proportion*o*Math.sin(r.angle),e),h.data.push(r)})),s.push(h)},c=0;c<i.length;c++)h(c);return s}function k(t,e){for(var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=0,n=0,o=0;o<t.length;o++){var r=t[o];r.data=null===r.data?0:r.data,i+=r.data}for(var l=0;l<t.length;l++){var s=t[l];s.data=null===s.data?0:s.data,s._proportion_=0===i?1/t.length*a:s.data/i*a,s._radius_=e}for(var h=0;h<t.length;h++){var c=t[h];c._start_=n,n+=2*c._proportion_*Math.PI}return t}function C(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=t.sort((function(t,e){return parseInt(e.data)-parseInt(t.data)}));for(var i=0;i<t.length;i++)t[i].radius=t[i].data/t[0].data*e*a,t[i]._proportion_=t[i].data/t[0].data;return t.reverse()}function R(t,e,a,i){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=0,r=0,l=[],s=0;s<t.length;s++){var h=t[s];h.data=null===h.data?0:h.data,o+=h.data,l.push(h.data)}for(var c=Math.min.apply(null,l),d=Math.max.apply(null,l),p=i-a,f=0;f<t.length;f++){var x=t[f];x.data=null===x.data?0:x.data,0===o||"area"==e?(x._proportion_=x.data/o*n,x._rose_proportion_=1/t.length*n):(x._proportion_=x.data/o*n,x._rose_proportion_=x.data/o*n),x._radius_=a+p*((x.data-c)/(d-c))}for(var g=0;g<t.length;g++){var u=t[g];u._start_=r,r+=2*u._rose_proportion_*Math.PI}return t}function z(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==a&&(a=.999999);for(var i=0;i<t.length;i++){var n=t[i];n.data=null===n.data?0:n.data;var o=void 0;o="circle"==e.type?2:e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle,n._proportion_=o*n.data*a+e.startAngle,n._proportion_>=2&&(n._proportion_=n._proportion_%2)}return t}function I(t,e,a){for(var i=e-a+1,n=e,o=0;o<t.length;o++)t[o].value=null===t[o].value?0:t[o].value,t[o]._startAngle_=n,t[o]._endAngle_=i*t[o].value+e,t[o]._endAngle_>=2&&(t[o]._endAngle_=t[o]._endAngle_%2),n=t[o]._endAngle_;return t}function O(t,e,a){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=0;n<t.length;n++){var o=t[n];if(o.data=null===o.data?0:o.data,"auto"==a.pointer.color){for(var r=0;r<e.length;r++)if(o.data<=e[r].value){o.color=e[r].color;break}}else o.color=a.pointer.color;var l=a.startAngle-a.endAngle+1;o._endAngle_=l*o.data+a.startAngle,o._oldAngle_=a.oldAngle,a.oldAngle<a.endAngle&&(o._oldAngle_+=2),o.data>=a.oldData?o._proportion_=(o._endAngle_-o._oldAngle_)*i+a.oldAngle:o._proportion_=o._oldAngle_-(o._oldAngle_-o._endAngle_)*i,o._proportion_>=2&&(o._proportion_=o._proportion_%2)}return t}function W(t,e,a,i,n,o){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/a),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),t.width<=0&&(t.width=1),t.x+=(i+.5-a/2)*t.width,t)}))}function E(t,e,a,i,n,o,r){return t.map((function(t){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),i>0&&(t.width-=2*r),t)}))}function $(t,e,a,i,n,o,r){return t.map((function(t,a){return null===t?null:(t.width=Math.ceil((e-2*n.columePadding)/2),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(t.width=Math.min(t.width,+o.extra.column.width)),t)}))}function B(t,e,a){var i=e.width-e.area[1]-e.area[3],n=e.enableScroll?Math.min(e.xAxis.itemCount,t.length):t.length;("line"==e.type||"area"==e.type)&&n>1&&"justify"==e.xAxis.boundaryGap&&(n-=1);var o=i/n,r=[],l=e.area[3],s=e.width-e.area[1];return t.forEach((function(t,e){r.push(l+e*o)})),"justify"!==e.xAxis.boundaryGap&&(!0===e.enableScroll?r.push(l+t.length*o):r.push(s)),{xAxisPoints:r,startX:l,endX:s,eachSpacing:o}}function H(t,e,a,i,n,o,r){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,s=[],h=o.height-o.area[0]-o.area[2];return t.forEach((function(t,r){if(null===t)s.push(null);else{var c=[];t.forEach((function(t,s){var d={};d.x=i[r]+Math.round(n/2);var p=t.value||t,f=h*(p-e)/(a-e);f*=l,d.y=o.height-Math.round(f)-o.area[2],c.push(d)})),s.push(c)}})),s}function N(t,e,a,n,o,r,l){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,h="center";"line"!=r.type&&"area"!=r.type||(h=r.xAxis.boundaryGap);var c=[],d=r.height-r.area[0]-r.area[2],p=r.width-r.area[1]-r.area[3];return t.forEach((function(t,l){if(null===t)c.push(null);else{var f={};f.color=t.color,f.x=n[l];var x,g,u,y=t;if("object"===i(t)&&null!==t)if(t.constructor==Array)x=[].concat(r.chartData.xAxisData.ranges),g=x.shift(),u=x.pop(),y=t[1],f.x=r.area[3]+p*(t[0]-g)/(u-g);else y=t.value;"center"==h&&(f.x+=Math.round(o/2));var v=d*(y-e)/(a-e);v*=s,f.y=r.height-Math.round(v)-r.area[2],c.push(f)}})),c}function X(t,e,a,i,n,o,r,l,s){var h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,c=[],d=o.height-o.area[0]-o.area[2];return t.forEach((function(t,r){if(null===t)c.push(null);else{var p={};if(p.color=t.color,p.x=i[r]+Math.round(n/2),l>0){for(var f=0,x=0;x<=l;x++)f+=s[x].data[r];var g=f-t,u=d*(f-e)/(a-e),y=d*(g-e)/(a-e)}else f=t,u=d*(f-e)/(a-e),y=0;var v=y;u*=h,v*=h,p.y=o.height-Math.round(u)-o.area[2],p.y0=o.height-Math.round(v)-o.area[2],c.push(p)}})),c}function G(t,e,a,n){var o,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;o="stack"==n?y(t,e.categories.length):u(t);var l=[];o=o.filter((function(t){return"object"===i(t)&&null!==t?t.constructor==Array?null!==t:null!==t.value:null!==t})),o.map((function(t){"object"===i(t)?t.constructor==Array?"candle"==e.type?t.map((function(t){l.push(t)})):l.push(t[1]):l.push(t.value):l.push(t)}));var s=0,h=0;if(l.length>0&&(s=Math.min.apply(this,l),h=Math.max.apply(this,l)),r>-1?("number"===typeof e.yAxis.data[r].min&&(s=Math.min(e.yAxis.data[r].min,s)),"number"===typeof e.yAxis.data[r].max&&(h=Math.max(e.yAxis.data[r].max,h))):("number"===typeof e.yAxis.min&&(s=Math.min(e.yAxis.min,s)),"number"===typeof e.yAxis.max&&(h=Math.max(e.yAxis.max,h))),s===h){var c=h||10;h+=c}for(var d=x(s,h),p=d.minRange,f=d.maxRange,g=[],v=(f-p)/e.yAxis.splitNumber,m=0;m<=e.yAxis.splitNumber;m++)g.push(p+v*m);return g.reverse()}function j(t,e,a){var i=o({},{type:""},e.extra.column),n=e.yAxis.data.length,l=new Array(n);if(n>0){for(var s=0;s<n;s++){l[s]=[];for(var h=0;h<t.length;h++)t[h].index==s&&l[s].push(t[h])}for(var c=new Array(n),d=new Array(n),p=new Array(n),f=function(t){var n=e.yAxis.data[t];1==e.yAxis.disabled&&(n.disabled=!0),c[t]=G(l[t],e,a,i.type,t);var o=n.fontSize||a.fontSize;p[t]={position:n.position?n.position:"left",width:0},d[t]=c[t].map((function(e){return e=r.toFixed(e,6),e=n.format?n.format(Number(e)):e,p[t].width=Math.max(p[t].width,g(e,o)+5),e}));var s=n.calibration?4*e.pixelRatio:0;p[t].width+=s+3*e.pixelRatio,!0===n.disabled&&(p[t].width=0)},x=0;x<n;x++)f(x)}else{c=new Array(1),d=new Array(1),p=new Array(1);c[0]=G(t,e,a,i.type),p[0]={position:"left",width:0};var u=e.yAxis.fontSize||a.fontSize;d[0]=c[0].map((function(t){return t=r.toFixed(t,6),t=e.yAxis.format?e.yAxis.format(Number(t)):t,p[0].width=Math.max(p[0].width,g(t,u)+5),t})),p[0].width+=3*e.pixelRatio,!0===e.yAxis.disabled?(p[0]={position:"left",width:0},e.yAxis.data[0]={disabled:!0}):e.yAxis.data[0]={disabled:!1,position:"left",max:e.yAxis.max,min:e.yAxis.min,format:e.yAxis.format}}return{rangesFormat:d,ranges:c,yAxisWidth:p}}function q(t,e){!0!==e.rotateLock?(t.translate(e.height,0),t.rotate(90*Math.PI/180)):!0!==e._rotate_&&(t.translate(e.height,0),t.rotate(90*Math.PI/180),e._rotate_=!0)}function Y(t,e,a,i,n){i.beginPath(),"hollow"==n.dataPointShapeType?(i.setStrokeStyle(e),i.setFillStyle(n.background),i.setLineWidth(2*n.pixelRatio)):(i.setStrokeStyle("#ffffff"),i.setFillStyle(e),i.setLineWidth(1*n.pixelRatio)),"diamond"===a?t.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y),i.lineTo(t.x,t.y+4.5),i.lineTo(t.x+4.5,t.y),i.lineTo(t.x,t.y-4.5))})):"circle"===a?t.forEach((function(t,e){null!==t&&(i.moveTo(t.x+2.5*n.pixelRatio,t.y),i.arc(t.x,t.y,3*n.pixelRatio,0,2*Math.PI,!1))})):"rect"===a?t.forEach((function(t,e){null!==t&&(i.moveTo(t.x-3.5,t.y-3.5),i.rect(t.x-3.5,t.y-3.5,7,7))})):"triangle"===a&&t.forEach((function(t,e){null!==t&&(i.moveTo(t.x,t.y-4.5),i.lineTo(t.x-4.5,t.y+4.5),i.lineTo(t.x+4.5,t.y+4.5),i.lineTo(t.x,t.y-4.5))})),i.closePath(),i.fill(),i.stroke()}function J(t,e,a,i){var n=t.title.fontSize||e.titleFontSize,o=t.subtitle.fontSize||e.subtitleFontSize,r=t.title.name||"",l=t.subtitle.name||"",s=t.title.color||e.titleColor,h=t.subtitle.color||e.subtitleColor,c=r?n:0,d=l?o:0;if(l){var p=g(l,o),f=i.x-p/2+(t.subtitle.offsetX||0),x=i.y+o/2+(t.subtitle.offsetY||0);r&&(x+=(c+5)/2),a.beginPath(),a.setFontSize(o),a.setFillStyle(h),a.fillText(l,f,x),a.closePath(),a.stroke()}if(r){var u=g(r,n),y=i.x-u/2+(t.title.offsetX||0),v=i.y+n/2+(t.title.offsetY||0);l&&(v-=(d+5)/2),a.beginPath(),a.setFontSize(n),a.setFillStyle(s),a.fillText(r,y,v),a.closePath(),a.stroke()}}function Z(t,e,a,n){var o=e.data;t.forEach((function(t,r){if(null!==t){n.beginPath(),n.setFontSize(e.textSize||a.fontSize),n.setFillStyle(e.textColor||"#666666");var l=o[r];"object"===i(o[r])&&null!==o[r]&&(l=o[r].constructor==Array?o[r][1]:o[r].value);var s=e.format?e.format(l):l;n.fillText(String(s),t.x-g(s,e.textSize||a.fontSize)/2,t.y-4),n.closePath(),n.stroke()}}))}function V(t,e,a,i,n,o){e-=t.width/2+n.gaugeLabelTextMargin;for(var r=t.startAngle-t.endAngle+1,l=r/t.splitLine.splitNumber,s=t.endNumber-t.startNumber,h=s/t.splitLine.splitNumber,c=t.startAngle,d=t.startNumber,p=0;p<t.splitLine.splitNumber+1;p++){var f={x:e*Math.cos(c*Math.PI),y:e*Math.sin(c*Math.PI)},x=t.labelFormat?t.labelFormat(d):d;f.x+=a.x-g(x)/2,f.y+=a.y;var u=f.x,y=f.y;o.beginPath(),o.setFontSize(n.fontSize),o.setFillStyle(t.labelColor||"#666666"),o.fillText(x,u,y+n.fontSize/2),o.closePath(),o.stroke(),c+=l,c>=2&&(c%=2),d+=h}}function K(t,e,a,i,n,o){var l=i.extra.radar||{};e+=n.radarLabelTextMargin,t.forEach((function(t,s){var h={x:e*Math.cos(t),y:e*Math.sin(t)},c=d(h.x,h.y,a),p=c.x,f=c.y;r.approximatelyEqual(h.x,0)?p-=g(i.categories[s]||"")/2:h.x<0&&(p-=g(i.categories[s]||"")),o.beginPath(),o.setFontSize(n.fontSize),o.setFillStyle(l.labelColor||"#666666"),o.fillText(i.categories[s]||"",p,f+n.fontSize/2),o.closePath(),o.stroke()}))}function Q(t,e,a,i,n,o){for(var l=a.pieChartLinePadding,s=[],h=null,c=t.map((function(t){var e=t.format?t.format(+t._proportion_.toFixed(2)):r.toFixed(100*t._proportion_.toFixed(4))+"%";t._rose_proportion_&&(t._proportion_=t._rose_proportion_);var a=2*Math.PI-(t._start_+2*Math.PI*t._proportion_/2),i=t.color,n=t._radius_;return{arc:a,text:e,color:i,radius:n,textColor:t.textColor,textSize:t.textSize}})),f=0;f<c.length;f++){var x=c[f],u=Math.cos(x.arc)*(x.radius+l),y=Math.sin(x.arc)*(x.radius+l),v=Math.cos(x.arc)*x.radius,m=Math.sin(x.arc)*x.radius,b=u>=0?u+a.pieChartTextPadding:u-a.pieChartTextPadding,w=y,A=g(x.text,x.textSize||a.fontSize),T=w;h&&r.isSameXCoordinateArea(h.start,{x:b})&&(T=b>0?Math.min(w,h.start.y):u<0||w>0?Math.max(w,h.start.y):Math.min(w,h.start.y)),b<0&&(b-=A);var S={lineStart:{x:v,y:m},lineEnd:{x:u,y:y},start:{x:b,y:T},width:A,height:a.fontSize,text:x.text,color:x.color,textColor:x.textColor,textSize:x.textSize};h=p(S,h),s.push(h)}for(var _=0;_<s.length;_++){var P=s[_],D=d(P.lineStart.x,P.lineStart.y,o),M=d(P.lineEnd.x,P.lineEnd.y,o),L=d(P.start.x,P.start.y,o);i.setLineWidth(1*e.pixelRatio),i.setFontSize(a.fontSize),i.beginPath(),i.setStrokeStyle(P.color),i.setFillStyle(P.color),i.moveTo(D.x,D.y);var F=P.start.x<0?L.x+P.width:L.x,k=P.start.x<0?L.x-5:L.x+5;i.quadraticCurveTo(M.x,M.y,F,L.y),i.moveTo(D.x,D.y),i.stroke(),i.closePath(),i.beginPath(),i.moveTo(L.x+P.width,L.y),i.arc(F,L.y,2,0,2*Math.PI),i.closePath(),i.fill(),i.beginPath(),i.setFontSize(P.textSize||a.fontSize),i.setFillStyle(P.textColor||"#666666"),i.fillText(P.text,k,L.y+3),i.closePath(),i.stroke(),i.closePath()}}function U(t,e,a){for(var i=o({},{type:"solid",dashLength:4,data:[]},t.extra.markLine),n=t.area[3],r=t.width-t.area[1],s=function(t,e){for(var a,i,n=e.height-e.area[0]-e.area[2],o=0;o<t.length;o++){t[o].yAxisIndex=t[o].yAxisIndex?t[o].yAxisIndex:0;var r=[].concat(e.chartData.yAxisData.ranges[t[o].yAxisIndex]);a=r.pop(),i=r.shift();var l=n*(t[o].value-a)/(i-a);t[o].y=e.height-Math.round(l)-e.area[2]}return t}(i.data,t),h=0;h<s.length;h++){var c=o({},{lineColor:"#DE4A42",showLabel:!1,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,yAxisIndex:0},s[h]);if("dash"==i.type&&a.setLineDash([i.dashLength,i.dashLength]),a.setStrokeStyle(c.lineColor),a.setLineWidth(1*t.pixelRatio),a.beginPath(),a.moveTo(n,c.y),a.lineTo(r,c.y),a.stroke(),a.setLineDash([]),c.showLabel){var d=t.yAxis.format?t.yAxis.format(Number(c.value)):c.value;a.setFontSize(e.fontSize);var p=g(d,e.fontSize),f=t.padding[3]+e.yAxisTitleWidth-e.toolTipPadding,x=Math.max(t.area[3],p+2*e.toolTipPadding),u=x-f,y=f+(u-p)/2,v=c.y;a.setFillStyle(l(c.labelBgColor,c.labelBgOpacity)),a.setStrokeStyle(c.labelBgColor),a.setLineWidth(1*t.pixelRatio),a.beginPath(),a.rect(f,v-.5*e.fontSize-e.toolTipPadding,u,e.fontSize+2*e.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(e.fontSize),a.setFillStyle(c.labelFontColor),a.fillText(String(d),y,v+.5*e.fontSize),a.stroke()}}}function tt(t,e,a,i,n){var r=o({},{gridType:"solid",dashLength:4},t.extra.tooltip),s=t.area[3],h=t.width-t.area[1];if("dash"==r.gridType&&a.setLineDash([r.dashLength,r.dashLength]),a.setStrokeStyle(r.gridColor||"#cccccc"),a.setLineWidth(1*t.pixelRatio),a.beginPath(),a.moveTo(s,t.tooltip.offset.y),a.lineTo(h,t.tooltip.offset.y),a.stroke(),a.setLineDash([]),r.yAxisLabel)for(var c=function(t,e,a,i,n){for(var o=[].concat(a.chartData.yAxisData.ranges),r=a.height-a.area[0]-a.area[2],l=a.area[0],s=[],h=0;h<o.length;h++){var c=o[h].shift(),d=o[h].pop(),p=c-(c-d)*(t-l)/r;p=a.yAxis.data[h].format?a.yAxis.data[h].format(Number(p)):p.toFixed(0),s.push(String(p))}return s}(t.tooltip.offset.y,t.series,t),d=t.chartData.yAxisData.yAxisWidth,p=t.area[3],f=t.width-t.area[1],x=0;x<c.length;x++){a.setFontSize(e.fontSize);var u,y=g(c[x],e.fontSize),v=void 0,m=void 0;"left"==d[x].position?(v=p-d[x].width,m=Math.max(v,v+y+2*e.toolTipPadding)):(v=f,m=Math.max(v+d[x].width,v+y+2*e.toolTipPadding)),u=m-v;var b=v+(u-y)/2,w=t.tooltip.offset.y;a.beginPath(),a.setFillStyle(l(r.labelBgColor||e.toolTipBackground,r.labelBgOpacity||e.toolTipOpacity)),a.setStrokeStyle(r.labelBgColor||e.toolTipBackground),a.setLineWidth(1*t.pixelRatio),a.rect(v,w-.5*e.fontSize-e.toolTipPadding,u,e.fontSize+2*e.toolTipPadding),a.closePath(),a.stroke(),a.fill(),a.beginPath(),a.setFontSize(e.fontSize),a.setFillStyle(r.labelFontColor||e.fontColor),a.fillText(c[x],b,w+.5*e.fontSize),a.closePath(),a.stroke(),"left"==d[x].position?p-=d[x].width+t.yAxis.padding:f+=d[x].width+t.yAxis.padding}}function et(t,e,a,i,n){var r=o({},{activeBgColor:"#000000",activeBgOpacity:.08},e.extra.tooltip),s=e.area[0],h=e.height-e.area[2];i.beginPath(),i.setFillStyle(l(r.activeBgColor,r.activeBgOpacity)),i.rect(t-n/2,s,n,h-s),i.closePath(),i.fill()}function at(t,e,a,i,n,r,s){var h=o({},{showBox:!0,bgColor:"#000000",bgOpacity:.7,fontColor:"#FFFFFF"},a.extra.tooltip),c=4*a.pixelRatio,d=5*a.pixelRatio,p=8*a.pixelRatio,f=!1;"line"!=a.type&&"area"!=a.type&&"candle"!=a.type&&"mix"!=a.type||function(t,e,a,i){var n=e.extra.tooltip||{};n.gridType=void 0==n.gridType?"solid":n.gridType,n.dashLength=void 0==n.dashLength?4:n.dashLength;var o=e.area[0],r=e.height-e.area[2];if("dash"==n.gridType&&i.setLineDash([n.dashLength,n.dashLength]),i.setStrokeStyle(n.gridColor||"#cccccc"),i.setLineWidth(1*e.pixelRatio),i.beginPath(),i.moveTo(t,o),i.lineTo(t,r),i.stroke(),i.setLineDash([]),n.xAxisLabel){var s=e.categories[e.tooltip.index];i.setFontSize(a.fontSize);var h=g(s,a.fontSize),c=t-.5*h,d=r;i.beginPath(),i.setFillStyle(l(n.labelBgColor||a.toolTipBackground,n.labelBgOpacity||a.toolTipOpacity)),i.setStrokeStyle(n.labelBgColor||a.toolTipBackground),i.setLineWidth(1*e.pixelRatio),i.rect(c-a.toolTipPadding,d,h+2*a.toolTipPadding,a.fontSize+2*a.toolTipPadding),i.closePath(),i.stroke(),i.fill(),i.beginPath(),i.setFontSize(a.fontSize),i.setFillStyle(n.labelFontColor||a.fontColor),i.fillText(String(s),c,d+a.toolTipPadding+a.fontSize),i.closePath(),i.stroke()}}(a.tooltip.offset.x,a,i,n),e=o({x:0,y:0},e),e.y-=8*a.pixelRatio;var x=t.map((function(t){return g(t.text,i.fontSize)})),u=c+d+4*i.toolTipPadding+Math.max.apply(null,x),y=2*i.toolTipPadding+t.length*i.toolTipLineHeight;0!=h.showBox&&(e.x-Math.abs(a._scrollDistance_)+p+u>a.width&&(f=!0),y+e.y>a.height&&(e.y=a.height-y),n.beginPath(),n.setFillStyle(l(h.bgColor||i.toolTipBackground,h.bgOpacity||i.toolTipOpacity)),f?(n.moveTo(e.x,e.y+10*a.pixelRatio),n.lineTo(e.x-p,e.y+10*a.pixelRatio-5*a.pixelRatio),n.lineTo(e.x-p,e.y),n.lineTo(e.x-p-Math.round(u),e.y),n.lineTo(e.x-p-Math.round(u),e.y+y),n.lineTo(e.x-p,e.y+y),n.lineTo(e.x-p,e.y+10*a.pixelRatio+5*a.pixelRatio),n.lineTo(e.x,e.y+10*a.pixelRatio)):(n.moveTo(e.x,e.y+10*a.pixelRatio),n.lineTo(e.x+p,e.y+10*a.pixelRatio-5*a.pixelRatio),n.lineTo(e.x+p,e.y),n.lineTo(e.x+p+Math.round(u),e.y),n.lineTo(e.x+p+Math.round(u),e.y+y),n.lineTo(e.x+p,e.y+y),n.lineTo(e.x+p,e.y+10*a.pixelRatio+5*a.pixelRatio),n.lineTo(e.x,e.y+10*a.pixelRatio)),n.closePath(),n.fill(),t.forEach((function(t,a){if(null!==t.color){n.beginPath(),n.setFillStyle(t.color);var o=e.x+p+2*i.toolTipPadding,r=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding+1;f&&(o=e.x-u-p+2*i.toolTipPadding),n.fillRect(o,r,c,i.fontSize),n.closePath()}})),t.forEach((function(t,a){var o=e.x+p+2*i.toolTipPadding+c+d;f&&(o=e.x-u-p+2*i.toolTipPadding+ +c+d);var r=e.y+(i.toolTipLineHeight-i.fontSize)/2+i.toolTipLineHeight*a+i.toolTipPadding;n.beginPath(),n.setFontSize(i.fontSize),n.setFillStyle(h.fontColor),n.fillText(t.text,o,r+i.fontSize),n.closePath(),n.stroke()})))}function it(t,e,a,i,n,o){var r=t.extra.tooltip||{};r.horizentalLine&&t.tooltip&&1===i&&("line"==t.type||"area"==t.type||"column"==t.type||"candle"==t.type||"mix"==t.type)&&tt(t,e,a),a.save(),t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&a.translate(t._scrollDistance_,0),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===i&&at(t.tooltip.textList,t.tooltip.offset,t,e,a),a.restore()}function nt(t,e,a,i){var n=e.chartData.xAxisData,o=n.xAxisPoints,r=n.startX,l=n.endX,s=n.eachSpacing,h="center";"line"!=e.type&&"area"!=e.type||(h=e.xAxis.boundaryGap);var c=e.height-e.area[2],d=e.area[0];if(e.enableScroll&&e.xAxis.scrollShow){var p=e.height-e.area[2]+a.xAxisHeight,f=l-r,x=s*(o.length-1),u=f*f/x,y=0;e._scrollDistance_&&(y=-e._scrollDistance_*f/x),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollBackgroundColor||"#EFEBEF"),i.moveTo(r,p),i.lineTo(l,p),i.stroke(),i.closePath(),i.beginPath(),i.setLineCap("round"),i.setLineWidth(6*e.pixelRatio),i.setStrokeStyle(e.xAxis.scrollColor||"#A6A6A6"),i.moveTo(r+y,p),i.lineTo(r+y+u,p),i.stroke(),i.closePath(),i.setLineCap("butt")}if(i.save(),e._scrollDistance_&&0!==e._scrollDistance_&&i.translate(e._scrollDistance_,0),!0===e.xAxis.calibration&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pixelRatio),o.forEach((function(t,a){a>0&&(i.beginPath(),i.moveTo(t-s/2,c),i.lineTo(t-s/2,c+3*e.pixelRatio),i.closePath(),i.stroke())}))),!0!==e.xAxis.disableGrid&&(i.setStrokeStyle(e.xAxis.gridColor||"#cccccc"),i.setLineCap("butt"),i.setLineWidth(1*e.pixelRatio),"dash"==e.xAxis.gridType&&i.setLineDash([e.xAxis.dashLength,e.xAxis.dashLength]),e.xAxis.gridEval=e.xAxis.gridEval||1,o.forEach((function(t,a){a%e.xAxis.gridEval==0&&(i.beginPath(),i.moveTo(t,c),i.lineTo(t,d),i.stroke())})),i.setLineDash([])),!0!==e.xAxis.disabled){var v=t.length;e.xAxis.labelCount&&(v=e.xAxis.itemCount?Math.ceil(t.length/e.xAxis.itemCount*e.xAxis.labelCount):e.xAxis.labelCount,v-=1);for(var m=Math.ceil(t.length/v),b=[],w=t.length,A=0;A<w;A++)A%m!==0?b.push(""):b.push(t[A]);b[w-1]=t[w-1];var T=e.xAxis.fontSize||a.fontSize;0===a._xAxisTextAngle_?b.forEach((function(t,n){var r=-g(String(t),T)/2;"center"==h&&(r+=s/2);var l=0;e.xAxis.scrollShow&&(l=6*e.pixelRatio),i.beginPath(),i.setFontSize(T),i.setFillStyle(e.xAxis.fontColor||"#666666"),i.fillText(String(t),o[n]+r,c+T+(a.xAxisHeight-l-T)/2),i.closePath(),i.stroke()})):b.forEach((function(t,n){i.save(),i.beginPath(),i.setFontSize(T),i.setFillStyle(e.xAxis.fontColor||"#666666");var r=g(String(t),T),l=-r;"center"==h&&(l+=s/2);var d=function(t,e,a){var i=t,n=a-e,o=i+(a-n-i)/Math.sqrt(2);o*=-1;var r=(a-n)*(Math.sqrt(2)-1)-(a-n-i)/Math.sqrt(2);return{transX:o,transY:r}}(o[n]+s/2,c+T/2+5,e.height),p=d.transX,f=d.transY;i.rotate(-1*a._xAxisTextAngle_),i.translate(p,f),i.fillText(String(t),o[n]+l,c+T+5),i.closePath(),i.stroke(),i.restore()}))}i.restore(),e.xAxis.axisLine&&(i.beginPath(),i.setStrokeStyle(e.xAxis.axisLineColor),i.setLineWidth(1*e.pixelRatio),i.moveTo(r,e.height-e.area[2]),i.lineTo(l,e.height-e.area[2]),i.stroke())}function ot(t,e,a,i){if(!0!==e.yAxis.disableGrid){for(var n=e.height-e.area[0]-e.area[2],o=n/e.yAxis.splitNumber,r=e.area[3],l=e.chartData.xAxisData.xAxisPoints,s=e.chartData.xAxisData.eachSpacing,h=s*(l.length-1),c=r+h,d=[],p=0;p<e.yAxis.splitNumber+1;p++)d.push(e.height-e.area[2]-o*p);i.save(),e._scrollDistance_&&0!==e._scrollDistance_&&i.translate(e._scrollDistance_,0),"dash"==e.yAxis.gridType&&i.setLineDash([e.yAxis.dashLength,e.yAxis.dashLength]),i.setStrokeStyle(e.yAxis.gridColor),i.setLineWidth(1*e.pixelRatio),d.forEach((function(t,e){i.beginPath(),i.moveTo(r,t),i.lineTo(c,t),i.stroke()})),i.setLineDash([]),i.restore()}}function rt(t,e,a,i){if(!0!==e.yAxis.disabled){var n=e.height-e.area[0]-e.area[2],o=n/e.yAxis.splitNumber,r=e.area[3],l=e.width-e.area[1],s=e.height-e.area[2],h=s+a.xAxisHeight;e.xAxis.scrollShow&&(h-=3*e.pixelRatio),e.xAxis.rotateLabel&&(h=e.height-e.area[2]+3),i.beginPath(),i.setFillStyle(e.background||"#ffffff"),e._scrollDistance_<0&&i.fillRect(0,0,r,h),1==e.enableScroll&&i.fillRect(l,0,e.width,h),i.closePath(),i.stroke();for(var c=[],d=0;d<=e.yAxis.splitNumber;d++)c.push(e.area[0]+o*d);for(var p=e.area[3],f=e.width-e.area[1],x=function(t){var n=e.yAxis.data[t];if(!0!==n.disabled){var o=e.chartData.yAxisData.rangesFormat[t],r=n.fontSize||a.fontSize,l=e.chartData.yAxisData.yAxisWidth[t];if(o.forEach((function(t,a){var o=c[a]?c[a]:s;i.beginPath(),i.setFontSize(r),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(n.axisLineColor||"#cccccc"),i.setFillStyle(n.fontColor||"#666666"),"left"==l.position?(i.fillText(String(t),p-l.width,o+r/2),1==n.calibration&&(i.moveTo(p,o),i.lineTo(p-3*e.pixelRatio,o))):(i.fillText(String(t),f+4*e.pixelRatio,o+r/2),1==n.calibration&&(i.moveTo(f,o),i.lineTo(f+3*e.pixelRatio,o))),i.closePath(),i.stroke()})),!1!==n.axisLine&&(i.beginPath(),i.setStrokeStyle(n.axisLineColor||"#cccccc"),i.setLineWidth(1*e.pixelRatio),"left"==l.position?(i.moveTo(p,e.height-e.area[2]),i.lineTo(p,e.area[0])):(i.moveTo(f,e.height-e.area[2]),i.lineTo(f,e.area[0])),i.stroke()),e.yAxis.showTitle){var h=n.titleFontSize||a.fontSize,d=n.title;i.beginPath(),i.setFontSize(h),i.setFillStyle(n.titleFontColor||"#666666"),"left"==l.position?i.fillText(d,p-g(d,h)/2,e.area[0]-10*e.pixelRatio):i.fillText(d,f-g(d,h)/2,e.area[0]-10*e.pixelRatio),i.closePath(),i.stroke()}"left"==l.position?p-=l.width+e.yAxis.padding:f+=l.width+e.yAxis.padding}},u=0;u<e.yAxis.data.length;u++)x(u)}}function lt(t,e,a,i,n){if(!1!==e.legend.show){var o=n.legendData,r=o.points,l=o.area,s=e.legend.padding,h=e.legend.fontSize,c=15*e.pixelRatio,d=5*e.pixelRatio,p=e.legend.itemGap,f=Math.max(e.legend.lineHeight*e.pixelRatio,h);i.beginPath(),i.setLineWidth(e.legend.borderWidth),i.setStrokeStyle(e.legend.borderColor),i.setFillStyle(e.legend.backgroundColor),i.moveTo(l.start.x,l.start.y),i.rect(l.start.x,l.start.y,l.width,l.height),i.closePath(),i.fill(),i.stroke(),r.forEach((function(t,n){var r,x=0;x=o.widthArr[n],r=o.heightArr[n];var u=0,y=0;"top"==e.legend.position||"bottom"==e.legend.position?(u=l.start.x+(l.width-x)/2,y=l.start.y+s+n*f):(x=0==n?0:o.widthArr[n-1],u=l.start.x+s+x,y=l.start.y+s+(l.height-r)/2),i.setFontSize(a.fontSize);for(var v=0;v<t.length;v++){var m=t[v];switch(m.area=[0,0,0,0],m.area[0]=u,m.area[1]=y,m.area[3]=y+f,i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(m.show?m.color:e.legend.hiddenColor),i.setFillStyle(m.show?m.color:e.legend.hiddenColor),m.legendShape){case"line":i.moveTo(u,y+.5*f-2*e.pixelRatio),i.fillRect(u,y+.5*f-2*e.pixelRatio,15*e.pixelRatio,4*e.pixelRatio);break;case"triangle":i.moveTo(u+7.5*e.pixelRatio,y+.5*f-5*e.pixelRatio),i.lineTo(u+2.5*e.pixelRatio,y+.5*f+5*e.pixelRatio),i.lineTo(u+12.5*e.pixelRatio,y+.5*f+5*e.pixelRatio),i.lineTo(u+7.5*e.pixelRatio,y+.5*f-5*e.pixelRatio);break;case"diamond":i.moveTo(u+7.5*e.pixelRatio,y+.5*f-5*e.pixelRatio),i.lineTo(u+2.5*e.pixelRatio,y+.5*f),i.lineTo(u+7.5*e.pixelRatio,y+.5*f+5*e.pixelRatio),i.lineTo(u+12.5*e.pixelRatio,y+.5*f),i.lineTo(u+7.5*e.pixelRatio,y+.5*f-5*e.pixelRatio);break;case"circle":i.moveTo(u+7.5*e.pixelRatio,y+.5*f),i.arc(u+7.5*e.pixelRatio,y+.5*f,5*e.pixelRatio,0,2*Math.PI);break;case"rect":i.moveTo(u,y+.5*f-5*e.pixelRatio),i.fillRect(u,y+.5*f-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio);break;default:i.moveTo(u,y+.5*f-5*e.pixelRatio),i.fillRect(u,y+.5*f-5*e.pixelRatio,15*e.pixelRatio,10*e.pixelRatio)}i.closePath(),i.fill(),i.stroke(),u+=c+d;var b=.5*f+.5*h-2;i.beginPath(),i.setFontSize(h),i.setFillStyle(m.show?e.legend.fontColor:e.legend.hiddenColor),i.fillText(m.name,u,y+b),i.closePath(),i.stroke(),"top"==e.legend.position||"bottom"==e.legend.position?(u+=g(m.name,h)+p,m.area[2]=u):(m.area[2]=u+g(m.name,h)+p,u-=c+d,y+=f)}}))}}function st(t,e,a){a=0==a?1:a;for(var i=[],n=0;n<a;n++)i[n]=Math.random();return Math.floor(i.reduce((function(t,e){return t+e}))/a*(e-t))+t}function ht(t,e,a,i){for(var n=!1,o=0;o<e.length;o++)if(e[o].area){if(!(t[3]<e[o].area[1]||t[0]>e[o].area[2]||t[1]>e[o].area[3]||t[2]<e[o].area[0])){n=!0;break}if(t[0]<0||t[1]<0||t[2]>a||t[3]>i){n=!0;break}n=!1}return n}function ct(t,e,a,i,n,o){return{x:(e-a.xMin)*i+n,y:(a.yMax-t)*i+o}}function dt(t,e,a){if(e[1]==a[1])return!1;if(e[1]>t[1]&&a[1]>t[1])return!1;if(e[1]<t[1]&&a[1]<t[1])return!1;if(e[1]==t[1]&&a[1]>t[1])return!1;if(a[1]==t[1]&&e[1]>t[1])return!1;if(e[0]<t[0]&&a[1]<t[1])return!1;var i=a[0]-(a[0]-e[0])*(a[1]-t[1])/(a[1]-e[1]);return!(i<t[0])}function pt(t,e){for(var a=0,i=0;i<e.length;i++){var n=e[i][0];1==e.length&&(n=e[i][0]);for(var o=0;o<n.length-1;o++){var r=n[o],l=n[o+1];dt(t,r,l)&&(a+=1)}}return a%2==1}function ft(t,e,a,i,n,o,l){for(var s=0;s<t.length;s++){var h=t[s],c=void 0,d=void 0,p=void 0,f=void 0,x=h.format?h.format(+h._proportion_.toFixed(2)):r.toFixed(100*h._proportion_)+"%";"right"==n?(c=0==s?(h.funnelArea[2]+l.x)/2:(h.funnelArea[2]+t[s-1].funnelArea[2])/2,d=c+2*o,p=h.funnelArea[1]+i/2,f=h.textSize||e.fontSize,a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(h.color),a.setFillStyle(h.color),a.beginPath(),a.moveTo(c,p),a.lineTo(d,p),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(d,p),a.arc(d,p,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(f),a.setFillStyle(h.textColor||"#666666"),a.fillText(x,d+5,p+f/2-2),a.closePath(),a.stroke(),a.closePath()):(c=0==s?(h.funnelArea[0]+l.x)/2:(h.funnelArea[0]+t[s-1].funnelArea[0])/2,d=c-2*o,p=h.funnelArea[1]+i/2,f=h.textSize||e.fontSize,a.setLineWidth(1*e.pixelRatio),a.setStrokeStyle(h.color),a.setFillStyle(h.color),a.beginPath(),a.moveTo(c,p),a.lineTo(d,p),a.stroke(),a.closePath(),a.beginPath(),a.moveTo(d,p),a.arc(d,p,2,0,2*Math.PI),a.closePath(),a.fill(),a.beginPath(),a.setFontSize(f),a.setFillStyle(h.textColor||"#666666"),a.fillText(x,d-5-g(x),p+f/2-2),a.closePath(),a.stroke(),a.closePath())}}function xt(t,e){e.draw()}var gt={easeIn:function(t){return Math.pow(t,3)},easeOut:function(t){return Math.pow(t-1,3)+1},easeInOut:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},linear:function(t){return t}};function ut(t){this.isStop=!1,t.duration="undefined"===typeof t.duration?1e3:t.duration,t.timing=t.timing||"linear";var e=function(){return"undefined"!==typeof setTimeout?function(t,e){setTimeout((function(){var e=+new Date;t(e)}),e)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(t){t(null)}}(),a=null,i=function(n){if(null===n||!0===this.isStop)return t.onProcess&&t.onProcess(1),void(t.onAnimationFinish&&t.onAnimationFinish());if(null===a&&(a=n),n-a<t.duration){var o=(n-a)/t.duration,r=gt[t.timing];o=r(o),t.onProcess&&t.onProcess(o),e(i,17)}else t.onProcess&&t.onProcess(1),t.onAnimationFinish&&t.onAnimationFinish()};i=i.bind(this),e(i,17)}function yt(t,e,a,i){var n=this,s=e.series,h=e.categories;s=f(s,e,a);var p=e.animation?e.duration:0;n.animationInstance&&n.animationInstance.stop();var x=null;if("candle"==t){var u=o({},e.extra.candle.average);u.show?(x=function(t,e,a,i){for(var n=[],o=0;o<t.length;o++){for(var r={data:[],name:e[o],color:a[o]},l=0,s=i.length;l<s;l++)if(l<t[o])r.data.push(null);else{for(var h=0,c=0;c<t[o];c++)h+=i[l-c][1];r.data.push(+(h/t[o]).toFixed(3))}n.push(r)}return n}(u.day,u.name,u.color,s[0].data),x=f(x,e,a),e.seriesMA=x):x=e.seriesMA?e.seriesMA=f(e.seriesMA,e,a):s}else x=s;e._series_=s=function(t){for(var e=[],a=0;a<t.length;a++)1==t[a].show&&e.push(t[a]);return e}(s),e.area=new Array(4);for(var y=0;y<4;y++)e.area[y]=e.padding[y];var v=function(t,e,a,i){var n={area:{start:{x:0,y:0},end:{x:0,y:0},width:0,height:0,wholeWidth:0,wholeHeight:0},points:[],widthArr:[],heightArr:[]};if(!1===e.legend.show)return i.legendData=n,n;var o=e.legend.padding,r=e.legend.margin,l=e.legend.fontSize,s=15*e.pixelRatio,h=5*e.pixelRatio,c=Math.max(e.legend.lineHeight*e.pixelRatio,l);if("top"==e.legend.position||"bottom"==e.legend.position){for(var d=[],p=0,f=[],x=[],u=0;u<t.length;u++){var y=t[u],v=s+h+g(y.name||"undefined",l)+e.legend.itemGap;p+v>e.width-e.padding[1]-e.padding[3]?(d.push(x),f.push(p-e.legend.itemGap),p=v,x=[y]):(p+=v,x.push(y))}if(x.length){d.push(x),f.push(p-e.legend.itemGap),n.widthArr=f;var m=Math.max.apply(null,f);switch(e.legend.float){case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+2*o;break;case"right":n.area.start.x=e.width-e.padding[1]-m-2*o,n.area.end.x=e.width-e.padding[1];break;default:n.area.start.x=(e.width-m)/2-o,n.area.end.x=(e.width+m)/2+o}n.area.width=m+2*o,n.area.wholeWidth=m+2*o,n.area.height=d.length*c+2*o,n.area.wholeHeight=d.length*c+2*o+2*r,n.points=d}}else{var b=t.length,w=e.height-e.padding[0]-e.padding[2]-2*r-2*o,A=Math.min(Math.floor(w/c),b);switch(n.area.height=A*c+2*o,n.area.wholeHeight=A*c+2*o,e.legend.float){case"top":n.area.start.y=e.padding[0]+r,n.area.end.y=e.padding[0]+r+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-r-n.area.height,n.area.end.y=e.height-e.padding[2]-r;break;default:n.area.start.y=(e.height-n.area.height)/2,n.area.end.y=(e.height+n.area.height)/2}for(var T=b%A===0?b/A:Math.floor(b/A+1),S=[],_=0;_<T;_++){var P=t.slice(_*A,_*A+A);S.push(P)}if(n.points=S,S.length){for(var D=0;D<S.length;D++){for(var M=S[D],L=0,F=0;F<M.length;F++){var k=s+h+g(M[F].name||"undefined",l)+e.legend.itemGap;k>L&&(L=k)}n.widthArr.push(L),n.heightArr.push(M.length*c+2*o)}for(var C=0,R=0;R<n.widthArr.length;R++)C+=n.widthArr[R];n.area.width=C-e.legend.itemGap+2*o,n.area.wholeWidth=n.area.width+o}}switch(e.legend.position){case"top":n.area.start.y=e.padding[0]+r,n.area.end.y=e.padding[0]+r+n.area.height;break;case"bottom":n.area.start.y=e.height-e.padding[2]-n.area.height-r,n.area.end.y=e.height-e.padding[2]-r;break;case"left":n.area.start.x=e.padding[3],n.area.end.x=e.padding[3]+n.area.width;break;case"right":n.area.start.x=e.width-e.padding[1]-n.area.width,n.area.end.x=e.width-e.padding[1];break}return i.legendData=n,n}(x,e,0,e.chartData),m=v.area.wholeHeight,A=v.area.wholeWidth;switch(e.legend.position){case"top":e.area[0]+=m;break;case"bottom":e.area[2]+=m;break;case"left":e.area[3]+=A;break;case"right":e.area[1]+=A;break}var T={},S=0;if("line"===e.type||"column"===e.type||"area"===e.type||"mix"===e.type||"candle"===e.type){if(T=j(s,e,a),S=T.yAxisWidth,e.yAxis.showTitle){for(var _=0,P=0;P<e.yAxis.data.length;P++)_=Math.max(_,e.yAxis.data[P].titleFontSize?e.yAxis.data[P].titleFontSize:a.fontSize);e.area[0]+=(_+6)*e.pixelRatio}for(var G=0,tt=0,at=0;at<S.length;at++)"left"==S[at].position?(e.area[3]+=tt>0?S[at].width+e.yAxis.padding:S[at].width,tt+=1):(e.area[1]+=G>0?S[at].width+e.yAxis.padding:S[at].width,G+=1)}else a.yAxisWidth=S;if(e.chartData.yAxisData=T,e.categories&&e.categories.length){e.chartData.xAxisData=B(e.categories,e);var dt=M(e.categories,e,a,e.chartData.xAxisData.eachSpacing),pt=dt.xAxisHeight,gt=dt.angle;a.xAxisHeight=pt,a._xAxisTextAngle_=gt,e.area[2]+=pt,e.chartData.categoriesData=dt}else if("line"===e.type||"area"===e.type||"points"===e.type){e.chartData.xAxisData=L(s,e,a),h=e.chartData.xAxisData.rangesFormat;var yt=M(h,e,a,e.chartData.xAxisData.eachSpacing),vt=yt.xAxisHeight,mt=yt.angle;a.xAxisHeight=vt,a._xAxisTextAngle_=mt,e.area[2]+=vt,e.chartData.categoriesData=yt}else e.chartData.xAxisData={xAxisPoints:[]};if(e.enableScroll&&"right"==e.xAxis.scrollAlign&&void 0===e._scrollDistance_){var bt,wt=e.chartData.xAxisData.xAxisPoints,At=e.chartData.xAxisData.startX,Tt=e.chartData.xAxisData.endX,St=e.chartData.xAxisData.eachSpacing,_t=St*(wt.length-1),Pt=Tt-At;bt=Pt-_t,n.scrollOption={currentOffset:bt,startTouchX:bt,distance:0,lastMoveTime:0},e._scrollDistance_=bt}switch("pie"!==t&&"ring"!==t&&"rose"!==t||(a._pieTextMaxLength_=!1===e.dataLabel?0:function(t){t=k(t);for(var e=0,a=0;a<t.length;a++){var i=t[a],n=i.format?i.format(+i._proportion_.toFixed(2)):r.toFixed(100*i._proportion_)+"%";e=Math.max(e,g(n))}return e}(x)),t){case"word":var Dt=o({},{type:"normal",autoColors:!0},e.extra.word);1!=e.updateData&&void 0!=e.updateData||(e.chartData.wordCloudData=function(t,e){var a=t.series.sort((function(t,e){return parseInt(e.textSize)-parseInt(t.textSize)}));switch(e){case"normal":for(var i=0;i<a.length;i++){var n=a[i].name,o=a[i].textSize,r=g(n,o),l=void 0,s=void 0,h=void 0,c=0;while(1){c++,l=st(-t.width/2,t.width/2,5)-r/2,s=st(-t.height/2,t.height/2,5)+o/2,h=[l-5+t.width/2,s-5-o+t.height/2,l+r+5+t.width/2,s+5+t.height/2];var d=ht(h,a,t.width,t.height);if(!d)break;if(1e3==c){h=[-100,-100,-100,-100];break}}a[i].area=h}break;case"vertical":for(var p=function(){return Math.random()>.7},f=0;f<a.length;f++){var x=a[f].name,u=a[f].textSize,y=g(x,u),v=p(),m=void 0,b=void 0,w=void 0,A=void 0,T=0;while(1){T++;var S=void 0;if(v?(m=st(-t.width/2,t.width/2,5)-y/2,b=st(-t.height/2,t.height/2,5)+u/2,w=[b-5-y+t.width/2,-m-5+t.height/2,b+5+t.width/2,-m+u+5+t.height/2],A=[t.width-(t.width/2-t.height/2)-(-m+u+5+t.height/2)-5,t.height/2-t.width/2+(b-5-y+t.width/2)-5,t.width-(t.width/2-t.height/2)-(-m+u+5+t.height/2)+u,t.height/2-t.width/2+(b-5-y+t.width/2)+y+5],S=ht(A,a,t.height,t.width)):(m=st(-t.width/2,t.width/2,5)-y/2,b=st(-t.height/2,t.height/2,5)+u/2,w=[m-5+t.width/2,b-5-u+t.height/2,m+y+5+t.width/2,b+5+t.height/2],S=ht(w,a,t.width,t.height)),!S)break;if(1e3==T){w=[-1e3,-1e3,-1e3,-1e3];break}}v?(a[f].area=A,a[f].areav=w):a[f].area=w,a[f].rotate=v}break}return a}(e,Dt.type)),this.animationInstance=new ut({timing:"easeInOut",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;o({},{type:"normal",autoColors:!0},e.extra.word),i.beginPath(),i.setFillStyle(e.background||"#FFFFFF"),i.rect(0,0,e.width,e.height),i.fill(),i.save();var r=e.chartData.wordCloudData;i.translate(e.width/2,e.height/2);for(var l=0;l<r.length;l++){i.save(),r[l].rotate&&i.rotate(90*Math.PI/180);var s=r[l].name,h=r[l].textSize,c=g(s,h);i.beginPath(),i.setStrokeStyle(r[l].color),i.setFillStyle(r[l].color),i.setFontSize(h),r[l].rotate?r[l].areav[0]>0&&(e.tooltip&&e.tooltip.index==l?i.strokeText(s,(r[l].areav[0]+5-e.width/2)*n-c*(1-n)/2,(r[l].areav[1]+5+h-e.height/2)*n):i.fillText(s,(r[l].areav[0]+5-e.width/2)*n-c*(1-n)/2,(r[l].areav[1]+5+h-e.height/2)*n)):r[l].area[0]>0&&(e.tooltip&&e.tooltip.index==l?i.strokeText(s,(r[l].area[0]+5-e.width/2)*n-c*(1-n)/2,(r[l].area[1]+5+h-e.height/2)*n):i.fillText(s,(r[l].area[0]+5-e.width/2)*n-c*(1-n)/2,(r[l].area[1]+5+h-e.height/2)*n)),i.stroke(),i.restore()}i.restore()}(s,e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"map":i.clearRect(0,0,e.width,e.height),function(t,e,a,i){var n,r,s=o({},{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},e.extra.map),h=t,c=function(t){for(var e,a={xMin:180,xMax:0,yMin:90,yMax:0},i=0;i<t.length;i++)for(var n=t[i].geometry.coordinates,o=0;o<n.length;o++){e=n[o],1==e.length&&(e=e[0]);for(var r=0;r<e.length;r++){var l=e[r][0],s=e[r][1],h={x:l,y:s};a.xMin=a.xMin<h.x?a.xMin:h.x,a.xMax=a.xMax>h.x?a.xMax:h.x,a.yMin=a.yMin<h.y?a.yMin:h.y,a.yMax=a.yMax>h.y?a.yMax:h.y}}return a}(h),d=e.width/Math.abs(c.xMax-c.xMin),p=e.height/Math.abs(c.yMax-c.yMin),f=d<p?d:p,x=e.width/2-Math.abs(c.xMax-c.xMin)/2*f,u=e.height/2-Math.abs(c.yMax-c.yMin)/2*f;i.beginPath(),i.clearRect(0,0,e.width,e.height),i.setFillStyle(e.background||"#FFFFFF"),i.rect(0,0,e.width,e.height),i.fill();for(var y=0;y<h.length;y++){i.beginPath(),i.setLineWidth(s.borderWidth*e.pixelRatio),i.setStrokeStyle(s.borderColor),i.setFillStyle(l(t[y].color,s.fillOpacity)),e.tooltip&&e.tooltip.index==y&&(i.setStrokeStyle(s.activeBorderColor),i.setFillStyle(l(s.activeFillColor,s.activeFillOpacity)));for(var v=h[y].geometry.coordinates,m=0;m<v.length;m++){n=v[m],1==n.length&&(n=n[0]);for(var b=0;b<n.length;b++)r=ct(n[b][1],n[b][0],c,f,x,u),0===b?(i.beginPath(),i.moveTo(r.x,r.y)):i.lineTo(r.x,r.y);i.fill(),1==s.border&&i.stroke()}if(1==e.dataLabel){var w=h[y].properties.centroid;if(w){r=ct(w[1],w[0],c,f,x,u);var A=h[y].textSize||a.fontSize,T=h[y].properties.name;i.beginPath(),i.setFontSize(A),i.setFillStyle(h[y].textColor||"#666666"),i.fillText(T,r.x-g(T,A)/2,r.y+A/2),i.closePath(),i.stroke()}}}e.chartData.mapData={bounds:c,scale:f,xoffset:x,yoffset:u},it(e,a,i,1),i.draw()}(s,e,a,i);break;case"funnel":this.animationInstance=new ut({timing:"easeInOut",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.funnelData=function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"},e.extra.funnel),s=(e.height-e.area[0]-e.area[2])/t.length,h={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.height-e.area[2]},c=r.activeWidth,d=Math.min((e.width-e.area[1]-e.area[3])/2-c,(e.height-e.area[0]-e.area[2])/2-c);t=C(t,d,n),i.save(),i.translate(h.x,h.y);for(var p=0;p<t.length;p++)0==p?(e.tooltip&&e.tooltip.index==p&&(i.beginPath(),i.setFillStyle(l(t[p].color,r.activeOpacity)),i.moveTo(-c,0),i.lineTo(-t[p].radius-c,-s),i.lineTo(t[p].radius+c,-s),i.lineTo(c,0),i.lineTo(-c,0),i.closePath(),i.fill()),t[p].funnelArea=[h.x-t[p].radius,h.y-s,h.x+t[p].radius,h.y],i.beginPath(),i.setLineWidth(r.borderWidth*e.pixelRatio),i.setStrokeStyle(r.borderColor),i.setFillStyle(l(t[p].color,r.fillOpacity)),i.moveTo(0,0),i.lineTo(-t[p].radius,-s),i.lineTo(t[p].radius,-s),i.lineTo(0,0),i.closePath(),i.fill(),1==r.border&&i.stroke()):(e.tooltip&&e.tooltip.index==p&&(i.beginPath(),i.setFillStyle(l(t[p].color,r.activeOpacity)),i.moveTo(0,0),i.lineTo(-t[p-1].radius-c,0),i.lineTo(-t[p].radius-c,-s),i.lineTo(t[p].radius+c,-s),i.lineTo(t[p-1].radius+c,0),i.lineTo(0,0),i.closePath(),i.fill()),t[p].funnelArea=[h.x-t[p].radius,h.y-s*(p+1),h.x+t[p].radius,h.y-s*p],i.beginPath(),i.setLineWidth(r.borderWidth*e.pixelRatio),i.setStrokeStyle(r.borderColor),i.setFillStyle(l(t[p].color,r.fillOpacity)),i.moveTo(0,0),i.lineTo(-t[p-1].radius,0),i.lineTo(-t[p].radius,-s),i.lineTo(t[p].radius,-s),i.lineTo(t[p-1].radius,0),i.lineTo(0,0),i.closePath(),i.fill(),1==r.border&&i.stroke()),i.translate(0,-s);return i.restore(),!1!==e.dataLabel&&1===n&&ft(t,e,i,s,r.labelAlign,c,h),{center:h,radius:d,series:t}}(s,e,a,i,t),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"line":this.animationInstance=new ut({timing:"easeIn",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),ot(0,e,0,i),nt(h,e,a,i);var n=function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{type:"straight",width:2},e.extra.line);r.width*=e.pixelRatio;var l=e.chartData.xAxisData,s=l.xAxisPoints,h=l.eachSpacing,d=[];i.save();var p=0,f=e.width+h;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),p=-e._scrollDistance_-h+e.area[3],f=p+(e.xAxis.itemCount+4)*h),t.forEach((function(t,o){var l,x,g;l=[].concat(e.chartData.yAxisData.ranges[t.index]),x=l.pop(),g=l.shift();var u=t.data,y=N(u,x,g,s,h,e,a,n);d.push(y);var v=D(y);if("dash"==t.lineType){var m=t.dashLength?t.dashLength:8;m*=e.pixelRatio,i.setLineDash([m,m])}i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(r.width),v.forEach((function(t,e){if(1===t.length)i.moveTo(t[0].x,t[0].y),i.arc(t[0].x,t[0].y,1,0,2*Math.PI);else{i.moveTo(t[0].x,t[0].y);var a=0;if("curve"===r.type)for(var n=0;n<t.length;n++){var o=t[n];if(0==a&&o.x>p&&(i.moveTo(o.x,o.y),a=1),n>0&&o.x>p&&o.x<f){var l=c(t,n-1);i.bezierCurveTo(l.ctrA.x,l.ctrA.y,l.ctrB.x,l.ctrB.y,o.x,o.y)}}else for(var s=0;s<t.length;s++){var h=t[s];0==a&&h.x>p&&(i.moveTo(h.x,h.y),a=1),s>0&&h.x>p&&h.x<f&&i.lineTo(h.x,h.y)}i.moveTo(t[0].x,t[0].y)}})),i.stroke(),i.setLineDash([]),!1!==e.dataPointShape&&Y(y,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===n&&t.forEach((function(t,o){var r,l,c;r=[].concat(e.chartData.yAxisData.ranges[t.index]),l=r.pop(),c=r.shift();var d=t.data,p=N(d,l,c,s,h,e,a,n);Z(p,t,a,i)})),i.restore(),{xAxisPoints:s,calPoints:d,eachSpacing:h}}(s,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,d=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=d,rt(0,e,a,i),!1!==e.enableMarkLine&&1===t&&U(e,a,i),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"mix":this.animationInstance=new ut({timing:"easeIn",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),ot(0,e,0,i),nt(h,e,a,i);var n=function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=e.chartData.xAxisData,r=o.xAxisPoints,s=o.eachSpacing,h=e.height-e.area[2],d=[],p=0,f=0;t.forEach((function(t,e){"column"==t.type&&(f+=1)})),i.save();var x=-2,g=r.length+2,u=0,y=e.width+s;if(e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),x=Math.floor(-e._scrollDistance_/s)-2,g=x+e.xAxis.itemCount+4,u=-e._scrollDistance_-s+e.area[3],y=u+(e.xAxis.itemCount+4)*s),t.forEach((function(t,o){var v,m,b;v=[].concat(e.chartData.yAxisData.ranges[t.index]),m=v.pop(),b=v.shift();var w=t.data,A=N(w,m,b,r,s,e,a,n);if(d.push(A),"column"==t.type){A=W(A,s,f,p,a,e);for(var T=0;T<A.length;T++){var S=A[T];if(null!==S&&T>x&&T<g){i.beginPath(),i.setStrokeStyle(S.color||t.color),i.setLineWidth(1),i.setFillStyle(S.color||t.color);var _=S.x-S.width/2;e.height,S.y,e.area[2];i.moveTo(_,S.y),i.moveTo(_,S.y),i.lineTo(_+S.width-2,S.y),i.lineTo(_+S.width-2,e.height-e.area[2]),i.lineTo(_,e.height-e.area[2]),i.lineTo(_,S.y),i.closePath(),i.stroke(),i.fill(),i.closePath(),i.fill()}}p+=1}if("area"==t.type)for(var P=D(A),M=0;M<P.length;M++){var L=P[M];if(i.beginPath(),i.setStrokeStyle(t.color),i.setFillStyle(l(t.color,.2)),i.setLineWidth(2*e.pixelRatio),L.length>1){var F=L[0],k=L[L.length-1];i.moveTo(F.x,F.y);var C=0;if("curve"===t.style)for(var R=0;R<L.length;R++){var z=L[R];if(0==C&&z.x>u&&(i.moveTo(z.x,z.y),C=1),R>0&&z.x>u&&z.x<y){var I=c(L,R-1);i.bezierCurveTo(I.ctrA.x,I.ctrA.y,I.ctrB.x,I.ctrB.y,z.x,z.y)}}else for(var O=0;O<L.length;O++){var E=L[O];0==C&&E.x>u&&(i.moveTo(E.x,E.y),C=1),O>0&&E.x>u&&E.x<y&&i.lineTo(E.x,E.y)}i.lineTo(k.x,h),i.lineTo(F.x,h),i.lineTo(F.x,F.y)}else{var $=L[0];i.moveTo($.x-s/2,$.y),i.lineTo($.x+s/2,$.y),i.lineTo($.x+s/2,h),i.lineTo($.x-s/2,h),i.moveTo($.x-s/2,$.y)}i.closePath(),i.fill()}if("line"==t.type){var B=D(A);B.forEach((function(a,n){if("dash"==t.lineType){var o=t.dashLength?t.dashLength:8;o*=e.pixelRatio,i.setLineDash([o,o])}if(i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(2*e.pixelRatio),1===a.length)i.moveTo(a[0].x,a[0].y),i.arc(a[0].x,a[0].y,1,0,2*Math.PI);else{i.moveTo(a[0].x,a[0].y);var r=0;if("curve"==t.style)for(var l=0;l<a.length;l++){var s=a[l];if(0==r&&s.x>u&&(i.moveTo(s.x,s.y),r=1),l>0&&s.x>u&&s.x<y){var h=c(a,l-1);i.bezierCurveTo(h.ctrA.x,h.ctrA.y,h.ctrB.x,h.ctrB.y,s.x,s.y)}}else for(var d=0;d<a.length;d++){var p=a[d];0==r&&p.x>u&&(i.moveTo(p.x,p.y),r=1),d>0&&p.x>u&&p.x<y&&i.lineTo(p.x,p.y)}i.moveTo(a[0].x,a[0].y)}i.stroke(),i.setLineDash([])}))}"point"==t.type&&(t.addPoint=!0),1==t.addPoint&&"column"!==t.type&&Y(A,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===n){p=0;t.forEach((function(t,o){var l,h,c;l=[].concat(e.chartData.yAxisData.ranges[t.index]),h=l.pop(),c=l.shift();var d=t.data,x=N(d,h,c,r,s,e,a,n);"column"!==t.type?Z(x,t,a,i):(x=W(x,s,f,p,a,e),Z(x,t,a,i),p+=1)}))}return i.restore(),{xAxisPoints:r,calPoints:d,eachSpacing:s}}(s,e,a,i,t),o=n.xAxisPoints,r=n.calPoints,d=n.eachSpacing;e.chartData.xAxisPoints=o,e.chartData.calPoints=r,e.chartData.eachSpacing=d,rt(0,e,a,i),!1!==e.enableMarkLine&&1===t&&U(e,a,i),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"column":this.animationInstance=new ut({timing:"easeIn",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),ot(0,e,0,i),nt(h,e,a,i);var n=function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=e.chartData.xAxisData,l=r.xAxisPoints,s=r.eachSpacing,h=o({},{type:"group",width:s/2,meter:{border:4,fillColor:"#FFFFFF"}},e.extra.column),c=[];i.save();var d=-2,p=l.length+2;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),d=Math.floor(-e._scrollDistance_/s)-2,p=d+e.xAxis.itemCount+4),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&et(e.tooltip.offset.x,e,0,i,s),t.forEach((function(o,r){var f,x,g;f=[].concat(e.chartData.yAxisData.ranges[o.index]),x=f.pop(),g=f.shift();var u=o.data;switch(h.type){case"group":var y=N(u,x,g,l,s,e,a,n),v=X(u,x,g,l,s,e,a,r,t,n);c.push(v),y=W(y,s,t.length,r,a,e);for(var m=0;m<y.length;m++){var b=y[m];if(null!==b&&m>d&&m<p){i.beginPath(),i.setStrokeStyle(b.color||o.color),i.setLineWidth(1),i.setFillStyle(b.color||o.color);var w=b.x-b.width/2,A=e.height-b.y-e.area[2];i.moveTo(w,b.y),i.lineTo(w+b.width-2,b.y),i.lineTo(w+b.width-2,e.height-e.area[2]),i.lineTo(w,e.height-e.area[2]),i.lineTo(w,b.y),i.closePath(),i.stroke(),i.fill()}}break;case"stack":y=X(u,x,g,l,s,e,a,r,t,n);c.push(y),y=$(y,s,t.length,0,a,e);for(var T=0;T<y.length;T++){var S=y[T];if(null!==S&&T>d&&T<p){i.beginPath(),i.setFillStyle(S.color||o.color);w=S.x-S.width/2+1,A=e.height-S.y-e.area[2];var _=e.height-S.y0-e.area[2];r>0&&(A-=_),i.moveTo(w,S.y),i.fillRect(w,S.y,S.width-2,A),i.closePath(),i.fill()}}break;case"meter":y=N(u,x,g,l,s,e,a,n);if(c.push(y),y=E(y,s,t.length,r,a,e,h.meter.border),0==r)for(var P=0;P<y.length;P++){var D=y[P];if(null!==D&&P>d&&P<p){i.beginPath(),i.setFillStyle(h.meter.fillColor);w=D.x-D.width/2,A=e.height-D.y-e.area[2];i.moveTo(w,D.y),i.fillRect(w,D.y,D.width,A),i.closePath(),i.fill(),h.meter.border>0&&(i.beginPath(),i.setStrokeStyle(o.color),i.setLineWidth(h.meter.border*e.pixelRatio),i.moveTo(w+.5*h.meter.border,D.y+A),i.lineTo(w+.5*h.meter.border,D.y+.5*h.meter.border),i.lineTo(w+D.width-.5*h.meter.border,D.y+.5*h.meter.border),i.lineTo(w+D.width-.5*h.meter.border,D.y+A),i.stroke())}}else for(var M=0;M<y.length;M++){var L=y[M];if(null!==L&&M>d&&M<p){i.beginPath(),i.setFillStyle(L.color||o.color);w=L.x-L.width/2,A=e.height-L.y-e.area[2];i.moveTo(w,L.y),i.fillRect(w,L.y,L.width,A),i.closePath(),i.fill()}}break}})),!1!==e.dataLabel&&1===n&&t.forEach((function(o,r){var c,d,p;c=[].concat(e.chartData.yAxisData.ranges[o.index]),d=c.pop(),p=c.shift();var f=o.data;switch(h.type){case"group":var x=N(f,d,p,l,s,e,a,n);x=W(x,s,t.length,r,a,e),Z(x,o,a,i);break;case"stack":x=X(f,d,p,l,s,e,a,r,t,n);Z(x,o,a,i);break;case"meter":x=N(f,d,p,l,s,e,a,n);Z(x,o,a,i);break}})),i.restore(),{xAxisPoints:l,calPoints:c,eachSpacing:s}}(s,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,c=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=c,rt(0,e,a,i),!1!==e.enableMarkLine&&1===t&&U(e,a,i),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"area":this.animationInstance=new ut({timing:"easeIn",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),ot(0,e,0,i),nt(h,e,a,i);var n=function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},e.extra.area),s=e.chartData.xAxisData,h=s.xAxisPoints,d=s.eachSpacing,p=e.height-e.area[2],f=[];i.save();var x=0,g=e.width+d;return e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&(i.translate(e._scrollDistance_,0),x=-e._scrollDistance_-d+e.area[3],g=x+(e.xAxis.itemCount+4)*d),t.forEach((function(t,o){var s,u,y;s=[].concat(e.chartData.yAxisData.ranges[t.index]),u=s.pop(),y=s.shift();var v=t.data,m=N(v,u,y,h,d,e,a,n);f.push(m);for(var b=D(m),w=0;w<b.length;w++){var A=b[w];if(i.beginPath(),i.setStrokeStyle(l(t.color,r.opacity)),r.gradient){var T=i.createLinearGradient(0,e.area[0],0,e.height-e.area[2]);T.addColorStop("0",l(t.color,r.opacity)),T.addColorStop("1.0",l("#FFFFFF",.1)),i.setFillStyle(T)}else i.setFillStyle(l(t.color,r.opacity));if(i.setLineWidth(r.width*e.pixelRatio),A.length>1){var S=A[0],_=A[A.length-1];i.moveTo(S.x,S.y);var P=0;if("curve"===r.type)for(var M=0;M<A.length;M++){var L=A[M];if(0==P&&L.x>x&&(i.moveTo(L.x,L.y),P=1),M>0&&L.x>x&&L.x<g){var F=c(A,M-1);i.bezierCurveTo(F.ctrA.x,F.ctrA.y,F.ctrB.x,F.ctrB.y,L.x,L.y)}}else for(var k=0;k<A.length;k++){var C=A[k];0==P&&C.x>x&&(i.moveTo(C.x,C.y),P=1),k>0&&C.x>x&&C.x<g&&i.lineTo(C.x,C.y)}i.lineTo(_.x,p),i.lineTo(S.x,p),i.lineTo(S.x,S.y)}else{var R=A[0];i.moveTo(R.x-d/2,R.y),i.lineTo(R.x+d/2,R.y),i.lineTo(R.x+d/2,p),i.lineTo(R.x-d/2,p),i.moveTo(R.x-d/2,R.y)}if(i.closePath(),i.fill(),r.addLine){if("dash"==t.lineType){var z=t.dashLength?t.dashLength:8;z*=e.pixelRatio,i.setLineDash([z,z])}if(i.beginPath(),i.setStrokeStyle(t.color),i.setLineWidth(r.width*e.pixelRatio),1===A.length)i.moveTo(A[0].x,A[0].y),i.arc(A[0].x,A[0].y,1,0,2*Math.PI);else{i.moveTo(A[0].x,A[0].y);var I=0;if("curve"===r.type)for(var O=0;O<A.length;O++){var W=A[O];if(0==I&&W.x>x&&(i.moveTo(W.x,W.y),I=1),O>0&&W.x>x&&W.x<g){var E=c(A,O-1);i.bezierCurveTo(E.ctrA.x,E.ctrA.y,E.ctrB.x,E.ctrB.y,W.x,W.y)}}else for(var $=0;$<A.length;$++){var B=A[$];0==I&&B.x>x&&(i.moveTo(B.x,B.y),I=1),$>0&&B.x>x&&B.x<g&&i.lineTo(B.x,B.y)}i.moveTo(A[0].x,A[0].y)}i.stroke(),i.setLineDash([])}}!1!==e.dataPointShape&&Y(m,t.color,t.pointShape,i,e)})),!1!==e.dataLabel&&1===n&&t.forEach((function(t,o){var r,l,s;r=[].concat(e.chartData.yAxisData.ranges[t.index]),l=r.pop(),s=r.shift();var c=t.data,p=N(c,l,s,h,d,e,a,n);Z(p,t,a,i)})),i.restore(),{xAxisPoints:h,calPoints:f,eachSpacing:d}}(s,e,a,i,t),r=n.xAxisPoints,d=n.calPoints,p=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=d,e.chartData.eachSpacing=p,rt(0,e,a,i),!1!==e.enableMarkLine&&1===t&&U(e,a,i),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"ring":case"pie":this.animationInstance=new ut({timing:"easeInOut",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.pieData=function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,ringWidth:0,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.pie),s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2};0==a.pieChartLinePadding&&(a.pieChartLinePadding=r.activeRadius);var h=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding);t=k(t,h,n);var c=r.activeRadius;if(t=t.map((function(t){return t._start_+=r.offsetAngle*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(l(t.color,e.extra.pie.activeOpacity||.5)),i.moveTo(s.x,s.y),i.arc(s.x,s.y,t._radius_+c,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(r.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(r.borderColor),i.setFillStyle(t.color),i.moveTo(s.x,s.y),i.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._proportion_*Math.PI),i.closePath(),i.fill(),1==r.border&&i.stroke()})),"ring"===e.type){var d=.6*h;"number"===typeof e.extra.pie.ringWidth&&e.extra.pie.ringWidth>0&&(d=Math.max(0,h-e.extra.pie.ringWidth)),i.beginPath(),i.setFillStyle(e.background||"#ffffff"),i.moveTo(s.x,s.y),i.arc(s.x,s.y,d,0,2*Math.PI),i.closePath(),i.fill()}if(!1!==e.dataLabel&&1===n){for(var p=!1,f=0,x=t.length;f<x;f++)if(t[f].data>0){p=!0;break}p&&Q(t,e,a,i,0,s)}return 1===n&&"ring"===e.type&&J(e,a,i,s),{center:s,radius:h,series:t}}(s,e,a,i,t),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"rose":this.animationInstance=new ut({timing:"easeInOut",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.pieData=function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{type:"area",activeOpacity:.5,activeRadius:10*e.pixelRatio,offsetAngle:0,labelWidth:15*e.pixelRatio,border:!1,borderWidth:2,borderColor:"#FFFFFF"},e.extra.rose);0==a.pieChartLinePadding&&(a.pieChartLinePadding=r.activeRadius);var s={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},h=Math.min((e.width-e.area[1]-e.area[3])/2-a.pieChartLinePadding-a.pieChartTextPadding-a._pieTextMaxLength_,(e.height-e.area[0]-e.area[2])/2-a.pieChartLinePadding-a.pieChartTextPadding),c=r.minRadius||.5*h;t=R(t,r.type,c,h,n);var d=r.activeRadius;if(t=t.map((function(t){return t._start_+=(r.offsetAngle||0)*Math.PI/180,t})),t.forEach((function(t,a){e.tooltip&&e.tooltip.index==a&&(i.beginPath(),i.setFillStyle(l(t.color,r.activeOpacity||.5)),i.moveTo(s.x,s.y),i.arc(s.x,s.y,d+t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill()),i.beginPath(),i.setLineWidth(r.borderWidth*e.pixelRatio),i.lineJoin="round",i.setStrokeStyle(r.borderColor),i.setFillStyle(t.color),i.moveTo(s.x,s.y),i.arc(s.x,s.y,t._radius_,t._start_,t._start_+2*t._rose_proportion_*Math.PI),i.closePath(),i.fill(),1==r.border&&i.stroke()})),!1!==e.dataLabel&&1===n){for(var p=!1,f=0,x=t.length;f<x;f++)if(t[f].data>0){p=!0;break}p&&Q(t,e,a,i,0,s)}return{center:s,radius:h,series:t}}(s,e,a,i,t),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"radar":this.animationInstance=new ut({timing:"easeInOut",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.radarData=function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,r=o({},{gridColor:"#cccccc",labelColor:"#666666",opacity:.2,gridCount:3},e.extra.radar),s=w(e.categories.length),h={x:e.area[3]+(e.width-e.area[1]-e.area[3])/2,y:e.area[0]+(e.height-e.area[0]-e.area[2])/2},c=Math.min(h.x-(b(e.categories)+a.radarLabelTextMargin),h.y-a.radarLabelTextMargin);c-=e.padding[1],i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(r.gridColor),s.forEach((function(t){var e=d(c*Math.cos(t),c*Math.sin(t),h);i.moveTo(h.x,h.y),i.lineTo(e.x,e.y)})),i.stroke(),i.closePath();for(var p=function(t){var a={};i.beginPath(),i.setLineWidth(1*e.pixelRatio),i.setStrokeStyle(r.gridColor),s.forEach((function(e,n){var o=d(c/r.gridCount*t*Math.cos(e),c/r.gridCount*t*Math.sin(e),h);0===n?(a=o,i.moveTo(o.x,o.y)):i.lineTo(o.x,o.y)})),i.lineTo(a.x,a.y),i.stroke(),i.closePath()},f=1;f<=r.gridCount;f++)p(f);var x=F(s,h,c,t,e,n);return x.forEach((function(t,a){if(i.beginPath(),i.setFillStyle(l(t.color,r.opacity)),t.data.forEach((function(t,e){0===e?i.moveTo(t.position.x,t.position.y):i.lineTo(t.position.x,t.position.y)})),i.closePath(),i.fill(),!1!==e.dataPointShape){var n=t.data.map((function(t){return t.position}));Y(n,t.color,t.pointShape,i,e)}})),K(s,c,h,e,a,i),{center:h,radius:c,angleList:s}}(s,e,a,i,t),lt(e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new ut({timing:"easeInOut",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.arcbarData=function(t,e,a,i){var n,r,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=o({},{startAngle:.75,endAngle:.25,type:"default",width:12*e.pixelRatio,gap:2*e.pixelRatio},e.extra.arcbar);t=z(t,s,l),n=s.center?s.center:{x:e.width/2,y:e.height/2},s.radius?r=s.radius:(r=Math.min(n.x,n.y),r-=5*e.pixelRatio,r-=s.width/2);for(var h=0;h<t.length;h++){var c=t[h];i.setLineWidth(s.width),i.setStrokeStyle(s.backgroundColor||"#E9E9E9"),i.setLineCap("round"),i.beginPath(),"default"==s.type?i.arc(n.x,n.y,r-(s.width+s.gap)*h,s.startAngle*Math.PI,s.endAngle*Math.PI,!1):i.arc(n.x,n.y,r-(s.width+s.gap)*h,0,2*Math.PI,!1),i.stroke(),i.setLineWidth(s.width),i.setStrokeStyle(c.color),i.setLineCap("round"),i.beginPath(),i.arc(n.x,n.y,r-(s.width+s.gap)*h,s.startAngle*Math.PI,c._proportion_*Math.PI,!1),i.stroke()}return J(e,a,i,n),{center:n,radius:r,series:t}}(s,e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new ut({timing:"easeInOut",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),e.chartData.gaugeData=function(t,e,a,i,n){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=o({},{type:"default",startAngle:.75,endAngle:.25,width:15,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},a.extra.gauge);void 0==s.oldAngle&&(s.oldAngle=s.startAngle),void 0==s.oldData&&(s.oldData=0),t=I(t,s.startAngle,s.endAngle);var h={x:a.width/2,y:a.height/2},c=Math.min(h.x,h.y);c-=5*a.pixelRatio,c-=s.width/2;var d=c-s.width,p=0;if("progress"==s.type){var f=c-3*s.width;n.beginPath();var x=n.createLinearGradient(h.x,h.y-f,h.x,h.y+f);x.addColorStop("0",l(e[0].color,.3)),x.addColorStop("1.0",l("#FFFFFF",.1)),n.setFillStyle(x),n.arc(h.x,h.y,f,0,2*Math.PI,!1),n.fill(),n.setLineWidth(s.width),n.setStrokeStyle(l(e[0].color,.3)),n.setLineCap("round"),n.beginPath(),n.arc(h.x,h.y,d,s.startAngle*Math.PI,s.endAngle*Math.PI,!1),n.stroke(),p=s.startAngle-s.endAngle+1;s.splitLine.splitNumber;var g=p/s.splitLine.splitNumber/s.splitLine.childNumber,u=-c-.5*s.width-s.splitLine.fixRadius,y=-c-s.width-s.splitLine.fixRadius+s.splitLine.width;n.save(),n.translate(h.x,h.y),n.rotate((s.startAngle-1)*Math.PI);for(var v=s.splitLine.splitNumber*s.splitLine.childNumber+1,m=e[0].data*r,b=0;b<v;b++)n.beginPath(),m>b/v?n.setStrokeStyle(l(e[0].color,1)):n.setStrokeStyle(l(e[0].color,.3)),n.setLineWidth(3*a.pixelRatio),n.moveTo(u,0),n.lineTo(y,0),n.stroke(),n.rotate(g*Math.PI);n.restore(),e=z(e,s,r),n.setLineWidth(s.width),n.setStrokeStyle(e[0].color),n.setLineCap("round"),n.beginPath(),n.arc(h.x,h.y,d,s.startAngle*Math.PI,e[0]._proportion_*Math.PI,!1),n.stroke();var w=c-2.5*s.width;n.save(),n.translate(h.x,h.y),n.rotate((e[0]._proportion_-1)*Math.PI),n.beginPath(),n.setLineWidth(s.width/3);var A=n.createLinearGradient(0,.6*-w,0,.6*w);A.addColorStop("0",l("#FFFFFF",0)),A.addColorStop("0.5",l(e[0].color,1)),A.addColorStop("1.0",l("#FFFFFF",0)),n.setStrokeStyle(A),n.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),n.stroke(),n.beginPath(),n.setLineWidth(1),n.setStrokeStyle(e[0].color),n.setFillStyle(e[0].color),n.moveTo(-w-s.width/3/2,-4),n.lineTo(-w-s.width/3/2-4,0),n.lineTo(-w-s.width/3/2,4),n.lineTo(-w-s.width/3/2,-4),n.stroke(),n.fill(),n.restore()}else{n.setLineWidth(s.width),n.setLineCap("butt");for(var T=0;T<t.length;T++){var S=t[T];n.beginPath(),n.setStrokeStyle(S.color),n.arc(h.x,h.y,c,S._startAngle_*Math.PI,S._endAngle_*Math.PI,!1),n.stroke()}n.save(),p=s.startAngle-s.endAngle+1;var _=p/s.splitLine.splitNumber,P=p/s.splitLine.splitNumber/s.splitLine.childNumber,D=-c-.5*s.width-s.splitLine.fixRadius,M=-c-.5*s.width-s.splitLine.fixRadius+s.splitLine.width,L=-c-.5*s.width-s.splitLine.fixRadius+s.splitLine.childWidth;n.translate(h.x,h.y),n.rotate((s.startAngle-1)*Math.PI);for(var F=0;F<s.splitLine.splitNumber+1;F++)n.beginPath(),n.setStrokeStyle(s.splitLine.color),n.setLineWidth(2*a.pixelRatio),n.moveTo(D,0),n.lineTo(M,0),n.stroke(),n.rotate(_*Math.PI);n.restore(),n.save(),n.translate(h.x,h.y),n.rotate((s.startAngle-1)*Math.PI);for(var k=0;k<s.splitLine.splitNumber*s.splitLine.childNumber+1;k++)n.beginPath(),n.setStrokeStyle(s.splitLine.color),n.setLineWidth(1*a.pixelRatio),n.moveTo(D,0),n.lineTo(L,0),n.stroke(),n.rotate(P*Math.PI);n.restore(),e=O(e,t,s,r);for(var C=0;C<e.length;C++){var R=e[C];n.save(),n.translate(h.x,h.y),n.rotate((R._proportion_-1)*Math.PI),n.beginPath(),n.setFillStyle(R.color),n.moveTo(s.pointer.width,0),n.lineTo(0,-s.pointer.width/2),n.lineTo(-d,0),n.lineTo(0,s.pointer.width/2),n.lineTo(s.pointer.width,0),n.closePath(),n.fill(),n.beginPath(),n.setFillStyle("#FFFFFF"),n.arc(0,0,s.pointer.width/6,0,2*Math.PI,!1),n.fill(),n.restore()}!1!==a.dataLabel&&V(s,c,h,0,i,n)}return J(a,i,n,h),1===r&&"gauge"===a.type&&(a.extra.gauge.oldAngle=e[0]._proportion_,a.extra.gauge.oldData=e[0].data),{center:h,radius:c,innerRadius:d,categories:t,totalAngle:p}}(h,s,e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break;case"candle":this.animationInstance=new ut({timing:"easeIn",duration:p,onProcess:function(t){i.clearRect(0,0,e.width,e.height),e.rotate&&q(i,e),ot(0,e,0,i),nt(h,e,a,i);var n=function(t,e,a,i,n){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,l=o({},{color:{},average:{}},a.extra.candle);l.color=o({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},l.color),l.average=o({},{show:!1,name:[],day:[],color:i.colors},l.average),a.extra.candle=l;var s=a.chartData.xAxisData,h=s.xAxisPoints,d=s.eachSpacing,p=[];n.save();var f=-2,x=h.length+2,g=0,u=a.width+d;return a._scrollDistance_&&0!==a._scrollDistance_&&!0===a.enableScroll&&(n.translate(a._scrollDistance_,0),f=Math.floor(-a._scrollDistance_/d)-2,x=f+a.xAxis.itemCount+4,g=-a._scrollDistance_-d+a.area[3],u=g+(a.xAxis.itemCount+4)*d),l.average.show&&e.forEach((function(t,e){var o,l,s;o=[].concat(a.chartData.yAxisData.ranges[t.index]),l=o.pop(),s=o.shift();for(var p=t.data,f=N(p,l,s,h,d,a,i,r),x=D(f),y=0;y<x.length;y++){var v=x[y];if(n.beginPath(),n.setStrokeStyle(t.color),n.setLineWidth(1),1===v.length)n.moveTo(v[0].x,v[0].y),n.arc(v[0].x,v[0].y,1,0,2*Math.PI);else{n.moveTo(v[0].x,v[0].y);for(var m=0,b=0;b<v.length;b++){var w=v[b];if(0==m&&w.x>g&&(n.moveTo(w.x,w.y),m=1),b>0&&w.x>g&&w.x<u){var A=c(v,b-1);n.bezierCurveTo(A.ctrA.x,A.ctrA.y,A.ctrB.x,A.ctrB.y,w.x,w.y)}}n.moveTo(v[0].x,v[0].y)}n.closePath(),n.stroke()}})),t.forEach((function(t,e){var o,s,c;o=[].concat(a.chartData.yAxisData.ranges[t.index]),s=o.pop(),c=o.shift();var g=t.data,u=H(g,s,c,h,d,a,i,r);p.push(u);for(var y=D(u),v=0;v<y[0].length;v++)if(v>f&&v<x){var m=y[0][v];n.beginPath(),g[v][1]-g[v][0]>0?(n.setStrokeStyle(l.color.upLine),n.setFillStyle(l.color.upFill),n.setLineWidth(1*a.pixelRatio),n.moveTo(m[3].x,m[3].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[1].x-d/4,m[1].y),n.lineTo(m[0].x-d/4,m[0].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[2].x,m[2].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[0].x+d/4,m[0].y),n.lineTo(m[1].x+d/4,m[1].y),n.lineTo(m[1].x,m[1].y),n.moveTo(m[3].x,m[3].y)):(n.setStrokeStyle(l.color.downLine),n.setFillStyle(l.color.downFill),n.setLineWidth(1*a.pixelRatio),n.moveTo(m[3].x,m[3].y),n.lineTo(m[0].x,m[0].y),n.lineTo(m[0].x-d/4,m[0].y),n.lineTo(m[1].x-d/4,m[1].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[2].x,m[2].y),n.lineTo(m[1].x,m[1].y),n.lineTo(m[1].x+d/4,m[1].y),n.lineTo(m[0].x+d/4,m[0].y),n.lineTo(m[0].x,m[0].y),n.moveTo(m[3].x,m[3].y)),n.closePath(),n.fill(),n.stroke()}})),n.restore(),{xAxisPoints:h,calPoints:p,eachSpacing:d}}(s,x,e,a,i,t),r=n.xAxisPoints,l=n.calPoints,d=n.eachSpacing;e.chartData.xAxisPoints=r,e.chartData.calPoints=l,e.chartData.eachSpacing=d,rt(0,e,a,i),!1!==e.enableMarkLine&&1===t&&U(e,a,i),lt(x?0:e.series,e,a,i,e.chartData),it(e,a,i,t),xt(0,i)},onAnimationFinish:function(){n.event.trigger("renderComplete")}});break}}function vt(){this.events={}}ut.prototype.stop=function(){this.isStop=!0},vt.prototype.addEventListener=function(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)},vt.prototype.trigger=function(){for(var t=arguments.length,e=Array(t),a=0;a<t;a++)e[a]=arguments[a];var i=e[0],n=e.slice(1);this.events[i]&&this.events[i].forEach((function(t){try{t.apply(null,n)}catch(e){}}))};var mt=function(t){t.pixelRatio=t.pixelRatio?t.pixelRatio:1,t.fontSize=t.fontSize?t.fontSize*t.pixelRatio:13*t.pixelRatio,t.title=o({},t.title),t.subtitle=o({},t.subtitle),t.duration=t.duration?t.duration:1e3,t.yAxis=o({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,splitNumber:5,gridType:"solid",dashLength:4*t.pixelRatio,gridColor:"#cccccc",padding:10,fontColor:"#666666"},t.yAxis),t.yAxis.dashLength*=t.pixelRatio,t.yAxis.padding*=t.pixelRatio,t.xAxis=o({},{rotateLabel:!1,type:"calibration",gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc"},t.xAxis),t.xAxis.dashLength*=t.pixelRatio,t.legend=o({},{show:!0,position:"bottom",float:"center",backgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(0,0,0,0)",borderWidth:0,padding:5,margin:5,itemGap:10,fontSize:t.fontSize,lineHeight:t.fontSize,fontColor:"#333333",format:{},hiddenColor:"#CECECE"},t.legend),t.legend.borderWidth=t.legend.borderWidth*t.pixelRatio,t.legend.itemGap=t.legend.itemGap*t.pixelRatio,t.legend.padding=t.legend.padding*t.pixelRatio,t.legend.margin=t.legend.margin*t.pixelRatio,t.extra=o({},t.extra),t.rotate=!!t.rotate,t.animation=!!t.animation,t.rotate=!!t.rotate;var e=JSON.parse(JSON.stringify(n));if(e.colors=t.colors?t.colors:e.colors,e.yAxisTitleWidth=!0!==t.yAxis.disabled&&t.yAxis.title?e.yAxisTitleWidth:0,"pie"!=t.type&&"ring"!=t.type||(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.pie.labelWidth*t.pixelRatio||e.pieChartLinePadding*t.pixelRatio),"rose"==t.type&&(e.pieChartLinePadding=!1===t.dataLabel?0:t.extra.rose.labelWidth*t.pixelRatio||e.pieChartLinePadding*t.pixelRatio),e.pieChartTextPadding=!1===t.dataLabel?0:e.pieChartTextPadding*t.pixelRatio,e.yAxisSplit=t.yAxis.splitNumber?t.yAxis.splitNumber:n.yAxisSplit,e.rotate=t.rotate,t.rotate){var a=t.width,i=t.height;t.width=i,t.height=a}t.padding=t.padding?t.padding:e.padding;for(var r=0;r<4;r++)t.padding[r]*=t.pixelRatio;e.yAxisWidth=n.yAxisWidth*t.pixelRatio,e.xAxisHeight=n.xAxisHeight*t.pixelRatio,t.enableScroll&&t.xAxis.scrollShow&&(e.xAxisHeight+=6*t.pixelRatio),e.xAxisLineHeight=n.xAxisLineHeight*t.pixelRatio,e.fontSize=t.fontSize,e.titleFontSize=n.titleFontSize*t.pixelRatio,e.subtitleFontSize=n.subtitleFontSize*t.pixelRatio,e.toolTipPadding=n.toolTipPadding*t.pixelRatio,e.toolTipLineHeight=n.toolTipLineHeight*t.pixelRatio,e.columePadding=n.columePadding*t.pixelRatio,t.$this=t.$this?t.$this:this,this.context=uni.createCanvasContext(t.canvasId,t.$this),t.chartData={},this.event=new vt,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=t,this.config=e,yt.call(this,t.type,t,e,this.context)};mt.prototype.updateData=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=o({},this.opts,t),this.opts.updateData=!0;var e=t.scrollPosition||"current";switch(e){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var a=j(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var n=0,r=B(this.opts.categories,this.opts,this.config),l=r.xAxisPoints,s=r.startX,h=r.endX,c=r.eachSpacing,d=c*(l.length-1),p=h-s;n=p-d,this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n;break}yt.call(this,this.opts.type,this.opts,this.config,this.context)},mt.prototype.zoom=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var e=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=t.itemCount;var a=j(this.opts.series,this.opts,this.config),i=a.yAxisWidth;this.config.yAxisWidth=i;var n=0,o=B(this.opts.categories,this.opts,this.config),r=o.xAxisPoints,l=o.startX,s=o.endX,h=o.eachSpacing,c=h*e,d=s-l,p=d-h*(r.length-1);n=d/2-c,n>0&&(n=0),n<p&&(n=p),this.scrollOption={currentOffset:n,startTouchX:n,distance:0,lastMoveTime:0},this.opts._scrollDistance_=n,yt.call(this,this.opts.type,this.opts,this.config,this.context)}},mt.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},mt.prototype.addEventListener=function(t,e){this.event.addEventListener(t,e)},mt.prototype.getCurrentDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=v(e,this.opts,t);return"pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type?function(t,e){var a=-1;if(P(t,e.center,e.radius)){var i=Math.atan2(e.center.y-t.y,t.x-e.center.x);i=-i;for(var n=0,o=e.series.length;n<o;n++){var r=e.series[n];if(h(i,r._start_,r._start_+2*r._proportion_*Math.PI)){a=n;break}}}return a}({x:a.x,y:a.y},this.opts.chartData.pieData):"radar"===this.opts.type?function(t,e,a){var i=2*Math.PI/a,n=-1;if(P(t,e.center,e.radius)){var o=function(t){return t<0&&(t+=2*Math.PI),t>2*Math.PI&&(t-=2*Math.PI),t},r=Math.atan2(e.center.y-t.y,t.x-e.center.x);r*=-1,r<0&&(r+=2*Math.PI);var l=e.angleList.map((function(t){return t=o(-1*t),t}));l.forEach((function(t,e){var a=o(t-i/2),l=o(t+i/2);l<a&&(l+=2*Math.PI),(r>=a&&r<=l||r+2*Math.PI>=a&&r+2*Math.PI<=l)&&(n=e)}))}return n}({x:a.x,y:a.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(t,e){for(var a=-1,i=0,n=e.series.length;i<n;i++){var o=e.series[i];if(t.x>o.funnelArea[0]&&t.x<o.funnelArea[2]&&t.y>o.funnelArea[1]&&t.y<o.funnelArea[3]){a=i;break}}return a}({x:a.x,y:a.y},this.opts.chartData.funnelData):"map"===this.opts.type?function(t,e){for(var a=-1,i=e.chartData.mapData,n=e.series,o=function(t,e,a,i,n,o){return{x:(e-n)/i+a.xMin,y:a.yMax-(t-o)/i}}(t.y,t.x,i.bounds,i.scale,i.xoffset,i.yoffset),r=[o.x,o.y],l=0,s=n.length;l<s;l++){var h=n[l].geometry.coordinates;if(pt(r,h)){a=l;break}}return a}({x:a.x,y:a.y},this.opts):"word"===this.opts.type?function(t,e){for(var a=-1,i=0,n=e.length;i<n;i++){var o=e[i];if(t.x>o.area[0]&&t.x<o.area[2]&&t.y>o.area[1]&&t.y<o.area[3]){a=i;break}}return a}({x:a.x,y:a.y},this.opts.chartData.wordCloudData):function(t,e,a,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=-1,r=a.chartData.eachSpacing/2,l=[];if(e.length>0){if("candle"==a.type)for(var s=0;s<e[0].length;s++)l.push(e[0][s][0].x);else for(var h=0;h<e[0].length;h++)l.push(e[0][h].x);"line"!=a.type&&"area"!=a.type||"justify"!=a.xAxis.boundaryGap||(r=a.chartData.eachSpacing/2),a.categories||(r=0),_(t,a,i)&&l.forEach((function(e,a){t.x+n+r>e&&(o=a)}))}return o}({x:a.x,y:a.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},mt.prototype.getLegendDataIndex=function(t){var e=null;if(e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],e){var a=v(e,this.opts,t);return function(t,e,a){var i=-1;if(function(t,e){return t.x>e.start.x&&t.x<e.end.x&&t.y>e.start.y&&t.y<e.end.y}(t,e.area)){for(var n=e.points,o=-1,r=0,l=n.length;r<l;r++)for(var s=n[r],h=0;h<s.length;h++){o+=1;var c=s[h]["area"];if(t.x>c[0]&&t.x<c[2]&&t.y>c[1]&&t.y<c[3]){i=o;break}}return i}return i}({x:a.x,y:a.y},this.opts.chartData.legendData)}return-1},mt.prototype.touchLegend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;if(a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],a){v(a,this.opts,t);var i=this.getLegendDataIndex(t);i>=0&&(this.opts.series[i].show=!this.opts.series[i].show,this.opts.animation=!!e.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,yt.call(this,this.opts.type,this.opts,this.config,this.context))}},mt.prototype.showToolTip=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null;a=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var i=v(a,this.opts,t),n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type){var l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){var s=m(this.opts.series,l);if(0!==s.length){var h=A(s,this.opts.chartData.calPoints,l,this.opts.categories,e),c=h.textList,d=h.offset;d.y=i.y,r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}}yt.call(this,r.type,r,this.config,this.context)}if("mix"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=m(this.opts.series,l);if(0!==s.length){var p=T(s,this.opts.chartData.calPoints,l,this.opts.categories,e);c=p.textList,d=p.offset;d.y=i.y,r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}}yt.call(this,r.type,r,this.config,this.context)}if("candle"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=m(this.opts.series,l);if(0!==s.length){h=S(this.opts.series[0].data,s,this.opts.chartData.calPoints,l,this.opts.categories,this.opts.extra.candle,e),c=h.textList,d=h.offset;d.y=i.y,r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}}yt.call(this,r.type,r,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=this.opts._series_[l],c=[{text:e.format?e.format(s):s.name+": "+s.data,color:s.color}],d={x:i.x,y:i.y};r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}yt.call(this,r.type,r,this.config,this.context)}if("map"===this.opts.type||"word"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=this.opts._series_[l],c=[{text:e.format?e.format(s):s.properties.name,color:s.color}],d={x:i.x,y:i.y};r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}r.updateData=!1,yt.call(this,r.type,r,this.config,this.context)}if("radar"===this.opts.type){l=void 0==e.index?this.getCurrentDataIndex(t):e.index;if(l>-1){n=this.scrollOption.currentOffset,r=o({},this.opts,{_scrollDistance_:n,animation:!1}),s=m(this.opts.series,l);if(0!==s.length){c=s.map((function(t){return{text:e.format?e.format(t):t.name+": "+t.data,color:t.color}})),d={x:i.x,y:i.y};r.tooltip={textList:e.textList?e.textList:c,offset:d,option:e,index:l}}}yt.call(this,r.type,r,this.config,this.context)}},mt.prototype.translate=function(t){this.scrollOption={currentOffset:t,startTouchX:t,distance:0,lastMoveTime:0};var e=o({},this.opts,{_scrollDistance_:t,animation:!1});yt.call(this,this.opts.type,e,this.config,this.context)},mt.prototype.scrollStart=function(t){var e=null;e=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0];var a=v(e,this.opts,t);e&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=a.x)},mt.prototype.scroll=function(t){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var e=this.opts.extra.touchMoveLimit||20,a=Date.now(),i=a-this.scrollOption.lastMoveTime;if(!(i<Math.floor(1e3/e))){this.scrollOption.lastMoveTime=a;var n=null;if(n=t.changedTouches?t.changedTouches[0]:t.mp.changedTouches[0],n&&!0===this.opts.enableScroll){var r,l=v(n,this.opts,t);r=l.x-this.scrollOption.startTouchX;var s=this.scrollOption.currentOffset,h=function(t,e,a,i,n){var o=n.width-n.area[1]-n.area[3],r=a.eachSpacing*(n.chartData.xAxisData.xAxisPoints.length-1),l=e;return e>=0?(l=0,t.event.trigger("scrollLeft")):Math.abs(e)>=r-o&&(l=o-r,t.event.trigger("scrollRight")),l}(this,s+r,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=r=h-s;var c=o({},this.opts,{_scrollDistance_:s+r,animation:!1});return yt.call(this,c.type,c,this.config,this.context),s+r}}},mt.prototype.scrollEnd=function(t){if(!0===this.opts.enableScroll){var e=this.scrollOption,a=e.currentOffset,i=e.distance;this.scrollOption.currentOffset=a+i,this.scrollOption.distance=0}},"object"===i(e)&&"object"===i(e.exports)&&(e.exports=mt)}).call(this,a("5a52")["default"],a("62e4")(t))},5171:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.agreeExpress=function(t){return n.default.post("admin/order/agreeExpress",t,{login:!0})},e.getAdminOrderDelivery=function(t){return n.default.get("admin/order/delivery/gain/"+t,{},{login:!0})},e.getAdminOrderDetail=function(t){return n.default.get("admin/order/detail/"+t,{},{login:!0})},e.getAdminOrderList=function(t){return n.default.get("admin/order/list",t,{login:!0})},e.getAdminRefundOrderDetail=function(t){return n.default.get("admin/refund_order/detail/"+t,{},{login:!0})},e.getLogistics=function(t){return n.default.get("logistics",t,{login:!1})},e.getStatisticsInfo=function(){return n.default.get("admin/order/statistics",{},{login:!0})},e.getStatisticsMonth=function(t){return n.default.get("admin/order/data",t,{login:!0})},e.getStatisticsTime=function(t){return n.default.get("admin/order/time",t,{login:!0})},e.orderDeliveryInfo=function(){return n.default.get("admin/order/delivery_info")},e.orderExportTemp=function(t){return n.default.get("admin/order/export_temp",t)},e.orderOrderDelivery=function(){return n.default.get("admin/order/delivery")},e.orderRefund_order=function(t){return n.default.get("admin/refund_order/list",t,{login:!0})},e.orderVerific=function(t,e){return n.default.post("order/order_verific",{verify_code:t,is_confirm:e})},e.setAdminOrderDelivery=function(t,e){return n.default.post("admin/order/delivery/keep/"+t,e,{login:!0})},e.setAdminOrderPrice=function(t){return n.default.post("admin/order/price",t,{login:!0})},e.setAdminOrderRemark=function(t){return n.default.post("admin/order/remark",t,{login:!0})},e.setAdminRefundRemark=function(t){return n.default.post("admin/refund_order/remark",t,{login:!0})},e.setOfflinePay=function(t){return n.default.post("admin/order/offline",t,{login:!0})},e.setOrderRefund=function(t){return n.default.post("admin/order/refund",t,{login:!0})};var n=i(a("fb81"))},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"842d":function(t,e,a){"use strict";a.r(e);var i=a("e5b8"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},"890b":function(t,e,a){"use strict";var i=a("b5450"),n=a.n(i);n.a},9420:function(t,e,a){"use strict";a.r(e);var i=a("e9c6"),n=a("842d");for(var o in n)["default"].indexOf(o)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("890b");var r=a("f0c5"),l=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"056f39fa",null,!1,i["a"],void 0);e["default"]=l.exports},"9bd1":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*交易额统计*/.statistical-page .navs[data-v-056f39fa]{width:100%;height:%?96?%;background-color:#fff;overflow:hidden;line-height:%?96?%;position:fixed;top:0;left:0;z-index:9}.statistical-page .navs .list[data-v-056f39fa]{overflow-y:hidden;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;width:100%}.statistical-page .navs .item[data-v-056f39fa]{font-size:%?32?%;color:#282828;margin-left:%?60?%;display:inline-block}.statistical-page .navs .item.on[data-v-056f39fa]{color:#2291f8}.statistical-page .navs .item .iconfont[data-v-056f39fa]{font-size:%?25?%;margin-left:%?13?%}.statistical-page .wrapper[data-v-056f39fa]{width:%?740?%;background-color:#fff;border-radius:%?10?%;margin:%?119?% auto 0 auto;padding:%?50?% %?60?%}.statistical-page .wrapper .title[data-v-056f39fa]{font-size:%?30?%;color:#999;text-align:center}.statistical-page .wrapper .money[data-v-056f39fa]{font-size:%?72?%;color:#fba02a;text-align:center;margin-top:%?10?%}.statistical-page .wrapper .increase[data-v-056f39fa]{font-size:%?28?%;color:#999;margin-top:%?20?%}.statistical-page .wrapper .increase .red[data-v-056f39fa]{color:#ff6969}.statistical-page .wrapper .increase .green[data-v-056f39fa]{color:#1abb1d}.statistical-page .wrapper .increase .iconfont[data-v-056f39fa]{font-size:%?23?%;margin-left:%?15?%}.statistical-page .chart[data-v-056f39fa]{width:%?690?%;background-color:#fff;border-radius:%?10?%;margin:%?23?% auto 0 auto\n\t/* padding: 25upx 22upx 0 22upx; */}.statistical-page .chart .chart-title[data-v-056f39fa]{padding:%?20?% %?20?% %?10?%;font-size:%?26?%;color:#999}.statistical-page .chart uni-canvas[data-v-056f39fa]{width:100%;height:%?530?%}.statistical-page .chart .company[data-v-056f39fa]{font-size:%?26?%;color:#999}.yd-confirm[data-v-056f39fa]{background-color:#fff;font-size:unset;width:%?540?%;height:%?250?%;border-radius:%?40?%}.yd-confirm-hd[data-v-056f39fa]{text-align:center}.yd-confirm-title[data-v-056f39fa]{color:#030303;font-weight:700;font-size:%?36?%}.yd-confirm-bd[data-v-056f39fa]{text-align:center;font-size:%?28?%;color:#333}.yd-confirm-ft[data-v-056f39fa]{line-height:%?90?%;margin-top:14px;border-top:%?1?% solid #eee}.yd-confirm-ft>a[data-v-056f39fa]{color:#e93323}.yd-confirm-ft>a.primary[data-v-056f39fa]{border-left:%?1?% solid #eee;color:#e93323}.echarts[data-v-056f39fa]{width:100%;height:%?550?%}.calendar-wrapper[data-v-056f39fa]{position:fixed;bottom:0;left:0;width:100%;z-index:777;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9)}.calendar-wrapper.on[data-v-056f39fa]{-webkit-transform:translateZ(0);transform:translateZ(0)}.statistical-page .wrapper .increase[data-v-056f39fa]{font-size:%?26?%}.statistical-page .wrapper .increase .iconfont[data-v-056f39fa]{margin-left:0}.public-wrapper .title[data-v-056f39fa]{font-size:%?30?%;color:#282828;padding:0 %?30?%;margin-bottom:%?20?%}.public-wrapper .title .iconfont[data-v-056f39fa]{color:#2291f8;font-size:%?40?%;margin-right:%?13?%;vertical-align:middle}.public-wrapper[data-v-056f39fa]{margin:%?18?% auto 0 auto;width:%?690?%;background-color:#fff;border-radius:%?10?%;padding-top:%?25?%}.public-wrapper .nav[data-v-056f39fa]{padding:0 %?30?%;height:%?70?%;line-height:%?70?%;font-size:%?24?%;color:#999}.public-wrapper .data[data-v-056f39fa]{width:%?210?%;text-align:left}.public-wrapper .browse[data-v-056f39fa]{width:%?192?%;text-align:right}.public-wrapper .turnover[data-v-056f39fa]{width:%?227?%;text-align:right}.public-wrapper .conter[data-v-056f39fa]{padding:0 %?30?%}.public-wrapper .conter .item[data-v-056f39fa]{border-bottom:1px solid #f7f7f7;height:%?70?%;font-size:%?24?%}.public-wrapper .conter .item .turnover[data-v-056f39fa]{color:#d84242}",""]),t.exports=e},b5450:function(t,e,a){var i=a("9bd1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("5ae4e939",i,!0,{sourceMap:!1,shadowMode:!1})},cb29:function(t,e,a){var i=a("23e7"),n=a("81d5"),o=a("44d2");i({target:"Array",proto:!0},{fill:n}),o("fill")},e5b8:function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d3b7"),a("159b"),a("14d9"),a("4de4"),a("3ca3"),a("ddb0");var n=i(a("0ced")),o=i(a("d991")),r=a("5171"),l=null,s=(new Date).getFullYear(),h=(new Date).getMonth()+1,c=(new Date).getDate(),d={name:"Statistics",components:{uniCalendar:o.default},props:{},data:function(){return{value:[[s,h,c-1],[s,h,c]],isrange:!0,weekSwitch:!1,ismulti:!1,monFirst:!0,clean:!1,lunar:!1,renderValues:[],monthRange:[],current:!1,where:{start:"",stop:"",type:""},types:"",time:"",title:"",growth_rate:"",increase_time:"",increase_time_status:"",time_price:"",loaded:!1,loading:!1,filter:{page:1,limit:10,start:"",stop:""},list:[],cWidth:"",cHeight:"",pixelRatio:1,textarea:"",LineA:{categories:["2012","2013","2014","2015","2016","2017"],series:[{data:[35,8,25,37,4,20]}]},info:{startDate:"",endDate:"",lunar:!1,range:!0,insert:!1,selected:[],showMonth:!1},type:"",before:"",after:""}},watch:{"$route.params":function(t){void 0!=t&&(this.setType(t.type),this.setTime(t.time),this.getIndex())}},onLoad:function(t){this.type=t.type,t.before&&(this.before=t.before),t.after&&(this.after=t.after),this.setType(t.type),this.setTime(t.time),this.cWidth=uni.upx2px(690),this.cHeight=uni.upx2px(500),this.getInfo()},computed:{monthRangeText:function(){return this.monthRange.length?this.$t("固定"):this.$t("指定范围")}},methods:{getIndex:function(){var t=[],e=[],a=this;(0,r.getStatisticsTime)(a.where).then((function(i){var n=i.data.chart,o=[],r=[];n.forEach((function(t){o.push(t.time),r.push(t.num)})),a.growth_rate=i.data.growth_rate,a.increase_time=i.data.increase_time,a.increase_time_status=i.data.increase_time_status,a.time_price=i.data.time,i.data.chart.forEach((function(a,i){t.push(a.time),e.push(a.num)})),a.LineA.categories=t,a.LineA.series[0].data=e,a.showLineA("canvasLineA",a.LineA)}),(function(t){a.$util.Tips({title:t})}))},setTime:function(t){this.time=t;var e=(new Date).getFullYear(),a=(new Date).getMonth()+1,i=(new Date).getDate();switch(this.list=[],this.filter.page=1,this.loaded=!1,this.loading=!1,t){case"today":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-1,this.title=this.$t("今天"),this.getIndex(),this.getInfo();break;case"yesterday":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3-86400,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3-1,this.title=this.$t("昨天"),this.getIndex(),this.getInfo();break;case"month":this.where.start=new Date(e,(new Date).getMonth(),1).getTime()/1e3,this.where.stop=new Date(e,a,1).getTime()/1e3-1,this.title=this.$t("本月"),this.getIndex(),this.getInfo();break;case"seven":this.where.start=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-604800,this.where.stop=new Date(Date.parse(e+"/"+a+"/"+i)).getTime()/1e3+86400-1,this.title=this.$t("最近7天"),this.getIndex(),this.getInfo();break}},getTimestamp:function(t,e,a,i,n,o){return new Date(t,e-1,a,i,n,o).getTime()/1e3},setType:function(t){switch(t){case"price":this.where.type=1;break;case"order":this.where.type=2;break}},dateTitle:function(){this.$refs.calendar.open(),this.time="date"},close:function(){this.current=!1},getInfo:function(){var t=this;t.loading||t.loaded||(t.loading=!0,t.filter.start=t.where.start,t.filter.stop=t.where.stop,(0,r.getStatisticsMonth)(t.filter).then((function(e){t.loading=!1,t.loaded=e.data.length<t.filter.limit,t.list.push.apply(t.list,e.data),t.filter.page=t.filter.page+1}),(function(e){t.$util.Tips({title:e})})))},showLineA:function(t,e){l=new n.default({$this:this,canvasId:t,type:"line",fontSize:11,padding:[15,15,0,15],legend:{show:!1,padding:5,lineHeight:11,margin:5},dataLabel:!0,dataPointShape:!0,dataPointShapeType:"hollow",background:"#FFFFFF",pixelRatio:this.pixelRatio,categories:e.categories,series:e.series,animation:!0,enableScroll:!0,xAxis:{disableGrid:!1,type:"grid",gridType:"dash",itemCount:4,scrollShow:!0,scrollAlign:"left"},yAxis:{gridType:"dash",splitNumber:8,min:0,max:30,format:function(t){return t.toFixed(0)}},width:this.cWidth*this.pixelRatio,height:this.cHeight*this.pixelRatio,extra:{line:{type:"straight"}}})},touchLineA:function(t){l.scrollStart(t)},moveLineA:function(t){l.scroll(t)},touchEndLineA:function(t){l.scrollEnd(t)},confirm:function(t){if(t.range.after&&t.range.before){var e=new Date(t.range.before+" 00:00:00").getTime()/1e3,a=new Date(t.range.after+" 23:59:59").getTime()/1e3;this.where.start=e,this.where.stop=a,this.list=[],this.filter.page=1,this.loaded=!1,this.loading=!1,Promise.all([this.getIndex(),this.getInfo()])}}},onReachBottom:function(){this.getInfo()}};e.default=d},e9c6:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"container",staticClass:"statistical-page"},[a("div",{staticClass:"navs"},[a("div",{staticClass:"list"},[a("div",{staticClass:"item",class:"today"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("today")}}},[t._v(t._s(t.$t("今天")))]),a("div",{staticClass:"item",class:"yesterday"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("yesterday")}}},[t._v(t._s(t.$t("昨天")))]),a("div",{staticClass:"item",class:"seven"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("seven")}}},[t._v(t._s(t.$t("最近7天")))]),a("div",{staticClass:"item",class:"month"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.setTime("month")}}},[t._v(t._s(t.$t("本月")))]),a("div",{staticClass:"item",class:"date"==t.time?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dateTitle.apply(void 0,arguments)}}},[t._v(t._s(t.$t("自定义")))])])]),a("div",{staticClass:"wrapper"},[a("div",{staticClass:"title"},[t._v(t._s("date"==t.time?"":t.title)+t._s(1==t.where.type?t.$t("营业额(元)"):t.$t("订单量(份)")))]),a("div",{staticClass:"money"},[t._v(t._s(t.time_price))]),a("div",{staticClass:"increase acea-row row-between-wrapper"},[a("div",[t._v(t._s("date"==t.time?"":t.title)+t._s(t.$t("增长率"))+":"),a("span",{class:1===t.increase_time_status?"red":"green"},[t._v(t._s(1===t.increase_time_status?"":"-")+t._s(t.growth_rate)+"%"),a("span",{staticClass:"iconfont",class:1===t.increase_time_status?"icon-xiangshang1":"icon-xiangxia2"})])]),a("div",[t._v(t._s("date"==t.time?"":t.title)+t._s(t.$t("增长"))+":"),a("span",{class:1===t.increase_time_status?"red":"green"},[t._v(t._s(1===t.increase_time_status?"":"-")+t._s(t.increase_time)),a("span",{staticClass:"iconfont",class:1===t.increase_time_status?"icon-xiangshang1":"icon-xiangxia2"})])])])]),a("div",{staticClass:"chart"},[a("div",{staticClass:"chart-title"},[t._v(t._s(t.$t("单位"))+"("+t._s(1==t.where.type?t.$t("元."):t.$t("份"))+")")]),a("v-uni-canvas",{staticClass:"charts",attrs:{"canvas-id":"canvasLineA",id:"canvasLineA","disable-scroll":"true"},on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.touchLineA.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.moveLineA.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.touchEndLineA.apply(void 0,arguments)}}})],1),a("div",{staticClass:"public-wrapper"},[a("div",{staticClass:"title"},[a("span",{staticClass:"iconfont icon-xiangxishuju"}),t._v(t._s(t.$t("详细数据")))]),a("div",{staticClass:"nav acea-row row-between-wrapper"},[a("div",{staticClass:"data"},[t._v(t._s(t.$t("日期")))]),a("div",{staticClass:"browse"},[t._v(t._s(t.$t("订单数")))]),a("div",{staticClass:"turnover"},[t._v(t._s(t.$t("成交额")))])]),a("div",{staticClass:"conter"},t._l(t.list,(function(e,i){return a("div",{key:i,staticClass:"item acea-row row-between-wrapper"},[a("div",{staticClass:"data"},[t._v(t._s(e.time))]),a("div",{staticClass:"browse"},[t._v(t._s(e.count))]),a("div",{staticClass:"turnover"},[t._v(t._s(e.price))])])})),0)]),a("uni-calendar",{ref:"calendar",attrs:{date:t.info.date,insert:t.info.insert,lunar:t.info.lunar,startDate:t.info.startDate,endDate:t.info.endDate,range:t.info.range,showMonth:t.info.showMonth},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}}),a("div",{directives:[{name:"show",rawName:"v-show",value:!0===t.current,expression:"current === true"}],staticClass:"mask",on:{touchmove:function(e){e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1)},n=[]}}]);