Highcharts JS v6.0.1

Posted 322829

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Highcharts JS v6.0.1相关的知识,希望对你有一定的参考价值。

/*自用,备份

 Highcharts JS v6.0.1 (2017-10-05)


 (c) 2009-2016 Torstein Honsi


 License: www.highcharts.com/license
*/
(function(R,N)"object"===typeof module&&module.exports?module.exports=R.document?N(R):N:R.Highcharts=N(R))("undefined"!==typeof window?window:this,function(R)var N=function()var a=R.document,A=R.navigator&&R.navigator.userAgent||"",B=a&&a.createElementNS&&!!a.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,G=/(edge|msie|trident)/i.test(A)&&!R.opera,F=/Firefox/.test(A),l=F&&4>parseInt(A.split("Firefox/")[1],10);return R.Highcharts?R.Highcharts.error(16,!0):product:"Highcharts",
version:"6.0.1",deg2rad:2*Math.PI/360,doc:a,hasBidiBug:l,hasTouch:a&&void 0!==a.documentElement.ontouchstart,isMS:G,isWebKit:/AppleWebKit/.test(A),isFirefox:F,isTouchDevice:/(Mobile|android|Windows Phone)/.test(A),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:,symbolSizes:,svg:B,win:R,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(),charts:[]();(function(a)var A=[],B=a.charts,G=a.doc,F=a.win;a.error=function(l,f)l=a.isNumber(l)?"Highcharts error #"+
l+": www.highcharts.com/errors/"+l:l;if(f)throw Error(l);F.console&&console.log(l);a.Fx=function(a,f,h)this.options=f;this.elem=a;this.prop=h;a.Fx.prototype=dSetter:function()var a=this.paths[0],f=this.paths[1],h=[],m=this.now,r=a.length,v;if(1===m)h=this.toD;else if(r===f.length&&1>m)for(;r--;)v=parseFloat(a[r]),h[r]=isNaN(v)?a[r]:m*parseFloat(f[r]-v)+v;else h=f;this.elem.attr("d",h,null,!0),update:function()var a=this.elem,f=this.prop,h=this.now,m=this.options.step;if(this[f+"Setter"])this[f+
"Setter"]();else a.attr?a.element&&a.attr(f,h,null,!0):a.style[f]=h+this.unit;m&&m.call(a,h,this),run:function(a,f,h)var m=this,l=function(a)return l.stopped?!1:m.step(a),v=F.requestAnimationFrame||function(a)setTimeout(a,13),d=function()var a;for(a=0;a<A.length;a++)A[a]()||A.splice(a--,1);A.length&&v(d);a===f?delete this.options.curAnim[this.prop]:(this.startTime=+new Date,this.start=a,this.end=f,this.unit=h,this.now=this.start,this.pos=0,l.elem=this.elem,l.prop=this.prop,l()&&1===A.push(l)&&
v(d)),step:function(l)var f=+new Date,h,m=this.options,r=this.elem,v=m.complete,d=m.duration,e=m.curAnim;r.attr&&!r.element?l=!1:l||f>=d+this.startTime?(this.now=this.end,this.pos=1,this.update(),h=e[this.prop]=!0,a.objectEach(e,function(a)!0!==a&&(h=!1)),h&&v&&v.call(r),l=!1):(this.pos=m.easing((f-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),l=!0);return l,initPath:function(l,f,h)function m(a)var c,b;for(p=a.length;p--;)c="M"===a[p]||"L"===a[p],b=/[a-zA-Z]/.test(a[p+
3]),c&&b&&a.splice(p+1,0,a[p+1],a[p+2],a[p+1],a[p+2])function r(a,b)for(;a.length<w;)a[0]=b[w-a.length];var k=a.slice(0,c);[].splice.apply(a,[0,0].concat(k));C&&(k=a.slice(a.length-c),[].splice.apply(a,[a.length,0].concat(k)),p--)a[0]="M"function v(a,d)for(var e=(w-a.length)/c;0<e&&e--;)k=a.slice().splice(a.length/I-c,c*I),k[0]=d[w-c-e*c],b&&(k[c-6]=k[c-2],k[c-5]=k[c-1]),[].splice.apply(a,[a.length/I,0].concat(k)),C&&e--f=f||"";var d,e=l.startX,n=l.endX,b=-1<f.indexOf("C"),c=b?7:3,w,k,p;f=
f.split(" ");h=h.slice();var C=l.isArea,I=C?2:1,y;b&&(m(f),m(h));if(e&&n)for(p=0;p<e.length;p++)if(e[p]===n[0])d=p;breakelse if(e[0]===n[n.length-e.length+p])d=p;y=!0;breakvoid 0===d&&(f=[])f.length&&a.isNumber(d)&&(w=h.length+d*I*c,y?(r(f,h),v(h,f)):(r(h,f),v(f,h)));return[f,h];a.Fx.prototype.fillSetter=a.Fx.prototype.strokeSetter=function()this.elem.attr(this.prop,a.color(this.start).tweenTo(a.color(this.end),this.pos),null,!0);a.extend=function(a,f)var l;a||(a=);for(l in f)a[l]=f[l];
return a;a.merge=function()var l,f=arguments,h,m=,r=function(f,d)"object"!==typeof f&&(f=);a.objectEach(d,function(e,n)!a.isObject(e,!0)||a.isClass(e)||a.isDOMElement(e)?f[n]=d[n]:f[n]=r(f[n]||,e));return f;!0===f[0]&&(m=f[1],f=Array.prototype.slice.call(f,2));h=f.length;for(l=0;l<h;l++)m=r(m,f[l]);return m;a.pInt=function(a,f)return parseInt(a,f||10);a.isString=function(a)return"string"===typeof a;a.isArray=function(a)a=Object.prototype.toString.call(a);return"[object Array]"===
a||"[object Array Iterator]"===a;a.isObject=function(l,f)return!!l&&"object"===typeof l&&(!f||!a.isArray(l));a.isDOMElement=function(l)return a.isObject(l)&&"number"===typeof l.nodeType;a.isClass=function(l)var f=l&&l.constructor;return!(!a.isObject(l,!0)||a.isDOMElement(l)||!f||!f.name||"Object"===f.name);a.isNumber=function(a)return"number"===typeof a&&!isNaN(a);a.erase=function(a,f)for(var l=a.length;l--;)if(a[l]===f)a.splice(l,1);break;a.defined=function(a)return void 0!==a&&null!==
a;a.attr=function(l,f,h)var m;a.isString(f)?a.defined(h)?l.setAttribute(f,h):l&&l.getAttribute&&(m=l.getAttribute(f)):a.defined(f)&&a.isObject(f)&&a.objectEach(f,function(a,f)l.setAttribute(f,a));return m;a.splat=function(l)return a.isArray(l)?l:[l];a.syncTimeout=function(a,f,h)if(f)return setTimeout(a,f,h);a.call(0,h);a.pick=function()var a=arguments,f,h,m=a.length;for(f=0;f<m;f++)if(h=a[f],void 0!==h&&null!==h)return h;a.css=function(l,f)a.isMS&&!a.svg&&f&&void 0!==f.opacity&&(f.filter=
"alpha(opacity\\x3d"+100*f.opacity+")");a.extend(l.style,f);a.createElement=function(l,f,h,m,r)l=G.createElement(l);var v=a.css;f&&a.extend(l,f);r&&v(l,padding:0,border:"none",margin:0);h&&v(l,h);m&&m.appendChild(l);return l;a.extendClass=function(l,f)var h=function();h.prototype=new l;a.extend(h.prototype,f);return h;a.pad=function(a,f,h)return Array((f||2)+1-String(a).length).join(h||0)+a;a.relativeLength=function(a,f,h)return/%$/.test(a)?f*parseFloat(a)/100+(h||0):parseFloat(a);a.wrap=
function(a,f,h)var m=a[f];a[f]=function()var a=Array.prototype.slice.call(arguments),f=arguments,d=this;d.proceed=function()m.apply(d,arguments.length?arguments:f);a.unshift(m);a=h.apply(this,a);d.proceed=null;return a;a.getTZOffset=function(l)var f=a.Date;return 6E4*(f.hcGetTimezoneOffset&&f.hcGetTimezoneOffset(l)||f.hcTimezoneOffset||0);a.dateFormat=function(l,f,h)if(!a.defined(f)||isNaN(f))return a.defaultOptions.lang.invalidDate||"";l=a.pick(l,"%Y-%m-%d %H:%M:%S");var m=a.Date,r=new m(f-
a.getTZOffset(f)),v=r[m.hcGetHours](),d=r[m.hcGetDay](),e=r[m.hcGetDate](),n=r[m.hcGetMonth](),b=r[m.hcGetFullYear](),c=a.defaultOptions.lang,w=c.weekdays,k=c.shortWeekdays,p=a.pad,m=a.extend(a:k?k[d]:w[d].substr(0,3),A:w[d],d:p(e),e:p(e,2," "),w:d,b:c.shortMonths[n],B:c.months[n],m:p(n+1),y:b.toString().substr(2,2),Y:b,H:p(v),k:v,I:p(v%12||12),l:v%12||12,M:p(r[m.hcGetMinutes]()),p:12>v?"AM":"PM",P:12>v?"am":"pm",S:p(r.getSeconds()),L:p(Math.round(f%1E3),3),a.dateFormats);a.objectEach(m,function(a,
b)for(;-1!==l.indexOf("%"+b);)l=l.replace("%"+b,"function"===typeof a?a(f):a));return h?l.substr(0,1).toUpperCase()+l.substr(1):l;a.formatSingle=function(l,f)var h=/\\.([0-9])/,m=a.defaultOptions.lang;/f$/.test(l)?(h=(h=l.match(h))?h[1]:-1,null!==f&&(f=a.numberFormat(f,h,m.decimalPoint,-1<l.indexOf(",")?m.thousandsSep:""))):f=a.dateFormat(l,f);return f;a.format=function(l,f)for(var h="",m=!1,r,v,d,e,n=[],b;l;)h=l.indexOf(h);if(-1===h)break;r=l.slice(0,h);if(m)r=r.split(":");v=r.shift().split(".");
e=v.length;b=f;for(d=0;d<e;d++)b&&(b=b[v[d]]);r.length&&(b=a.formatSingle(r.join(":"),b));n.push(b)else n.push(r);l=l.slice(h+1);h=(m=!m)?"":""n.push(l);return n.join("");a.getMagnitude=function(a)return Math.pow(10,Math.floor(Math.log(a)/Math.LN10));a.normalizeTickInterval=function(l,f,h,m,r)var v,d=l;h=a.pick(h,1);v=l/h;f||(f=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===m&&(1===h?f=a.grep(f,function(a)return 0===a%1):.1>=h&&(f=[1/h])));for(m=0;m<f.length&&!(d=f[m],r&&d*h>=l||!r&&
v<=(f[m]+(f[m+1]||f[m]))/2);m++);return d=a.correctFloat(d*h,-Math.round(Math.log(.001)/Math.LN10));a.stableSort=function(a,f)var h=a.length,m,l;for(l=0;l<h;l++)a[l].safeI=l;a.sort(function(a,d)m=f(a,d);return 0===m?a.safeI-d.safeI:m);for(l=0;l<h;l++)delete a[l].safeI;a.arrayMin=function(a)for(var f=a.length,h=a[0];f--;)a[f]<h&&(h=a[f]);return h;a.arrayMax=function(a)for(var f=a.length,h=a[0];f--;)a[f]>h&&(h=a[f]);return h;a.destroyObjectProperties=function(l,f)a.objectEach(l,function(a,
m)a&&a!==f&&a.destroy&&a.destroy();delete l[m]);a.discardElement=function(l)var f=a.garbageBin;f||(f=a.createElement("div"));l&&f.appendChild(l);f.innerhtml="";a.correctFloat=function(a,f)return parseFloat(a.toPrecision(f||14));a.setAnimation=function(l,f)f.renderer.globalAnimation=a.pick(l,f.options.chart.animation,!0);a.animObject=function(l)return a.isObject(l)?a.merge(l):duration:l?500:0;a.timeUnits=millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,
year:314496E5;a.numberFormat=function(l,f,h,m)l=+l||0;f=+f;var r=a.defaultOptions.lang,v=(l.toString().split(".")[1]||"").split("e")[0].length,d,e,n=l.toString().split("e");-1===f?f=Math.min(v,20):a.isNumber(f)||(f=2);e=(Math.abs(n[1]?n[0]:l)+Math.pow(10,-Math.max(f,v)-1)).toFixed(f);v=String(a.pInt(e));d=3<v.length?v.length%3:0;h=a.pick(h,r.decimalPoint);m=a.pick(m,r.thousandsSep);l=(0>l?"-":"")+(d?v.substr(0,d)+m:"");l+=v.substr(d).replace(/(\\d3)(?=\\d)/g,"$1"+m);f&&(l+=h+e.slice(-f));n[1]&&
(l+="e"+n[1]);return l;Math.easeInOutSine=function(a)return-.5*(Math.cos(Math.PI*a)-1);a.getStyle=function(l,f,h)if("width"===f)return Math.min(l.offsetWidth,l.scrollWidth)-a.getStyle(l,"padding-left")-a.getStyle(l,"padding-right");if("height"===f)return Math.min(l.offsetHeight,l.scrollHeight)-a.getStyle(l,"padding-top")-a.getStyle(l,"padding-bottom");F.getComputedStyle||a.error(27,!0);if(l=F.getComputedStyle(l,void 0))l=l.getPropertyValue(f),a.pick(h,"opacity"!==f)&&(l=a.pInt(l));return l;a.inArray=
function(l,f)return(a.indexOfPolyfill||Array.prototype.indexOf).call(f,l);a.grep=function(l,f)return(a.filterPolyfill||Array.prototype.filter).call(l,f);a.find=Array.prototype.find?function(a,f)return a.find(f):function(a,f)var h,m=a.length;for(h=0;h<m;h++)if(f(a[h],h))return a[h];a.map=function(a,f)for(var h=[],m=0,r=a.length;m<r;m++)h[m]=f.call(a[m],a[m],m,a);return h;a.reduce=function(l,f,h)return(a.reducePolyfill||Array.prototype.reduce).call(l,f,h);a.offset=function(a)var f=G.documentElement;
a=a.getBoundingClientRect();returntop:a.top+(F.pageYOffset||f.scrollTop)-(f.clientTop||0),left:a.left+(F.pageXOffset||f.scrollLeft)-(f.clientLeft||0);a.stop=function(a,f)for(var h=A.length;h--;)A[h].elem!==a||f&&f!==A[h].prop||(A[h].stopped=!0);a.each=function(l,f,h)return(a.forEachPolyfill||Array.prototype.forEach).call(l,f,h);a.objectEach=function(a,f,h)for(var m in a)a.hasOwnProperty(m)&&f.call(h,a[m],m,a);a.addEvent=function(l,f,h)var m=l.hcEvents=l.hcEvents||,r=l.addEventListener||
a.addEventListenerPolyfill;r&&r.call(l,f,h,!1);m[f]||(m[f]=[]);m[f].push(h);return function()a.removeEvent(l,f,h);a.removeEvent=function(l,f,h)function m(d,b)var c=l.removeEventListener||a.removeEventListenerPolyfill;c&&c.call(l,d,b,!1)function r()var e,b;l.nodeName&&(f?(e=,e[f]=!0):e=d,a.objectEach(e,function(a,e)if(d[e])for(b=d[e].length;b--;)m(e,d[e][b])))var v,d=l.hcEvents,e;d&&(f?(v=d[f]||[],h?(e=a.inArray(h,v),-1<e&&(v.splice(e,1),d[f]=v),m(f,h)):(r(),d[f]=[])):(r(),l.hcEvents=));
a.fireEvent=function(l,f,h,m)var r;r=l.hcEvents;var v,d;h=h||;if(G.createEvent&&(l.dispatchEvent||l.fireEvent))r=G.createEvent("Events"),r.initEvent(f,!0,!0),a.extend(r,h),l.dispatchEvent?l.dispatchEvent(r):l.fireEvent(f,r);else if(r)for(r=r[f]||[],v=r.length,h.target||a.extend(h,preventDefault:function()h.defaultPrevented=!0,target:l,type:f),f=0;f<v;f++)(d=r[f])&&!1===d.call(l,h)&&h.preventDefault();m&&!h.defaultPrevented&&m(h);a.animate=function(l,f,h)var m,r="",v,d,e;a.isObject(h)||(e=
arguments,h=duration:e[2],easing:e[3],complete:e[4]);a.isNumber(h.duration)||(h.duration=400);h.easing="function"===typeof h.easing?h.easing:Math[h.easing]||Math.easeInOutSine;h.curAnim=a.merge(f);a.objectEach(f,function(e,b)a.stop(l,b);d=new a.Fx(l,h,b);v=null;"d"===b?(d.paths=d.initPath(l,l.d,f.d),d.toD=f.d,m=0,v=1):l.attr?m=l.attr(b):(m=parseFloat(a.getStyle(l,b))||0,"opacity"!==b&&(r="px"));v||(v=e);v&&v.match&&v.match("px")&&(v=v.replace(/px/g,""));d.run(m,v,r));a.seriesType=function(l,
f,h,m,r)var v=a.getOptions(),d=a.seriesTypes;v.plotOptions[l]=a.merge(v.plotOptions[f],h);d[l]=a.extendClass(d[f]||function(),m);d[l].prototype.type=l;r&&(d[l].prototype.pointClass=a.extendClass(a.Point,r));return d[l];a.uniqueKey=function()var a=Math.random().toString(36).substring(2,9),f=0;return function()return"highcharts-"+a+"-"+f++();F.jQuery&&(F.jQuery.fn.highcharts=function()var l=[].slice.call(arguments);if(this[0])return l[0]?(new (a[a.isString(l[0])?l.shift():"Chart"])(this[0],
l[0],l[1]),this):B[a.attr(this[0],"data-highcharts-chart")]))(N);(function(a)var A=a.each,B=a.isNumber,G=a.map,F=a.merge,l=a.pInt;a.Color=function(f)if(!(this instanceof a.Color))return new a.Color(f);this.init(f);a.Color.prototype=parsers:[regex:/rgba\\(\\s*([0-9]1,3)\\s*,\\s*([0-9]1,3)\\s*,\\s*([0-9]1,3)\\s*,\\s*([0-9]?(?:\\.[0-9]+)?)\\s*\\)/,parse:function(a)return[l(a[1]),l(a[2]),l(a[3]),parseFloat(a[4],10)],regex:/rgb\\(\\s*([0-9]1,3)\\s*,\\s*([0-9]1,3)\\s*,\\s*([0-9]1,3)\\s*\\)/,parse:function(a)return[l(a[1]),
l(a[2]),l(a[3]),1]],names:none:"rgba(255,255,255,0)",white:"#ffffff",black:"#000000",init:function(f)var h,m,r,v;if((this.input=f=this.names[f&&f.toLowerCase?f.toLowerCase():""]||f)&&f.stops)this.stops=G(f.stops,function(d)return new a.Color(d[1]));else if(f&&f.charAt&&"#"===f.charAt()&&(h=f.length,f=parseInt(f.substr(1),16),7===h?m=[(f&16711680)>>16,(f&65280)>>8,f&255,1]:4===h&&(m=[(f&3840)>>4|(f&3840)>>8,(f&240)>>4|f&240,(f&15)<<4|f&15,1])),!m)for(r=this.parsers.length;r--&&!m;)v=this.parsers[r],
(h=v.regex.exec(f))&&(m=v.parse(h));this.rgba=m||[],get:function(a)var f=this.input,m=this.rgba,r;this.stops?(r=F(f),r.stops=[].concat(r.stops),A(this.stops,function(f,d)r.stops[d]=[r.stops[d][0],f.get(a)])):r=m&&B(m[0])?"rgb"===a||!a&&1===m[3]?"rgb("+m[0]+","+m[1]+","+m[2]+")":"a"===a?m[3]:"rgba("+m.join(",")+")":f;return r,brighten:function(a)var f,m=this.rgba;if(this.stops)A(this.stops,function(f)f.brighten(a));else if(B(a)&&0!==a)for(f=0;3>f;f++)m[f]+=l(255*a),0>m[f]&&(m[f]=0),255<m[f]&&
(m[f]=255);return this,setOpacity:function(a)this.rgba[3]=a;return this,tweenTo:function(a,h)var f=this.rgba,r=a.rgba;r.length&&f&&f.length?(a=1!==r[3]||1!==f[3],h=(a?"rgba(":"rgb(")+Math.round(r[0]+(f[0]-r[0])*(1-h))+","+Math.round(r[1]+(f[1]-r[1])*(1-h))+","+Math.round(r[2]+(f[2]-r[2])*(1-h))+(a?","+(r[3]+(f[3]-r[3])*(1-h)):"")+")"):h=a.input||"none";return h;a.color=function(f)return new a.Color(f))(N);(function(a)var A,B,G=a.addEvent,F=a.animate,l=a.attr,f=a.charts,h=a.color,m=a.css,
r=a.createElement,v=a.defined,d=a.deg2rad,e=a.destroyObjectProperties,n=a.doc,b=a.each,c=a.extend,w=a.erase,k=a.grep,p=a.hasTouch,C=a.inArray,I=a.isArray,y=a.isFirefox,K=a.isMS,q=a.isObject,z=a.isString,J=a.isWebKit,t=a.merge,D=a.noop,E=a.objectEach,H=a.pick,g=a.pInt,u=a.removeEvent,P=a.stop,M=a.svg,O=a.SVG_NS,L=a.symbolSizes,S=a.win;A=a.SVGElement=function()return this;c(A.prototype,opacity:1,SVG_NS:O,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline".split(" "),
init:function(a,g)this.element="span"===g?r(g):n.createElementNS(this.SVG_NS,g);this.renderer=a,animate:function(x,g,u)g=a.animObject(H(g,this.renderer.globalAnimation,!0));0!==g.duration?(u&&(g.complete=u),F(this,x,g)):(this.attr(x,null,u),g.step&&g.step.call(this));return this,colorGradient:function(x,g,u)var c=this.renderer,k,Q,d,e,w,p,M,n,L,f,y=[],q;x.radialGradient?Q="radialGradient":x.linearGradient&&(Q="linearGradient");Q&&(d=x[Q],w=c.gradients,M=x.stops,f=u.radialReference,I(d)&&(x[Q]=
d=x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"),"radialGradient"===Q&&f&&!v(d.gradientUnits)&&(e=d,d=t(d,c.getRadialAttr(f,e),gradientUnits:"userSpaceOnUse")),E(d,function(a,x)"id"!==x&&y.push(x,a)),E(M,function(a)y.push(a)),y=y.join(","),w[y]?f=w[y].attr("id"):(d.id=f=a.uniqueKey(),w[y]=p=c.createElement(Q).attr(d).add(c.defs),p.radAttr=e,p.stops=[],b(M,function(x)0===x[1].indexOf("rgba")?(k=a.color(x[1]),n=k.get("rgb"),L=k.get("a")):(n=x[1],L=1);x=c.createElement("stop").attr(offset:x[0],
"stop-color":n,"stop-opacity":L).add(p);p.stops.push(x))),q="url("+c.url+"#"+f+")",u.setAttribute(g,q),u.gradient=y,x.toString=function()return q),applyTextOutline:function(x)var g=this.element,u,c,k,d,t;-1!==x.indexOf("contrast")&&(x=x.replace(/contrast/g,this.renderer.getContrast(g.style.fill)));x=x.split(" ");c=x[x.length-1];if((k=x[0])&&"none"!==k&&a.svg)this.fakeTS=!0;x=[].slice.call(g.getElementsByTagName("tspan"));this.ySetter=this.xSetter;k=k.replace(/(^[\\d\\.]+)(.*?)$/g,function(a,
x,g)return 2*x+g);for(t=x.length;t--;)u=x[t],"highcharts-text-outline"===u.getAttribute("class")&&w(x,g.removeChild(u));d=g.firstChild;b(x,function(a,x)0===x&&(a.setAttribute("x",g.getAttribute("x")),x=g.getAttribute("y"),a.setAttribute("y",x||0),null===x&&g.setAttribute("y",0));a=a.cloneNode(1);l(a,"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":k,"stroke-linejoin":"round");g.insertBefore(a,d)),attr:function(a,g,u,c)var x,k=this.element,b,d=this,Q,t;"string"===typeof a&&
void 0!==g&&(x=a,a=,a[x]=g);"string"===typeof a?d=(this[a+"Getter"]||this._defaultGetter).call(this,a,k):(E(a,function(x,g)Q=!1;c||P(this,g);this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)$/.test(g)&&(b||(this.symbolAttr(a),b=!0),Q=!0);!this.rotation||"x"!==g&&"y"!==g||(this.doTransform=!0);Q||(t=this[g+"Setter"]||this._defaultSetter,t.call(this,x,g,k),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(g)&&this.updateShadows(g,x,t)),this),this.afterSetters());
u&&u();return d,afterSetters:function()this.doTransform&&(this.updateTransform(),this.doTransform=!1),updateShadows:function(a,g,u)for(var x=this.shadows,c=x.length;c--;)u.call(x[c],"height"===a?Math.max(g-(x[c].cutHeight||0),0):"d"===a?this.d:g,a,x[c]),addClass:function(a,g)var x=this.attr("class")||"";-1===x.indexOf(a)&&(g||(a=(x+(x?" ":"")+a).replace("  "," ")),this.attr("class",a));return this,hasClass:function(a)return-1!==C(a,(this.attr("class")||"").split(" ")),removeClass:function(a)return this.attr("class",
(this.attr("class")||"").replace(a,"")),symbolAttr:function(a)var x=this;b("x y r start end width height innerR anchorX anchorY".split(" "),function(g)x[g]=H(a[g],x[g]));x.attr(d:x.renderer.symbols[x.symbolName](x.x,x.y,x.width,x.height,x)),clip:function(a)return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none"),crisp:function(a,g)var x=this,u=,c;g=g||a.strokeWidth||0;c=Math.round(g)%2/2;a.x=Math.floor(a.x||x.x||0)+c;a.y=Math.floor(a.y||x.y||0)+c;a.width=Math.floor((a.width||
x.width||0)-2*c);a.height=Math.floor((a.height||x.height||0)-2*c);v(a.strokeWidth)&&(a.strokeWidth=g);E(a,function(a,g)x[g]!==a&&(x[g]=u[g]=a));return u,css:function(a)var x=this.styles,u=,k=this.element,b,d="",t,e=!x,p=["textOutline","textOverflow","width"];a&&a.color&&(a.fill=a.color);x&&E(a,function(a,g)a!==x[g]&&(u[g]=a,e=!0));e&&(x&&(a=c(x,u)),b=this.textWidth=a&&a.width&&"auto"!==a.width&&"text"===k.nodeName.toLowerCase()&&g(a.width),this.styles=a,b&&!M&&this.renderer.forExport&&delete a.width,
K&&!M?m(this.element,a):(t=function(a,x)return"-"+x.toLowerCase(),E(a,function(a,x)-1===C(x,p)&&(d+=x.replace(/([A-Z])/g,t)+":"+a+";")),d&&l(k,"style",d)),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline)));return this,strokeWidth:function()return this["stroke-width"]||0,on:function(a,g)var x=this,u=x.element;p&&"click"===a?(u.ontouchstart=function(a)x.touchEventFired=Date.now();a.preventDefault();g.call(u,a),
u.οnclick=function(a)(-1===S.navigator.userAgent.indexOf("Android")||1100<Date.now()-(x.touchEventFired||0))&&g.call(u,a)):u["on"+a]=g;return this,setRadialReference:function(a)var x=this.renderer.gradients[this.element.gradient];this.element.radialReference=a;x&&x.radAttr&&x.animate(this.renderer.getRadialAttr(a,x.radAttr));return this,translate:function(a,g)return this.attr(translateX:a,translateY:g),invert:function(a)this.inverted=a;this.updateTransform();return this,updateTransform:function()var a=
this.translateX||0,g=this.translateY||0,u=this.scaleX,c=this.scaleY,k=this.inverted,b=this.rotation,d=this.matrix,t=this.element;k&&(a+=this.width,g+=this.height);a=["translate("+a+","+g+")"];v(d)&&a.push("matrix("+d.join(",")+")");k?a.push("rotate(90) scale(-1,1)"):b&&a.push("rotate("+b+" "+H(this.rotationOriginX,t.getAttribute("x"),0)+" "+H(this.rotationOriginY,t.getAttribute("y")||0)+")");(v(u)||v(c))&&a.push("scale("+H(u,1)+" "+H(c,1)+")");a.length&&t.setAttribute("transform",a.join(" ")),toFront:function()var a=
this.element;a.parentNode.appendChild(a);return this,align:function(a,g,u)var x,c,k,b,d=;c=this.renderer;k=c.alignedObjects;var t,e;if(a)if(this.alignOptions=a,this.alignByTranslate=g,!u||z(u))this.alignTo=x=u||"renderer",w(k,this),k.push(this),u=nullelse a=this.alignOptions,g=this.alignByTranslate,x=this.alignTo;u=H(u,c[x],c);x=a.align;c=a.verticalAlign;k=(u.x||0)+(a.x||0);b=(u.y||0)+(a.y||0);"right"===x?t=1:"center"===x&&(t=2);t&&(k+=(u.width-(a.width||0))/t);d[g?"translateX":"x"]=Math.round(k);
"bottom"===c?e=1:"middle"===c&&(e=2);e&&(b+=(u.height-(a.height||0))/e);d[g?"translateY":"y"]=Math.round(b);this[this.placed?"animate":"attr"](d);this.placed=!0;this.alignAttr=d;return this,getBBox:function(a,g)var x,u=this.renderer,k,t=this.element,e=this.styles,Q,p=this.textStr,w,M=u.cache,n=u.cacheKeys,L;g=H(g,this.rotation);k=g*d;Q=e&&e.fontSize;void 0!==p&&(L=p.toString(),-1===L.indexOf("\\x3c")&&(L=L.replace(/[0-9]/g,"0")),L+=["",g||0,Q,e&&e.width,e&&e.textOverflow].join());L&&!a&&(x=M[L]);
if(!x)if(t.namespaceURI===this.SVG_NS||u.forExport)try(w=this.fakeTS&&function(a)b(t.querySelectorAll(".highcharts-text-outline"),function(x)x.style.display=a))&&w("none"),x=t.getBBox?c(,t.getBBox()):width:t.offsetWidth,height:t.offsetHeight,w&&w("")catch(X)if(!x||0>x.width)x=width:0,height:0else x=this.htmlGetBBox();u.isSVG&&(a=x.width,u=x.height,e&&"11px"===e.fontSize&&17===Math.round(u)&&(x.height=u=14),g&&(x.width=Math.abs(u*Math.sin(k))+Math.abs(a*Math.cos(k)),x.height=Math.abs(u*
Math.cos(k))+Math.abs(a*Math.sin(k))));if(L&&0<x.height)for(;250<n.length;)delete M[n.shift()];M[L]||n.push(L);M[L]=xreturn x,show:function(a)return this.attr(visibility:a?"inherit":"visible"),hide:function()return this.attr(visibility:"hidden"),fadeOut:function(a)var g=this;g.animate(opacity:0,duration:a||150,complete:function()g.attr(y:-9999)),add:function(a)var g=this.renderer,x=this.element,u;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&
g.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)u=this.zIndexSetter();u||(a?a.element:g.box).appendChild(x);if(this.onAdd)this.onAdd();return this,safeRemoveChild:function(a)var g=a.parentNode;g&&g.removeChild(a),destroy:function()var a=this,g=a.element||,u=a.renderer.isSVG&&"SPAN"===g.nodeName&&a.parentGroup,c=g.ownerSVGElement;g.οnclick=g.οnmοuseοut=g.οnmοuseοver=g.οnmοusemοve=g.point=null;P(a);a.clipPath&&c&&(b(c.querySelectorAll("[clip-path]"),function(g)-1<g.getAttribute("clip-path").indexOf(a.clipPath.element.id+
")")&&g.removeAttribute("clip-path")),a.clipPath=a.clipPath.destroy());if(a.stops)for(c=0;c<a.stops.length;c++)a.stops[c]=a.stops[c].destroy();a.stops=nulla.safeRemoveChild(g);for(a.destroyShadows();u&&u.div&&0===u.div.childNodes.length;)g=u.parentGroup,a.safeRemoveChild(u.div),delete u.div,u=g;a.alignTo&&w(a.renderer.alignedObjects,a);E(a,function(g,x)delete a[x]);return null,shadow:function(a,g,u)var x=[],c,k,b=this.element,d,t,e,p;if(!a)this.destroyShadows();else if(!this.shadows)t=H(a.width,
3);e=(a.opacity||.15)/t;p=this.parentInverted?"(-1,-1)":"("+H(a.offsetX,1)+", "+H(a.offsetY,1)+")";for(c=1;c<=t;c++)k=b.cloneNode(0),d=2*t+1-2*c,l(k,isShadow:"true",stroke:a.color||"#000000","stroke-opacity":e*c,"stroke-width":d,transform:"translate"+p,fill:"none"),u&&(l(k,"height",Math.max(l(k,"height")-d,0)),k.cutHeight=d),g?g.element.appendChild(k):b.parentNode&&b.parentNode.insertBefore(k,b),x.push(k);this.shadows=xreturn this,destroyShadows:function()b(this.shadows||[],function(a)this.safeRemoveChild(a),
this);this.shadows=void 0,xGetter:function(a)"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a),_defaultGetter:function(a)a=H(this[a],this.element?this.element.getAttribute(a):null,0);/^[\\-0-9\\.]+$/.test(a)&&(a=parseFloat(a));return a,dSetter:function(a,g,u)a&&a.join&&(a=a.join(" "));/(NaN| 2|^$)/.test(a)&&(a="M 0 0");this[g]!==a&&(u.setAttribute(g,a),this[g]=a),dashstyleSetter:function(a)var u,x=this["stroke-width"];"inherit"===x&&(x=1);if(a=
a&&a.toLowerCase())a=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(u=a.length;u--;)a[u]=g(a[u])*x;a=a.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a),alignSetter:function(a)this.element.setAttribute("text-anchor",left:"start",center:"middle",right:"end"[a]),opacitySetter:function(a,
g,u)this[g]=a;u.setAttribute(g,a),titleSetter:function(a)var g=this.element.getElementsByTagName("title")[0];g||(g=n.createElementNS(this.SVG_NS,"title"),this.element.appendChild(g));g.firstChild&&g.removeChild(g.firstChild);g.appendChild(n.createTextNode(String(H(a),"").replace(/<[^>]*>/g,""))),textSetter:function(a)a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this)),fillSetter:function(a,g,u)"string"===typeof a?u.setAttribute(g,a):a&&this.colorGradient(a,
g,u),visibilitySetter:function(a,g,u)"inherit"===a?u.removeAttribute(g):this[g]!==a&&u.setAttribute(g,a);this[g]=a,zIndexSetter:function(a,u)var c=this.renderer,k=this.parentGroup,x=(k||c).element||c.box,b,d=this.element,t,e,c=x===c.box;b=this.added;var p;v(a)&&(d.zIndex=a,a=+a,this[u]===a&&(b=!1),this[u]=a);if(b)(a=this.zIndex)&&k&&(k.handleZ=!0);u=x.childNodes;for(p=u.length-1;0<=p&&!t;p--)if(k=u[p],b=k.zIndex,e=!v(b),k!==d)if(0>a&&e&&!c&&!p)x.insertBefore(d,u[p]),t=!0;else if(g(b)<=a||e&&
(!v(a)||0<=a))x.insertBefore(d,u[p+1]||null),t=!0;t||(x.insertBefore(d,u[c?3:0]||null),t=!0)return t,_defaultSetter:function(a,g,u)u.setAttribute(g,a));A.prototype.yGetter=A.prototype.xGetter;A.prototype.translateXSetter=A.prototype.translateYSetter=A.prototype.rotationSetter=A.prototype.verticalAlignSetter=A.prototype.rotationOriginXSetter=A.prototype.rotationOriginYSetter=A.prototype.scaleXSetter=A.prototype.scaleYSetter=A.prototype.matrixSetter=function(a,g)this[g]=a;this.doTransform=!0;
A.prototype["stroke-widthSetter"]=A.prototype.strokeSetter=function(a,g,u)this[g]=a;this.stroke&&this["stroke-width"]?(A.prototype.fillSetter.call(this,this.stroke,"stroke",u),u.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===g&&0===a&&this.hasStroke&&(u.removeAttribute("stroke"),this.hasStroke=!1);B=a.SVGRenderer=function()this.init.apply(this,arguments);c(B.prototype,Element:A,SVG_NS:O,init:function(a,g,u,c,k,b)var x;c=this.createElement("svg").attr(version:"1.1",
"class":"highcharts-root").css(this.getStyle(c));x=c.element;a.appendChild(x);-1===a.innerHTML.indexOf("xmlns")&&l(x,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=x;this.boxWrapper=c;this.alignedObjects=[];this.url=(y||J)&&n.getElementsByTagName("base").length?S.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\\('\\)])/g,"\\\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(n.createTextNode("Created with Highcharts 6.0.1"));this.defs=this.createElement("defs").add();
this.allowHTML=b;this.forExport=k;this.gradients=;this.cache=;this.cacheKeys=[];this.imgCount=0;this.setSize(g,u,!1);var d;y&&a.getBoundingClientRect&&(g=function()m(a,left:0,top:0);d=a.getBoundingClientRect();m(a,left:Math.ceil(d.left)-d.left+"px",top:Math.ceil(d.top)-d.top+"px"),g(),this.unSubPixelFix=G(S,"resize",g)),getStyle:function(a)return this.style=c(fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px",a),setStyle:function(a)this.boxWrapper.css(this.getStyle(a)),
isHidden:function()return!this.boxWrapper.getBBox().width,destroy:function()var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();e(this.gradients||);this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null,createElement:function(a)var g=new this.Element;g.init(this,a);return g,draw:D,getRadialAttr:function(a,g)returncx:a[0]-a[2]/2+g.cx*a[2],cy:a[1]-a[2]/2+g.cy*a[2],r:g.r*a[2],getSpanWidth:function(a,g)var u=
a.getBBox(!0).width;!M&&this.forExport&&(u=this.measureSpanWidth(g.firstChild.data,a.styles));return u,applyEllipsis:function(a,g,u,c)var k=a.rotation,b=u,x,d=0,t=u.length,e=function(a)g.removeChild(g.firstChild);a&&g.appendChild(n.createTextNode(a)),p;a.rotation=0;b=this.getSpanWidth(a,g);if(p=b>c)for(;d<=t;)x=Math.ceil((d+t)/2),b=u.substring(0,x)+"\\u2026",e(b),b=this.getSpanWidth(a,g),d===t?d=t+1:b>c?t=x-1:d=x;0===t&&e("")a.rotation=k;return p,escapes:"\\x26":"\\x26amp;","\\x3c":"\\x26lt;",
"\\x3e":"\\x26gt;","'":"\\x26#39;",'"':"\\x26quot",buildText:function(a)var u=a.element,c=this,d=c.forExport,x=H(a.textStr,"").toString(),t=-1!==x.indexOf("\\x3c"),e=u.childNodes,p,w,L,f,y=l(u,"x"),q=a.styles,D=a.textWidth,C=q&&q.lineHeight,z=q&&q.textOutline,h=q&&"ellipsis"===q.textOverflow,I=q&&"nowrap"===q.whiteSpace,P=q&&q.fontSize,r,v,K=e.length,q=D&&!a.added&&this.box,S=function(a)var k;k=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:P||c.style.fontSize||12;return C?g(C):c.fontMetrics(k,
a.getAttribute("style")?a:u).h,J=function(a)E(c.escapes,function(g,u)a=a.replace(new RegExp(g,"g"),u));return a;r=[x,h,I,C,z,P,D].join();if(r!==a.textCache)for(a.textCache=r;K--;)u.removeChild(e[K]);t||z||h||D||-1!==x.indexOf(" ")?(p=/<.*class="([^"]+)".*>/,w=/<.*style="([^"]+)".*>/,L=/<.*href="([^"]+)".*>/,q&&q.appendChild(u),x=t?x.replace(/<(b|strong)>/g,'\\x3cspan style\\x3d"font-weight:bold"\\x3e').replace(/<(i|em)>/g,'\\x3cspan style\\x3d"font-style:italic"\\x3e').replace(/<a/g,"\\x3cspan").replace(/<\\/(b|strong|i|em|a)>/g,
"\\x3c/span\\x3e").split(/<br.*?>/g):[x],x=k(x,function(a)return""!==a),b(x,function(g,k)var x,t=0;g=g.replace(/^\\s+|\\s+$/g,"").replace(/<span/g,"|||\\x3cspan").replace(/<\\/span>/g,"\\x3c/span\\x3e|||");x=g.split("|||");b(x,function(g)if(""!==g||1===x.length)var b=,e=n.createElementNS(c.SVG_NS,"tspan"),q,E;p.test(g)&&(q=g.match(p)[1],l(e,"class",q));w.test(g)&&(E=g.match(w)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),l(e,"style",E));L.test(g)&&!d&&(l(e,"onclick",'location.href\\x3d"'+g.match(L)[1]+
'"'),l(e,"class","highcharts-anchor"),m(e,cursor:"pointer"));g=J(g.replace(/<[a-zA-Z\\/](.|\\n)*?>/g,"")||" ");if(" "!==g)e.appendChild(n.createTextNode(g));t?b.dx=0:k&&null!==y&&(b.x=y);l(e,b);u.appendChild(e);!t&&v&&(!M&&d&&m(e,display:"block"),l(e,"dy",S(e)));if(D)b=g.replace(/([^\\^])-/g,"$1- ").split(" ");q=1<x.length||k||1<b.length&&!I;var C=[],Q,z=S(e),r=a.rotation;for(h&&(f=c.applyEllipsis(a,e,g,D));!h&&q&&(b.length||C.length);)a.rotation=0,Q=c.getSpanWidth(a,e),g=Q>D,void 0===f&&(f=g),
g&&1!==b.length?(e.removeChild(e.firstChild),C.unshift(b.pop())):(b=C,C=[],b.length&&!I&&(e=n.createElementNS(O,"tspan"),l(e,dy:z,x:y),E&&l(e,"style",E),u.appendChild(e)),Q>D&&(D=Q)),b.length&&e.appendChild(n.createTextNode(b.join(" ").replace(/- /g,"-")));a.rotation=rt++);v=v||u.childNodes.length),f&&a.attr("title",a.textStr),q&&q.removeChild(u),z&&a.applyTextOutline&&a.applyTextOutline(z)):u.appendChild(n.createTextNode(J(x))),getContrast:function(a)a=h(a).rgba;return 510<a[0]+a[1]+a[2]?
"#000000":"#FFFFFF",button:function(a,g,u,k,b,d,e,p,w)var x=this.label(a,g,u,w,null,null,null,null,"button"),M=0;x.attr(t(padding:8,r:2,b));var n,L,f,q;b=t(fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:color:"#333333",cursor:"pointer",fontWeight:"normal",b);n=b.style;delete b.style;d=t(b,fill:"#e6e6e6",d);L=d.style;delete d.style;e=t(b,fill:"#e6ebf5",style:color:"#000000",fontWeight:"bold",e);f=e.style;delete e.style;p=t(b,style:color:"#cccccc",p);q=p.style;delete p.style;
G(x.element,K?"mouseover":"mouseenter",function()3!==M&&x.setState(1));G(x.element,K?"mouseout":"mouseleave",function()3!==M&&x.setState(M));x.setState=function(a)1!==a&&(x.state=M=a);x.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]);x.attr([b,d,e,p][a||0]).css([n,L,f,q][a||0]);x.attr(b).css(c(cursor:"default",n));return x.on("click",function(a)3!==M&&k.call(x,a)),crispLine:function(a,g)a[1]===
a[4]&&(a[1]=a[4]=Math.round(a[1])-g%2/2);a[2]===a[5]&&(a[2]=a[5]=Math.round(a[2])+g%2/2);return a,path:function(a)var g=fill:"none";I(a)?g.d=a:q(a)&&c(g,a);return this.createElement("path").attr(g),circle:function(a,g,u)a=q(a)?a:x:a,y:g,r:u;g=this.createElement("circle");g.xSetter=g.ySetter=function(a,g,u)u.setAttribute("c"+g,a);return g.attr(a),arc:function(a,g,u,c,b,k)q(a)?(c=a,g=c.y,u=c.r,a=c.x):c=innerR:c,start:b,end:k;a=this.symbol("arc",a,g,u,u,c);a.r=u;return a,rect:function(a,
g,u,c,b,k)b=q(a)?a.r:b;var d=this.createElement("rect");a=q(a)?a:void 0===a?:x:a,y:g,width:Math.max(u,0),height:Math.max(c,0);void 0!==k&&(a.strokeWidth=k,a=d.crisp(a));a.fill="none";b&&(a.r=b);d.rSetter=function(a,g,u)l(u,rx:a,ry:a);return d.attr(a),setSize:function(a,g,u)var c=this.alignedObjects,b=c.length;this.width=a;this.height=g;for(this.boxWrapper.animate(width:a,height:g,step:function()this.attr(viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")),duration:H(u,!0)?
void 0:0);b--;)c[b].align(),g:function(a)var g=this.createElement("g");return a?g.attr("class":"highcharts-"+a):g,image:function(a,g,u,b,k)var d=preserveAspectRatio:"none";1<arguments.length&&c(d,x:g,y:u,width:b,height:k);d=this.createElement("image").attr(d);d.element.setAttributeNS?d.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):d.element.setAttribute("hc-svg-href",a);return d,symbol:function(a,g,u,k,d,t)var e=this,x,p=/^url\\((.*?)\\)$/,w=p.test(a),M=!w&&(this.symbols[a]?
a:"circle"),q=M&&this.symbols[M],y=v(g)&&q&&q.call(this.symbols,Math.round(g),Math.round(u),k,d,t),E,D;q?(x=this.path(y),x.attr("fill","none"),c(x,symbolName:M,x:g,y:u,width:k,height:d),t&&c(x,t)):w&&(E=a.match(p)[1],x=this.image(E),x.imgwidth=H(L[E]&&L[E].width,t&&t.width),x.imgheight=H(L[E]&&L[E].height,t&&t.height),D=function()x.attr(width:x.width,height:x.height),b(["width","height"],function(a)x[a+"Setter"]=function(a,g)var u=,c=this["img"+g],b="width"===g?"translateX":"translateY";
this[g]=a;v(c)&&(this.element&&this.element.setAttribute(g,c),this.alignByTranslate||(u[b]=((this[g]||0)-c)/2,this.attr(u)))),v(g)&&x.attr(x:g,y:u),x.isImg=!0,v(x.imgwidth)&&v(x.imgheight)?D():(x.attr(width:0,height:0),r("img",onload:function()var a=f[e.chartIndex];0===this.width&&(m(this,position:"absolute",top:"-999em"),n.body.appendChild(this));L[E]=width:this.width,height:this.height;x.imgwidth=this.width;x.imgheight=this.height;x.element&&D();this.parentNode&&this.parentNode.removeChild(this);
e.imgCount--;if(!e.imgCount&&a&&a.onload)a.onload(),src:E),this.imgCount++));return x,symbols:circle:function(a,g,u,c)return this.arc(a+u/2,g+c/2,u/2,c/2,start:0,end:2*Math.PI,open:!1),square:function(a,g,u,c)return["M",a,g,"L",a+u,g,a+u,g+c,a,g+c,"Z"],triangle:function(a,g,u,c)return["M",a+u/2,g,"L",a+u,g+c,a,g+c,"Z"],"triangle-down":function(a,g,u,c)return["M",a,g,"L",a+u,g,a+u/2,g+c,"Z"],diamond:function(a,g,u,c)return["M",a+u/2,g,"L",a+u,g+c/2,a+u/2,g+c,a,g+c/2,"Z"],arc:function(a,
g,u,c,b)var k=b.start,d=b.r||u,t=b.r||c||u,e=b.end-.001;u=b.innerR;c=H(b.open,.001>Math.abs(b.end-b.start-2*Math.PI));var x=Math.cos(k),p=Math.sin(k),w=Math.cos(e),e=Math.sin(e);b=.001>b.end-k-Math.PI?0:1;d=["M",a+d*x,g+t*p,"A",d,t,0,b,1,a+d*w,g+t*e];v(u)&&d.push(c?"M":"L",a+u*w,g+u*e,"A",u,u,0,b,0,a+u*x,g+u*p);d.push(c?"":"Z");return d,callout:function(a,g,u,c,b)var k=Math.min(b&&b.r||0,u,c),d=k+6,t=b&&b.anchorX;b=b&&b.anchorY;var e;e=["M",a+k,g,"L",a+u-k,g,"C",a+u,g,a+u,g,a+u,g+k,"L",a+u,g+c-
k,"C",a+u,g+c,a+u,g+c,a+u-k,g+c,"L",a+k,g+c,"C",a,g+c,a,g+c,a,g+c-k,"L",a,g+k,"C",a,g,a,g,a+k,g];t&&t>u?b>g+d&&b<g+c-d?e.splice(13,3,"L",a+u,b-6,a+u+6,b,a+u,b+6,a+u,g+c-k):e.splice(13,3,"L",a+u,c/2,t,b,a+u,c/2,a+u,g+c-k):t&&0>t?b>g+d&&b<g+c-d?e.splice(33,3,"L",a,b+6,a-6,b,a,b-6,a,g+k):e.splice(33,3,"L",a,c/2,t,b,a,c/2,a,g+k):b&&b>c&&t>a+d&&t<a+u-d?e.splice(23,3,"L",t+6,g+c,t,g+c+6,t-6,g+c,a+k,g+c):b&&0>b&&t>a+d&&t<a+u-d&&e.splice(3,3,"L",t-6,g,t,g-6,t+6,g,u-k,g);return e,clipRect:function(g,u,c,
b)var k=a.uniqueKey(),d=this.createElement("clipPath").attr(id:k).add(this.defs);g=this.rect(g,u,c,b,0).add(d);g.id=k;g.clipPath=d;g.count=0;return g,text:function(a,g,u,c)var b=;if(c&&(this.allowHTML||!this.forExport))return this.html(a,g,u);b.x=Math.round(g||0);u&&(b.y=Math.round(u));if(a||0===a)b.text=a;a=this.createElement("text").attr(b);c||(a.xSetter=function(a,g,u)var c=u.getElementsByTagName("tspan"),b,k=u.getAttribute(g),d;for(d=0;d<c.length;d++)b=c[d],b.getAttribute(g)===k&&b.setAttribute(g,
a);u.setAttribute(g,a));return a,fontMetrics:function(a,u)a=a||u&&u.style&&u.style.fontSize||this.style&&this.style.fontSize;a=/px/.test(a)?g(a):/em/.test(a)?parseFloat(a)*(u?this.fontMetrics(null,u.parentNode).f:16):12;u=24>a?a+3:Math.round(1.2*a);returnh:u,b:Math.round(.8*u),f:a,rotCorr:function(a,g,u)var c=a;g&&u&&(c=Math.max(c*Math.cos(g*d),4));returnx:-a/3*Math.sin(g*d),y:c,label:function(g,k,d,e,p,w,M,n,L)var x=this,q=x.g("button"!==L&&"label"),f=q.text=x.text("",0,0,M).attr(zIndex:1),
y,E,D=0,m=3,C=0,z,h,r,I,P,l=,K,S,H=/^url\\((.*?)\\)$/.test(e),O=H,Q,J,U,T;L&&q.addClass("highcharts-"+L);O=H;Q=function()return(K||0)%2/2;J=function()var a=f.element.style,g=;E=(void 0===z||void 0===h||P)&&v(f.textStr)&&f.getBBox();q.width=(z||E.width||0)+2*m+C;q.height=(h||E.height||0)+2*m;S=m+x.fontMetrics(a&&a.fontSize,f).b;O&&(y||(q.box=y=x.symbols[e]||H?x.symbol(e):x.rect(),y.addClass(("button"===L?"":"highcharts-label-box")+(L?" highcharts-"+L+"-box":"")),y.add(q),a=Q(),g.x=a,g.y=(n?-S:
0)+a),g.width=Math.round(q.width),g.height=Math.round(q.height),y.attr(c(g,l)),l=);U=function()var a=C+m,g;g=n?0:S;v(z)&&E&&("center"===P||"right"===P)&&(a+=center:.5,right:1[P]*(z-E.width));if(a!==f.x||g!==f.y)f.attr("x",a),void 0!==g&&f.attr("y",g);f.x=a;f.y=g;T=function(a,g)y?y.attr(a,g):l[a]=g;q.onAdd=function()f.add(q);q.attr(text:g||0===g?g:"",x:k,y:d);y&&v(p)&&q.attr(anchorX:p,anchorY:w);q.widthSetter=function(g)z=a.isNumber(g)?g:null;q.heightSetter=function(a)h=a;q["text-alignSetter"]=
function(a)P=a;q.paddingSetter=function(a)v(a)&&a!==m&&(m=q.padding=a,U());q.paddingLeftSetter=function(a)v(a)&&a!==C&&(C=a,U());q.alignSetter=function(a)a=left:0,center:.5,right:1[a];a!==D&&(D=a,E&&q.attr(x:r));q.textSetter=function(a)void 0!==a&&f.textSetter(a);J();U();q["stroke-widthSetter"]=function(a,g)a&&(O=!0);K=this["stroke-width"]=a;T(g,a);q.strokeSetter=q.fillSetter=q.rSetter=function(a,g)"r"!==g&&("fill"===g&&a&&(O=!0),q[g]=a);T(g,a);q.anchorXSetter=function(a,g)p=q.anchorX=
a;T(g,Math.round(a)-Q()-r);q.anchorYSetter=function(a,g)w=q.anchorY=a;T(g,a-I);q.xSetter=function(a)q.x=a;D&&(a-=D*((z||E.width)+2*m));r=Math.round(a);q.attr("translateX",r);q.ySetter=function(a)I=q.y=Math.round(a);q.attr("translateY",I);var V=q.css;return c(q,css:function(a)if(a)var g=;a=t(a);b(q.textProps,function(u)void 0!==a[u]&&(g[u]=a[u],delete a[u]));f.css(g)return V.call(q,a),getBBox:function()returnwidth:E.width+2*m,height:E.height+2*m,x:E.x-m,y:E.y-m,shadow:function(a)a&&
(J(),y&&y.shadow(a));return q,destroy:function()u(q.element,"mouseenter");u(q.element,"mouseleave");f&&(f=f.destroy());y&&(y=y.destroy());A.prototype.destroy.call(q);q=x=J=U=T=null));a.Renderer=B)(N);(function(a)var A=a.attr,B=a.createElement,G=a.css,F=a.defined,l=a.each,f=a.extend,h=a.isFirefox,m=a.isMS,r=a.isWebKit,v=a.pInt,d=a.SVGRenderer,e=a.win,n=a.wrap;f(a.SVGElement.prototype,htmlCss:function(a)var c=this.element;if(c=a&&"SPAN"===c.tagName&&a.width)delete a.width,this.textWidth=c,
this.updateTransform();a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=f(this.styles,a);G(this.element,a);return this,htmlGetBBox:function()var a=this.element;returnx:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight,htmlUpdateTransform:function()if(this.added)var a=this.renderer,c=this.element,d=this.translateX||0,k=this.translateY||0,e=this.x||0,n=this.y||0,f=this.textAlign||"left",y=left:0,center:.5,right:1[f],m=this.styles;G(c,
marginLeft:d,marginTop:k);this.shadows&&l(this.shadows,function(a)G(a,marginLeft:d+1,marginTop:k+1));this.inverted&&l(c.childNodes,function(b)a.invertChild(b,c));if("SPAN"===c.tagName)var q=this.rotation,z=v(this.textWidth),h=m&&m.whiteSpace,t=[q,f,c.innerHTML,this.textWidth,this.textAlign].join();t!==this.cTT&&(m=a.fontMetrics(c.style.fontSize).b,F(q)&&this.setSpanRotation(q,y,m),G(c,width:"",whiteSpace:h||"nowrap"),c.offsetWidth>z&&/[ \\-]/.test(c.textContent||c.innerText)&&G(c,width:z+
"px",display:"block",whiteSpace:h||"normal"),this.getSpanCorrection(c.offsetWidth,m,y,q,f));G(c,left:e+(this.xCorr||0)+"px",top:n+(this.yCorr||0)+"px");r&&(m=c.offsetHeight);this.cTT=telse this.alignOnAdd=!0,setSpanRotation:function(a,c,d)var b=,e=this.renderer.getTransformKey();b[e]=b.transform="rotate("+a+"deg)";b[e+(h?"Origin":"-origin")]=b.transformOrigin=100*c+"% "+d+"px";G(this.element,b),getSpanCorrection:function(a,c,d)this.xCorr=-a*d;this.yCorr=-c);f(d.prototype,getTransformKey:function()return m&&
!/Edge/.test(e.navigator.userAgent)?"-ms-transform":r?"-webkit-transform":h?"MozTransform":e.opera?"-o-transform":"",html:function(a,c,d)var b=this.createElement("span"),e=b.element,w=b.renderer,m=w.isSVG,y=function(a,c)l(["opacity","visibility"],function(b)n(a,b+"Setter",function(a,b,k,d)a.call(this,b,k,d);c[k]=b));b.textSetter=function(a)a!==e.innerHTML&&delete this.bBox;e.innerHTML=this.textStr=a;b.htmlUpdateTransform();m&&y(b,b.element.style);b.xSetter=b.ySetter=b.alignSetter=b.rotationSetter=
function(a,c)"align"===c&&(c="textAlign");b[c]=a;b.htmlUpdateTransform();b.attr(text:a,x:Math.round(c),y:Math.round(d)).css(fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute");e.style.whiteSpace="nowrap";b.css=b.htmlCss;m&&(b.add=function(a)var c,k=w.box.parentNode,d=[];if(this.parentGroup=a)if(c=a.div,!c)for(;a;)d.push(a),a=a.parentGroup;l(d.reverse(),function(a)function t(g,u)a[u]=g;e[w.getTransformKey()]="translate("+a.x+"px,"+a.y+"px)";a.doTransform=!0
var e,p=A(a.element,"class");p&&(p=className:p);c=a.div=a.div||B("div",p,position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents,c||k);e=c.style;f(a,classSetter:function(a)this.element.setAttribute("class",a);c.className=a,on:function()d[0].div&&b.on.apply(element:d[0].div,arguments);return a,translateXSetter:t,translateYSetter:t);y(a,e))else c=k;c.appendChild(e);b.added=!0;b.alignOnAdd&&
b.htmlUpdateTransform();return b);return b))(N);(function(a)function A()var f=a.defaultOptions.global,r=h.moment;if(f.timezone)if(r)return function(a)return-r.tz(a,f.timezone).utcOffset();a.error(25)return f.useUTC&&f.getTimezoneOffsetfunction B()var m=a.defaultOptions.global,r,v=m.useUTC,d=v?"getUTC":"get",e=v?"setUTC":"set",n="Minutes Hours Day Date Month FullYear".split(" "),b=n.concat(["Milliseconds","Seconds"]);a.Date=r=m.Date||h.Date;r.hcTimezoneOffset=v&&m.timezoneOffset;r.hcGetTimezoneOffset=
A();r.hcMakeTime=function(a,b,k,d,e,n)var c;v?(c=r.UTC.apply(0,arguments),c+=F(c)):c=(new r(a,b,f(k,1),f(d,0),f(e,0),f(n,0))).getTime();return c;for(m=0;m<n.length;m++)r["hcGet"+n[m]]=d+n[m];for(m=0;m<b.length;m++)r["hcSet"+b[m]]=e+b[m]var G=a.color,F=a.getTZOffset,l=a.merge,f=a.pick,h=a.win;a.defaultOptions=colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:loading:"Loading...",
months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" ",global:useUTC:!0,chart:borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:theme:zIndex:20,
position:align:"right",x:-10,y:10,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc",title:text:"Chart title",align:"center",margin:15,widthAdjust:-44,subtitle:text:"",align:"center",widthAdjust:-44,plotOptions:,labels:style:position:"absolute",color:"#333333",legend:enabled:!0,align:"center",layout:"horizontal",labelFormatter:function()return this.name,borderColor:"#999999",borderRadius:0,navigation:activeColor:"#003399",inactiveColor:"#cccccc",
itemStyle:color:"#333333",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis",itemHoverStyle:color:"#000000",itemHiddenStyle:color:"#cccccc",shadow:!1,itemCheckboxStyle:position:"absolute",width:"13px",height:"13px",squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:style:fontWeight:"bold",loading:labelStyle:fontWeight:"bold",position:"relative",top:"45%",style:position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center",tooltip:enabled:!0,
animation:a.svg,borderRadius:3,dateTimeLabelFormats:millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y",footerFormat:"",padding:8,snap:a.isTouchDevice?25:10,backgroundColor:G("#f7f7f7").setOpacity(.85).get(),borderWidth:1,headerFormat:'\\x3cspan style\\x3d"font-size: 10px"\\x3epoint.key\\x3c/span\\x3e\\x3cbr/\\x3e',pointFormat:'\\x3cspan style\\x3d"color:point.color"\\x3e\\u25cf\\x3c/span\\x3e series.name: \\x3cb\\x3epoint.y\\x3c/b\\x3e\\x3cbr/\\x3e',
shadow:!0,style:color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap",credits:enabled:!0,href:"http://www.highcharts.com",position:align:"right",x:-10,verticalAlign:"bottom",y:-5,style:cursor:"pointer",color:"#999999",fontSize:"9px",text:"Highcharts.com";a.setOptions=function(f)a.defaultOptions=l(!0,a.defaultOptions,f);B();return a.defaultOptions;a.getOptions=function()return a.defaultOptions;a.defaultPlotOptions=a.defaultOptions.plotOptions;B())(N);
(function(a)var A=a.correctFloat,B=a.defined,G=a.destroyObjectProperties,F=a.isNumber,l=a.merge,f=a.pick,h=a.deg2rad;a.Tick=function(a,f,h,d)this.axis=a;this.pos=f;this.type=h||"";this.isNewLabel=this.isNew=!0;h||d||this.addLabel();a.Tick.prototype=addLabel:function()var a=this.axis,h=a.options,v=a.chart,d=a.categories,e=a.names,n=this.pos,b=h.labels,c=a.tickPositions,w=n===c[0],k=n===c[c.length-1],e=d?f(d[n],e[n],n):n,d=this.label,c=c.info,p;a.isDatetimeAxis&&c&&(p=h.dateTimeLabelFormats[c.higherRanks[n]||
c.unitName]);this.isFirst=w;this.isLast=k;h=a.labelFormatter.call(axis:a,chart:v,isFirst:w,isLast:k,dateTimeLabelFormat:p,value:a.isLog?A(a.lin2log(e)):e,pos:n);B(d)?d&&d.attr(text:h):(this.labelLength=(this.label=d=B(h)&&b.enabled?v.renderer.text(h,0,0,b.useHTML).css(l(b.style)).add(a.labelGroup):null)&&d.getBBox().width,this.rotation=0),getLabelSize:function()return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0,handleOverflow:function(a)var m=this.axis,v=a.x,d=m.chart.chartWidth,
e=m.chart.spacing,n=f(m.labelLeft,Math.min(m.pos,e[3])),e=f(m.labelRight,Math.max(m.pos+m.len,d-e[1])),b=this.label,c=this.rotation,w=left:0,center:.5,right:1[m.labelAlign],k=b.getBBox().width,p=m.getSlotWidth(),C=p,I=1,y,l=;if(c)0>c&&v-w*k<n?y=Math.round(v/Math.cos(c*h)-n):0<c&&v+w*k>e&&(y=Math.round((d-v)/Math.cos(c*h)));else if(d=v+(1-w)*k,v-w*k<n?C=a.x+C*(1-w)-n:d>e&&(C=e-a.x+C*w,I=-1),C=Math.min(p,C),C<p&&"

以上是关于Highcharts JS v6.0.1的主要内容,如果未能解决你的问题,请参考以下文章

highcharts.js 简单使用

HGDB企业版V6逻辑复制搭建

2个highcharts源之间的Highcharts样式行为差异

HGDB企业版V6逻辑复制搭建

HGDB企业版V6逻辑复制搭建

Highcharts.js -纯javasctipt图表库初体验