Hacked By AnonymousFox

Current Path : C:/AppServ/www/financial/stacked/code/es5/modules/
Upload File :
Current File : C:/AppServ/www/financial/stacked/code/es5/modules/solid-gauge.js

!/**
 * Highcharts JS v12.1.2 (2025-01-09)
 * @module highcharts/modules/solid-gauge
 * @requires highcharts
 * @requires highcharts/highcharts-more
 *
 * Solid angular gauge module
 *
 * (c) 2010-2024 Torstein Honsi
 *
 * License: www.highcharts.com/license
 */function(t,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("highcharts"),require("highcharts").SeriesRegistry,require("highcharts").Color):"function"==typeof define&&define.amd?define("highcharts/modules/solid-gauge",[["highcharts/highcharts"],["highcharts/highcharts","SeriesRegistry"],["highcharts/highcharts","Color"]],o):"object"==typeof exports?exports["highcharts/modules/solid-gauge"]=o(require("highcharts"),require("highcharts").SeriesRegistry,require("highcharts").Color):t.Highcharts=o(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Color)}(this,function(t,o,r){return function(){"use strict";var e,i,s,n={620:function(t){t.exports=r},512:function(t){t.exports=o},944:function(o){o.exports=t}},a={};function h(t){var o=a[t];if(void 0!==o)return o.exports;var r=a[t]={exports:{}};return n[t](r,r.exports,h),r.exports}h.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return h.d(o,{a:o}),o},h.d=function(t,o){for(var r in o)h.o(o,r)&&!h.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},h.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)};var l={};h.d(l,{default:function(){return N}});var d=h(944),c=h.n(d),u=(c().defaultOptions,c().noop,c().addEvent,c().extend,c().isObject),p=c().merge,g=(c().relativeLength,{radius:0,scope:"stack",where:void 0}),f={optionsToObject:function(t,o){return u(t)||(t={radius:t||0}),p(g,o,t)}},v=h(512),y=h.n(v),m=h(620),x=h.n(m)().parse,C=c().merge;(e=s||(s={})).initDataClasses=function(t){var o,r,e,i=this.chart,s=this.legendItem=this.legendItem||{},n=this.options,a=t.dataClasses||[],h=i.options.chart.colorCount,l=0;this.dataClasses=r=[],s.labels=[];for(var d=0,c=a.length;d<c;++d)o=C(o=a[d]),r.push(o),(i.styledMode||!o.color)&&("category"===n.dataClassColor?(i.styledMode||(h=(e=i.options.colors||[]).length,o.color=e[l]),o.colorIndex=l,++l===h&&(l=0)):o.color=x(n.minColor).tweenTo(x(n.maxColor),c<2?.5:d/(c-1)))},e.initStops=function(){for(var t=this.options,o=this.stops=t.stops||[[0,t.minColor||""],[1,t.maxColor||""]],r=0,e=o.length;r<e;++r)o[r].color=x(o[r][1])},e.normalizedValue=function(t){var o=this.max||0,r=this.min||0;return this.logarithmic&&(t=this.logarithmic.log2lin(t)),1-(o-t)/(o-r||1)},e.toColor=function(t,o){var r,e,i,s,n,a,h=this.dataClasses,l=this.stops;if(h){for(a=h.length;a--;)if(e=(n=h[a]).from,i=n.to,(void 0===e||t>=e)&&(void 0===i||t<=i)){s=n.color,o&&(o.dataClass=a,o.colorIndex=n.colorIndex);break}}else{for(r=this.normalizedValue(t),a=l.length;a--&&!(r>l[a][0]););e=l[a]||l[a+1],r=1-((i=l[a+1]||e)[0]-r)/(i[0]-e[0]||1),s=e.color.tweenTo(i.color,r)}return s};var R=s,b=c().extend,A=function(t){b(t,R)},O={colorByPoint:!0,dataLabels:{y:0}},j=(i=function(t,o){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)o.hasOwnProperty(r)&&(t[r]=o[r])})(t,o)},function(t,o){function r(){this.constructor=t}i(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}),M=y().seriesTypes,w=M.gauge,_=M.pie,I=c().clamp,P=c().extend,k=c().isNumber,q=c().merge,S=c().pick,T=c().pInt,H=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return j(o,t),o.prototype.translate=function(){var t=this.yAxis;A(t),!t.dataClasses&&t.options.dataClasses&&t.initDataClasses(t.options),t.initStops(),w.prototype.translate.call(this)},o.prototype.drawPoints=function(){var t,o=this.yAxis,r=o.center,e=this.options,i=this.chart.renderer,s=e.overshoot,n=e.rounded&&void 0===e.borderRadius,a=k(s)?s/180*Math.PI:0;k(e.threshold)&&(t=o.startAngleRad+o.translate(e.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=S(t,o.startAngleRad);for(var h=0,l=this.points;h<l.length;h++){var d=l[h];if(!d.isNull){var c=T(S(d.options.radius,e.radius,100))*r[2]/200,u=T(S(d.options.innerRadius,e.innerRadius,60))*r[2]/200,p=Math.min(o.startAngleRad,o.endAngleRad),g=Math.max(o.startAngleRad,o.endAngleRad),v=d.graphic,y=o.startAngleRad+o.translate(d.y,void 0,void 0,void 0,!0),m=void 0,x=void 0,C=o.toColor(d.y,d);"none"===C&&(C=d.color||this.color||"none"),"none"!==C&&(d.color=C),y=I(y,p-a,g+a),!1===e.wrap&&(y=I(y,p,g));var R=n?(c-u)/2/c:0,b=Math.min(y,this.thresholdAngleRad)-R,A=Math.max(y,this.thresholdAngleRad)+R;A-b>2*Math.PI&&(A=b+2*Math.PI);var O=n?"50%":0;e.borderRadius&&(O=f.optionsToObject(e.borderRadius).radius),d.shapeArgs=m={x:r[0],y:r[1],r:c,innerR:u,start:b,end:A,borderRadius:O},d.startR=c,v?(x=m.d,v.animate(P({fill:C},m)),x&&(m.d=x)):d.graphic=v=i.arc(m).attr({fill:C,"sweep-flag":0}).add(this.group),this.chart.styledMode||("square"!==e.linecap&&v.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),v.attr({stroke:e.borderColor||"none","stroke-width":e.borderWidth||0})),v&&v.addClass(d.getClassName(),!0)}}},o.prototype.animate=function(t){t||(this.startAngleRad=this.thresholdAngleRad,_.prototype.animate.call(this,t))},o.defaultOptions=q(w.defaultOptions,O),o}(w);y().registerSeriesType("solidgauge",H);var N=c();return l.default}()});

Hacked By AnonymousFox1.0, Coded By AnonymousFox