hqchart 1.1.14406 → 1.1.14408
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umychart.vue.js
CHANGED
|
@@ -5491,49 +5491,11 @@ var spacePrice=5*pixelTatio*(max-min)/height;max+=spacePrice;min-=spacePrice;if(
|
|
|
5491
5491
|
{var coordinate=new CoordinateInfo();coordinate.Value=this.YClose;coordinate.LineType=2;//中间的线画虚线
|
|
5492
5492
|
if(g_JSChartResource.FrameDotSplitPen)coordinate.LineColor=g_JSChartResource.FrameDotSplitPen;var strPrice=this.YClose.toFixed(defaultfloatPrecision);//价格刻度字符串
|
|
5493
5493
|
if(this.IsShowLeftText)coordinate.Message[0]=strPrice;if(this.IsShowRightText){if(this.RightTextFormat==1)coordinate.Message[1]=strPrice;else coordinate.Message[1]='0.00%';//百分比
|
|
5494
|
-
}this.Frame.HorizontalInfo.push(coordinate);}this.Frame.HorizontalInfo.sort(function(a,b){return a.Value-b.Value;});this.Frame.HorizontalMax=max;this.Frame.HorizontalMin=min;};this.DefaultSplit=function(range,isFixedMaxMin){var max=range.Max;var min=range.Min;if(!isFixedMaxMin){if(this.YClose==max&&this.YClose==min){max=this.YClose+this.YClose*0.1;min=this.YClose-this.YClose*0.1;}else{var distanceValue=Math.max(Math.abs(this.YClose-max),Math.abs(this.YClose-min));max=this.YClose+distanceValue;min=this.YClose-distanceValue
|
|
5494
|
+
}this.Frame.HorizontalInfo.push(coordinate);}this.Frame.HorizontalInfo.sort(function(a,b){return a.Value-b.Value;});this.Frame.HorizontalMax=max;this.Frame.HorizontalMin=min;};this.DefaultSplit=function(range,isFixedMaxMin){var max=range.Max;var min=range.Min;if(!isFixedMaxMin){if(this.YClose==max&&this.YClose==min){max=this.YClose+this.YClose*0.1;min=this.YClose-this.YClose*0.1;}else{var distanceValue=Math.max(Math.abs(this.YClose-max),Math.abs(this.YClose-min));max=this.YClose+distanceValue;min=this.YClose-distanceValue;//if (min<0) min=range.Min;
|
|
5495
|
+
}}var pixelTatio=GetDevicePixelRatio();//获取设备的分辨率
|
|
5495
5496
|
var width=this.Frame.ChartBorder.GetChartWidth();//画布的宽度
|
|
5496
5497
|
var isPhoneModel=width<450*pixelTatio;JSConsole.Chart.Log('[FrameSplitMinutePriceY]'+'max='+max+' min='+min+' isPhoneModel='+isPhoneModel);var showCount=this.SplitCount;var distance=(max-min)/(showCount-1);var minDistance=[1,0.1,0.01,0.001,0.0001];var defaultfloatPrecision=GetfloatPrecision(this.Symbol);if(isPhoneModel&&MARKET_SUFFIX_NAME.IsSHSZIndex(this.Symbol))defaultfloatPrecision=0;//手机端指数不显示小数位数,太长了
|
|
5497
|
-
if(distance<minDistance[defaultfloatPrecision]&&!isFixedMaxMin){distance=minDistance[defaultfloatPrecision];max=this.YClose+distance*(showCount-1)/2;min=this.YClose-distance*(showCount-1)/2;}var aryCoordinate=[];var extendValue=distance*0.5;for(var price=this.YClose,i=0;price<=max+extendValue&&i<30;price+=distance,++i){var coordinate=new CoordinateInfo();coordinate.Value=price;this.FormatCoordinate(coordinate,defaultfloatPrecision);aryCoordinate.push(coordinate);}for(var price=this.YClose-distance,i=0;price>=min-extendValue&&i<30;price-=distance,++i){var coordinate=new CoordinateInfo();coordinate.Value=price;this.FormatCoordinate(coordinate,defaultfloatPrecision);aryCoordinate.push(coordinate);}aryCoordinate.sort(function(left,right){return left.Value-right.Value;})
|
|
5498
|
-
for(var i=0;i<showCount;++i)
|
|
5499
|
-
{
|
|
5500
|
-
var price=min+(distance*i);
|
|
5501
|
-
var coordinate=new CoordinateInfo();
|
|
5502
|
-
this.Frame.HorizontalInfo[i]=coordinate
|
|
5503
|
-
coordinate.Value=price;
|
|
5504
|
-
var strPrice=price.toFixed(defaultfloatPrecision); //价格刻度字符串
|
|
5505
|
-
if (this.IsShowLeftText) coordinate.Message[0]=strPrice
|
|
5506
|
-
|
|
5507
|
-
if (IFrameSplitOperator.IsNumber(this.YClose) && this.YClose!=0)
|
|
5508
|
-
{
|
|
5509
|
-
var per=(price/this.YClose-1)*100;
|
|
5510
|
-
if (per>0) coordinate.TextColor=g_JSChartResource.UpTextColor;
|
|
5511
|
-
else if (per<0) coordinate.TextColor=g_JSChartResource.DownTextColor;
|
|
5512
|
-
var strPer=`${IFrameSplitOperator.FormatValueString(per,2)}%`;
|
|
5513
|
-
if (this.IsShowRightText)
|
|
5514
|
-
{
|
|
5515
|
-
if (this.RightTextFormat==1)
|
|
5516
|
-
{
|
|
5517
|
-
coordinate.Message[1]=strPrice;
|
|
5518
|
-
}
|
|
5519
|
-
else if (this.RightTextFormat==2) //价格/百分比
|
|
5520
|
-
{
|
|
5521
|
-
coordinate.Message[1]=[strPer,strPrice];
|
|
5522
|
-
}
|
|
5523
|
-
else
|
|
5524
|
-
{
|
|
5525
|
-
coordinate.Message[1]=strPer; //百分比
|
|
5526
|
-
}
|
|
5527
|
-
}
|
|
5528
|
-
|
|
5529
|
-
if (Math.abs(price-this.YClose) <0.00000000001) //小数有精度问题 使用差值
|
|
5530
|
-
{
|
|
5531
|
-
coordinate.LineType=2;//中间的线画虚线
|
|
5532
|
-
coordinate.TextColor=g_JSChartResource.UnchagneTextColor;
|
|
5533
|
-
if (g_JSChartResource.FrameDotSplitPen) coordinate.LineColor=g_JSChartResource.FrameDotSplitPen;
|
|
5534
|
-
}
|
|
5535
|
-
}
|
|
5536
|
-
}*/this.Frame.HorizontalInfo=aryCoordinate;this.Frame.HorizontalMax=max;this.Frame.HorizontalMin=min;};this.FormatCoordinate=function(coordinate,defaultfloatPrecision){var price=coordinate.Value;var strPrice=price.toFixed(defaultfloatPrecision);//价格刻度字符串
|
|
5498
|
+
if(distance<minDistance[defaultfloatPrecision]&&!isFixedMaxMin){distance=minDistance[defaultfloatPrecision];max=this.YClose+distance*(showCount-1)/2;min=this.YClose-distance*(showCount-1)/2;}var aryCoordinate=[];var extendValue=distance*0.5;for(var price=this.YClose,i=0;price<=max+extendValue&&i<30;price+=distance,++i){var coordinate=new CoordinateInfo();coordinate.Value=price;this.FormatCoordinate(coordinate,defaultfloatPrecision);aryCoordinate.push(coordinate);}for(var price=this.YClose-distance,i=0;price>=min-extendValue&&i<30;price-=distance,++i){var coordinate=new CoordinateInfo();coordinate.Value=price;this.FormatCoordinate(coordinate,defaultfloatPrecision);aryCoordinate.push(coordinate);}aryCoordinate.sort(function(left,right){return left.Value-right.Value;});this.Frame.HorizontalInfo=aryCoordinate;this.Frame.HorizontalMax=max;this.Frame.HorizontalMin=min;};this.FormatCoordinate=function(coordinate,defaultfloatPrecision){var price=coordinate.Value;var strPrice=price.toFixed(defaultfloatPrecision);//价格刻度字符串
|
|
5537
5499
|
if(this.IsShowLeftText)coordinate.Message[0]=strPrice;if(IFrameSplitOperator.IsNumber(this.YClose)&&this.YClose!=0){var per=(price/this.YClose-1)*100;if(per>0)coordinate.TextColor=g_JSChartResource.UpTextColor;else if(per<0)coordinate.TextColor=g_JSChartResource.DownTextColor;var strPer=IFrameSplitOperator.FormatValueString(per,2)+'%';if(this.IsShowRightText){if(this.RightTextFormat==1){coordinate.Message[1]=strPrice;}else if(this.RightTextFormat==2)//价格/百分比
|
|
5538
5500
|
{coordinate.Message[1]=[strPer,strPrice];}else{coordinate.Message[1]=strPer;//百分比
|
|
5539
5501
|
}}if(Math.abs(price-this.YClose)<0.00000000001)//小数有精度问题 使用差值
|
|
@@ -14360,7 +14322,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
|
|
|
14360
14322
|
this.ExecuteScript(item,data);}this.Status=0;}};this.OnExecuteFinish=function(data,indexInfo,jsExectute,jobInfo){var message={Data:data,IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.FINISH_EXECUTE_SCRIPT,JobInfo:jobInfo};postMessage(message);};this.OnExecuteError=function(error,indexInfo,jobData){var message={IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.ERROR_EXECUTE_SCRIPT,Error:error};postMessage(message);};}/********************************************************************************
|
|
14361
14323
|
* 版本信息输出
|
|
14362
14324
|
*
|
|
14363
|
-
*/var HQCHART_VERSION="1.1.
|
|
14325
|
+
*/var HQCHART_VERSION="1.1.14407";function PrintHQChartVersion(){var logo='\n\n*************************************************************************************************************************************************************************** \n* \n* :%@@- \n* :@@@@- \n* =@@@@ :#@@@ .:+#@@@#=: :=*@@@@@@#+-. *@@@@. \n* :@@@@@ .@@@@@ .#@@@@@@@@@@@- +@@@@@@@@@@@@@+ @@@@@ -%@@* \n* +@@@@% #@@@@# *@@@@@@@@@@@@@@%. =@@@@@@@@@@@@@@@- @@@@@ -@@@@+ \n* %@@@@* @@@@@+ .%@@@@@@@@@@@@@@@@%: #@@@@@@@@@@@@@@@% @@@@# *@@@@= \n* @@@@@= @@@@@- .%@@@@@@@*++*%@@@@@@% .%@@@@@@@%*+==+**= -@@@@+ #@@@@- \n* @@@@@. @@@@@. #@@@@@%= =@@@@@@* %@@@@@@#: *@@@@- :::. .-+*###+: ::: .+##+: -%%@@@@@%%%% \n* .@@@@@ .@@@@@. +@@@@@% .@@@@@@ *@@@@@@: %@@@@: +@@@@@%. :%@@@@@@@@@@: *@@@ :@@@@@* @@@@@@@@@@@@ \n* :@@@@@ :@@@@@ @@@@@% :@@@@@+ @@@@@@: %@@@@-@@@@@@@@@. @@@@@@@@@@@@@. :@@@%-@@@@@@.:@@@@@@@@@@@# \n* -@@@@% -@@@@@ =@@@@@. %@@@@% %@@@@@- %@@@@@@@@@@@@@@* %@@@@@@@@@@@@+ -@@@@@@@@@@# -@@@@@@@@@@@. \n* +@@@@%=========#@@@@% @@@@@# :@@@@@ .@@@@@% @@@@@@@@%@@@@@@@ -%+:. .#@@@@* +@@@@@@@%%@. .::+@@@@#:: \n* #@@@@@@@@@@@@@@@@@@@# .@@@@@ .@@@@@ :@@@@@. @@@@@@#. #@@@@@. -@@@@* #@@@@@@: *@@@@+ \n* %@@@@@@@@@@@@@@@@@@@+ :@@@@@ .@@@@@ -@@@@@ @@@@@+ @@@@@. :@@@@* @@@@@% #@@@@- \n* @@@@@@@@@@@@@@@@@@@@: :@@@@% :@@@@@ +@@@@% -@@@@+ @@@@@ -@@@@+ @@@@@. @@@@@. \n* .@@@@@@@@@@@@@@@@@@@@ :@@@@% -@@@@% *@@@@% #@@@@. @@@@@ .=*#%%%@@@@@= :@@@@# @@@@@. \n* -@@@@@:::::::::=@@@@@ :@@@@@ @@@@@* +@@@@% @@@@@ @@@@% -#@@@@@@@@@@@@: -@@@@* @@@@@ \n* =@@@@% =@@@@% .@@@@@ :@@@@@. -@@@@% @@@@@ .@@@@* +@@@@@@@@@@@@@@. =@@@@+ .@@@@@ \n* +@@@@# +@@@@# @@@@@# %@@@@% :@@@@@ .@@@@% =@@@@= -@@@@@*-:..%@@@@ +@@@@= :@@@@# \n* *@@@@* *@@@@* +@@@@@: #@@@@@+ .@@@@@@ :@@@@% *@@@@- @@@@@. @@@@% #@@@@: =@@@@+ \n* %@@@@= %@@@@+ @@@@@@- .%@@@@@# #@@@@@# :@@@@% #@@@@: @@@@% @@@@* %@@@@. #@@@@- \n* @@@@@- @@@@@= =@@@@@@#=...-*@@@@@@@: @@@@@@%=. :+**. :@@@@* %@@@@. .@@@@* *@@@@= @@@@@ %@@@@+ \n* .@@@@@: .@@@@@: *@@@@@@@@@@@@@@@@@@@# =@@@@@@@@%%%@@@@@@ +@@@@- @@@@@ .@@@@@: :%@@@@@- .@@@@% %@@@@@*+- \n* :@@@@@ :@@@@@ +@@@@@@@@@@@@@@@@@@@# =@@@@@@@@@@@@@@@@% %@@@@ @@@@@ @@@@@@@@@@@@@@@: -@@@@* *@@@@@@@@- \n* =@@@@@ -@@@@@ :@@@@@@@@@@@@@@@@@@@# :@@@@@@@@@@@@@@@% @@@@@ %@@@% #@@@@@@@@@#@@@@. +@@@@- .@@@@@@@@# \n* *@@@@# =@@@@% :#@@@@@@@#: :@@@@@= =@@@@@@@@@@@+. @@@@@ :@@@+ *@@@@@@@- %@@@ *@@@= =@@@@@@@* \n* =++++- -++++= .:::. .=*+: :-=+++=:. ****= .=+. .-++=: :+++ -+=: .-=+=:. \n* \n* \n* HQChart \n* Ver: '+HQCHART_VERSION+' \n* License: Apache License 2.0 \n* Source: https://github.com/jones2000/HQChart\n*\n************************************************************************************************************************************************************************** \n ';console.log(logo);}PrintHQChartVersion();//把给外界调用的方法暴露出来
|
|
14364
14326
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
14365
14327
|
// BaseIndex:BaseIndex,
|
|
14366
14328
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
package/src/jscommon/umychart.js
CHANGED
|
@@ -52840,7 +52840,7 @@ function FrameSplitMinutePriceY()
|
|
|
52840
52840
|
var distanceValue=Math.max(Math.abs(this.YClose-max),Math.abs(this.YClose-min));
|
|
52841
52841
|
max=this.YClose+distanceValue;
|
|
52842
52842
|
min=this.YClose-distanceValue;
|
|
52843
|
-
if (min<0) min=range.Min;
|
|
52843
|
+
//if (min<0) min=range.Min;
|
|
52844
52844
|
}
|
|
52845
52845
|
}
|
|
52846
52846
|
|
|
@@ -52881,47 +52881,6 @@ function FrameSplitMinutePriceY()
|
|
|
52881
52881
|
|
|
52882
52882
|
aryCoordinate.sort((left,right)=>{ return left.Value-right.Value; })
|
|
52883
52883
|
|
|
52884
|
-
/*
|
|
52885
|
-
for(var i=0;i<showCount;++i)
|
|
52886
|
-
{
|
|
52887
|
-
var price=min+(distance*i);
|
|
52888
|
-
var coordinate=new CoordinateInfo();
|
|
52889
|
-
this.Frame.HorizontalInfo[i]=coordinate
|
|
52890
|
-
coordinate.Value=price;
|
|
52891
|
-
var strPrice=price.toFixed(defaultfloatPrecision); //价格刻度字符串
|
|
52892
|
-
if (this.IsShowLeftText) coordinate.Message[0]=strPrice
|
|
52893
|
-
|
|
52894
|
-
if (IFrameSplitOperator.IsNumber(this.YClose) && this.YClose!=0)
|
|
52895
|
-
{
|
|
52896
|
-
var per=(price/this.YClose-1)*100;
|
|
52897
|
-
if (per>0) coordinate.TextColor=g_JSChartResource.UpTextColor;
|
|
52898
|
-
else if (per<0) coordinate.TextColor=g_JSChartResource.DownTextColor;
|
|
52899
|
-
var strPer=`${IFrameSplitOperator.FormatValueString(per,2)}%`;
|
|
52900
|
-
if (this.IsShowRightText)
|
|
52901
|
-
{
|
|
52902
|
-
if (this.RightTextFormat==1)
|
|
52903
|
-
{
|
|
52904
|
-
coordinate.Message[1]=strPrice;
|
|
52905
|
-
}
|
|
52906
|
-
else if (this.RightTextFormat==2) //价格/百分比
|
|
52907
|
-
{
|
|
52908
|
-
coordinate.Message[1]=[strPer,strPrice];
|
|
52909
|
-
}
|
|
52910
|
-
else
|
|
52911
|
-
{
|
|
52912
|
-
coordinate.Message[1]=strPer; //百分比
|
|
52913
|
-
}
|
|
52914
|
-
}
|
|
52915
|
-
|
|
52916
|
-
if (Math.abs(price-this.YClose) <0.00000000001) //小数有精度问题 使用差值
|
|
52917
|
-
{
|
|
52918
|
-
coordinate.LineType=2;//中间的线画虚线
|
|
52919
|
-
coordinate.TextColor=g_JSChartResource.UnchagneTextColor;
|
|
52920
|
-
if (g_JSChartResource.FrameDotSplitPen) coordinate.LineColor=g_JSChartResource.FrameDotSplitPen;
|
|
52921
|
-
}
|
|
52922
|
-
}
|
|
52923
|
-
}*/
|
|
52924
|
-
|
|
52925
52884
|
this.Frame.HorizontalInfo=aryCoordinate;
|
|
52926
52885
|
this.Frame.HorizontalMax=max;
|
|
52927
52886
|
this.Frame.HorizontalMin=min;
|
|
@@ -56765,7 +56765,7 @@ function FrameSplitMinutePriceY()
|
|
|
56765
56765
|
var distanceValue=Math.max(Math.abs(this.YClose-max),Math.abs(this.YClose-min));
|
|
56766
56766
|
max=this.YClose+distanceValue;
|
|
56767
56767
|
min=this.YClose-distanceValue;
|
|
56768
|
-
if (min<0) min=range.Min;
|
|
56768
|
+
//if (min<0) min=range.Min;
|
|
56769
56769
|
}
|
|
56770
56770
|
}
|
|
56771
56771
|
|
|
@@ -56806,47 +56806,6 @@ function FrameSplitMinutePriceY()
|
|
|
56806
56806
|
|
|
56807
56807
|
aryCoordinate.sort((left,right)=>{ return left.Value-right.Value; })
|
|
56808
56808
|
|
|
56809
|
-
/*
|
|
56810
|
-
for(var i=0;i<showCount;++i)
|
|
56811
|
-
{
|
|
56812
|
-
var price=min+(distance*i);
|
|
56813
|
-
var coordinate=new CoordinateInfo();
|
|
56814
|
-
this.Frame.HorizontalInfo[i]=coordinate
|
|
56815
|
-
coordinate.Value=price;
|
|
56816
|
-
var strPrice=price.toFixed(defaultfloatPrecision); //价格刻度字符串
|
|
56817
|
-
if (this.IsShowLeftText) coordinate.Message[0]=strPrice
|
|
56818
|
-
|
|
56819
|
-
if (IFrameSplitOperator.IsNumber(this.YClose) && this.YClose!=0)
|
|
56820
|
-
{
|
|
56821
|
-
var per=(price/this.YClose-1)*100;
|
|
56822
|
-
if (per>0) coordinate.TextColor=g_JSChartResource.UpTextColor;
|
|
56823
|
-
else if (per<0) coordinate.TextColor=g_JSChartResource.DownTextColor;
|
|
56824
|
-
var strPer=`${IFrameSplitOperator.FormatValueString(per,2)}%`;
|
|
56825
|
-
if (this.IsShowRightText)
|
|
56826
|
-
{
|
|
56827
|
-
if (this.RightTextFormat==1)
|
|
56828
|
-
{
|
|
56829
|
-
coordinate.Message[1]=strPrice;
|
|
56830
|
-
}
|
|
56831
|
-
else if (this.RightTextFormat==2) //价格/百分比
|
|
56832
|
-
{
|
|
56833
|
-
coordinate.Message[1]=[strPer,strPrice];
|
|
56834
|
-
}
|
|
56835
|
-
else
|
|
56836
|
-
{
|
|
56837
|
-
coordinate.Message[1]=strPer; //百分比
|
|
56838
|
-
}
|
|
56839
|
-
}
|
|
56840
|
-
|
|
56841
|
-
if (Math.abs(price-this.YClose) <0.00000000001) //小数有精度问题 使用差值
|
|
56842
|
-
{
|
|
56843
|
-
coordinate.LineType=2;//中间的线画虚线
|
|
56844
|
-
coordinate.TextColor=g_JSChartResource.UnchagneTextColor;
|
|
56845
|
-
if (g_JSChartResource.FrameDotSplitPen) coordinate.LineColor=g_JSChartResource.FrameDotSplitPen;
|
|
56846
|
-
}
|
|
56847
|
-
}
|
|
56848
|
-
}*/
|
|
56849
|
-
|
|
56850
56809
|
this.Frame.HorizontalInfo=aryCoordinate;
|
|
56851
56810
|
this.Frame.HorizontalMax=max;
|
|
56852
56811
|
this.Frame.HorizontalMin=min;
|
|
@@ -143392,7 +143351,7 @@ function ScrollBarBGChart()
|
|
|
143392
143351
|
|
|
143393
143352
|
|
|
143394
143353
|
|
|
143395
|
-
var HQCHART_VERSION="1.1.
|
|
143354
|
+
var HQCHART_VERSION="1.1.14407";
|
|
143396
143355
|
|
|
143397
143356
|
function PrintHQChartVersion()
|
|
143398
143357
|
{
|
|
@@ -56809,7 +56809,7 @@ function FrameSplitMinutePriceY()
|
|
|
56809
56809
|
var distanceValue=Math.max(Math.abs(this.YClose-max),Math.abs(this.YClose-min));
|
|
56810
56810
|
max=this.YClose+distanceValue;
|
|
56811
56811
|
min=this.YClose-distanceValue;
|
|
56812
|
-
if (min<0) min=range.Min;
|
|
56812
|
+
//if (min<0) min=range.Min;
|
|
56813
56813
|
}
|
|
56814
56814
|
}
|
|
56815
56815
|
|
|
@@ -56850,47 +56850,6 @@ function FrameSplitMinutePriceY()
|
|
|
56850
56850
|
|
|
56851
56851
|
aryCoordinate.sort((left,right)=>{ return left.Value-right.Value; })
|
|
56852
56852
|
|
|
56853
|
-
/*
|
|
56854
|
-
for(var i=0;i<showCount;++i)
|
|
56855
|
-
{
|
|
56856
|
-
var price=min+(distance*i);
|
|
56857
|
-
var coordinate=new CoordinateInfo();
|
|
56858
|
-
this.Frame.HorizontalInfo[i]=coordinate
|
|
56859
|
-
coordinate.Value=price;
|
|
56860
|
-
var strPrice=price.toFixed(defaultfloatPrecision); //价格刻度字符串
|
|
56861
|
-
if (this.IsShowLeftText) coordinate.Message[0]=strPrice
|
|
56862
|
-
|
|
56863
|
-
if (IFrameSplitOperator.IsNumber(this.YClose) && this.YClose!=0)
|
|
56864
|
-
{
|
|
56865
|
-
var per=(price/this.YClose-1)*100;
|
|
56866
|
-
if (per>0) coordinate.TextColor=g_JSChartResource.UpTextColor;
|
|
56867
|
-
else if (per<0) coordinate.TextColor=g_JSChartResource.DownTextColor;
|
|
56868
|
-
var strPer=`${IFrameSplitOperator.FormatValueString(per,2)}%`;
|
|
56869
|
-
if (this.IsShowRightText)
|
|
56870
|
-
{
|
|
56871
|
-
if (this.RightTextFormat==1)
|
|
56872
|
-
{
|
|
56873
|
-
coordinate.Message[1]=strPrice;
|
|
56874
|
-
}
|
|
56875
|
-
else if (this.RightTextFormat==2) //价格/百分比
|
|
56876
|
-
{
|
|
56877
|
-
coordinate.Message[1]=[strPer,strPrice];
|
|
56878
|
-
}
|
|
56879
|
-
else
|
|
56880
|
-
{
|
|
56881
|
-
coordinate.Message[1]=strPer; //百分比
|
|
56882
|
-
}
|
|
56883
|
-
}
|
|
56884
|
-
|
|
56885
|
-
if (Math.abs(price-this.YClose) <0.00000000001) //小数有精度问题 使用差值
|
|
56886
|
-
{
|
|
56887
|
-
coordinate.LineType=2;//中间的线画虚线
|
|
56888
|
-
coordinate.TextColor=g_JSChartResource.UnchagneTextColor;
|
|
56889
|
-
if (g_JSChartResource.FrameDotSplitPen) coordinate.LineColor=g_JSChartResource.FrameDotSplitPen;
|
|
56890
|
-
}
|
|
56891
|
-
}
|
|
56892
|
-
}*/
|
|
56893
|
-
|
|
56894
56853
|
this.Frame.HorizontalInfo=aryCoordinate;
|
|
56895
56854
|
this.Frame.HorizontalMax=max;
|
|
56896
56855
|
this.Frame.HorizontalMin=min;
|
|
@@ -153187,7 +153146,7 @@ function HQChartScriptWorker()
|
|
|
153187
153146
|
|
|
153188
153147
|
|
|
153189
153148
|
|
|
153190
|
-
var HQCHART_VERSION="1.1.
|
|
153149
|
+
var HQCHART_VERSION="1.1.14407";
|
|
153191
153150
|
|
|
153192
153151
|
function PrintHQChartVersion()
|
|
153193
153152
|
{
|