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/renko.js

!/**
 * Highstock JS v12.1.2 (2025-01-09)
 * @module highcharts/modules/renko
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Renko series type for Highcharts Stock
 *
 * (c) 2010-2024 Pawel Lysy
 *
 * License: www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts"),require("highcharts").SeriesRegistry,require("highcharts").Series.types.column):"function"==typeof define&&define.amd?define("highcharts/modules/renko",[["highcharts/highcharts"],["highcharts/highcharts","SeriesRegistry"],["highcharts/highcharts","Series","types","column"]],e):"object"==typeof exports?exports["highcharts/modules/renko"]=e(require("highcharts"),require("highcharts").SeriesRegistry,require("highcharts").Series.types.column):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Series.types.column)}(this,function(t,e,r){return function(){"use strict";var o,n,i={448:function(t){t.exports=r},512:function(t){t.exports=e},944:function(e){e.exports=t}},s={};function a(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={exports:{}};return i[t](r,r.exports,a),r.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var p={};a.d(p,{default:function(){return C}});var u=a(944),h=a.n(u),c=a(512),l=a.n(c),f=(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.getClassName=function(){return t.prototype.getClassName.call(this)+(this.upTrend?" highcharts-point-up":" highcharts-point-down")},e}(l().seriesTypes.column.prototype.pointClass),d={boxSize:4,groupPadding:0,pointPadding:0,downColor:"#ff0000",navigatorOptions:{type:"renko"},fillColor:"transparent",borderWidth:2,lineWidth:0,stickyTracking:!0,borderRadius:{where:"all"},tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low:.2f} - {point.y:.2f}</b><br/>'}},g=a(448),m=a.n(g),v=(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),x=h().extend,b=h().merge,_=h().relativeLength,w=h().isNumber,O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasDerivedData=!0,e.allowDG=!1,e}return v(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.renkoData=[]},e.prototype.setData=function(e,r,o){this.renkoData=[],t.prototype.setData.call(this,e,r,o,!1)},e.prototype.getXExtremes=function(t){return this.processData(),{min:(t=this.getColumn("x",!0))[0],max:t[t.length-1]}},e.prototype.getProcessedData=function(){var t=this.dataTable.modified,e=[],r=[],o=[],n=this.getColumn("x",!0),i=this.getColumn("y",!0);if(!this.renkoData||this.renkoData.length>0)return{modified:t,closestPointRange:1,cropped:!1,cropStart:0};for(var s=this.options.boxSize,a=w(s)?s:_(s,i[0]),p=[],u=n.length,h=0,c=i[0],l=1;l<u;l++){var f=i[l]-i[l-1];if(f>a){2===h&&(c+=a);for(var y=0;y<f/a;y++)p.push({x:n[l]+y,low:c,y:c+a,color:this.options.color,upTrend:!0}),c+=a;h=1}else if(Math.abs(f)>a){1===h&&(c-=a);for(var y=0;y<Math.abs(f)/a;y++)p.push({x:n[l]+y,low:c-a,y:c,color:this.options.downColor,upTrend:!1}),c-=a;h=2}}this.renkoData=p;for(var d=0;d<p.length;d++){var g=p[d];e.push(g.x),r.push(g.y),o.push(g.low)}return this.processedData=p,t.setColumn("x",e),t.setColumn("y",r),t.setColumn("low",o),{modified:t,cropped:!1,cropStart:0,closestPointRange:1}},e.defaultOptions=b(m().defaultOptions,d),e}(m());x(O.prototype,{pointClass:y}),l().registerSeriesType("renko",O);var C=h();return p.default}()});

Hacked By AnonymousFox1.0, Coded By AnonymousFox