hqchart 1.1.12905 → 1.1.12928
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.NetworkFilterTest.vue.js +2 -2
- package/lib/umychart.vue.js +31 -24
- package/package.json +2 -1
- package/src/jscommon/umychart.NetworkFilterTest.js +21 -0
- package/src/jscommon/umychart.complier.js +30 -2
- package/src/jscommon/umychart.index.data.js +3 -2
- package/src/jscommon/umychart.js +73 -45
- package/src/jscommon/umychart.node/umychart.node.js +11661 -8473
- package/src/jscommon/umychart.testdata/000001.sz.minute.kline.js +2681 -0
- package/src/jscommon/umychart.testdata/000151.sz.day.kline.js +6084 -0
- package/src/jscommon/umychart.testdata.js +21 -0
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +107 -50
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.NetworkFilterTest.vue.js +21 -0
- package/src/jscommon/umychart.vue/umychart.vue.js +107 -50
|
@@ -43,10 +43,17 @@ HQData.NetworkFilter=function(data, callback)
|
|
|
43
43
|
HQData.RequestIndexVariantData(data,callback);
|
|
44
44
|
break;
|
|
45
45
|
|
|
46
|
+
case "JSSymbolData::GetOtherSymbolData":
|
|
47
|
+
HQData.RequestOtherSymbolData(data, callback);
|
|
48
|
+
break;
|
|
49
|
+
|
|
46
50
|
case "AnnouncementInfo::RequestData":
|
|
47
51
|
HQData.AnnouncementInfo_RequestData(data,callback);
|
|
48
52
|
break;
|
|
49
53
|
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
50
57
|
case "PforecastInfo::RequestData":
|
|
51
58
|
HQData.PforecastInfo_RequestData(data,callback);
|
|
52
59
|
break;
|
|
@@ -191,6 +198,20 @@ HQData.RequestIndexVariantData=function(data,callback)
|
|
|
191
198
|
|
|
192
199
|
}
|
|
193
200
|
|
|
201
|
+
HQData.RequestOtherSymbolData=function(data, callback)
|
|
202
|
+
{
|
|
203
|
+
data.PreventDefault=true;
|
|
204
|
+
var symbol=data.Request.Data.symbol;
|
|
205
|
+
var period=data.Request.Data.period;
|
|
206
|
+
var right=data.Request.Data.right;
|
|
207
|
+
var hqchartData=null;
|
|
208
|
+
if (ChartData.IsDayPeriod(period,true)) hqchartData=KLINE_DAY_DATA2;
|
|
209
|
+
else if (ChartData.IsMinutePeriod(period,true)) hqchartData=KLINE_MINUTE_DATA2;
|
|
210
|
+
hqchartData.name=symbol;
|
|
211
|
+
hqchartData.symbol=symbol;
|
|
212
|
+
callback(hqchartData);
|
|
213
|
+
}
|
|
214
|
+
|
|
194
215
|
HQData.AnnouncementInfo_RequestData=function(data,callback)
|
|
195
216
|
{
|
|
196
217
|
data.PreventDefault=true;
|
|
@@ -37,7 +37,8 @@ var JSConsole=
|
|
|
37
37
|
StringFormat: 1=带单位万/亿 2=原始格式
|
|
38
38
|
Condition: 限制条件 { Symbol:'Index'/'Stock'(只支持指数/股票),Period:[](支持的周期), Include:[](指定支持的股票,代码全部大写包括后缀, Message:"提示信息")}
|
|
39
39
|
OutName:动态输出变量名字 [{Name:原始变量名, DynamicName:动态名字格式}] 如 {Name:"MA1", DynamicName:"MA{M1}"};
|
|
40
|
-
SplitType: Y
|
|
40
|
+
SplitType: Y轴分割类型,
|
|
41
|
+
YAxis:{ FloatPrecision:小数位数, StringFormat: } //Y轴刻度输出格式
|
|
41
42
|
*/
|
|
42
43
|
|
|
43
44
|
//周期条件枚举
|
|
@@ -1593,7 +1594,7 @@ JSIndexScript.prototype.AMO = function ()
|
|
|
1593
1594
|
{
|
|
1594
1595
|
let data =
|
|
1595
1596
|
{
|
|
1596
|
-
Name: 'AMO', Description: '成交金额', IsMainIndex: false,
|
|
1597
|
+
Name: 'AMO', Description: '成交金额', IsMainIndex: false, StringFormat:2, YAxis:{ FloatPrecision:0, StringFormat:2 },
|
|
1597
1598
|
Args: [{ Name: 'M1', Value: 5 },{ Name: 'M2', Value: 10 }],
|
|
1598
1599
|
Script: //脚本
|
|
1599
1600
|
'AMOW:AMOUNT/10000.0,VOLSTICK;\n\
|
|
@@ -4789,6 +4790,14 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
|
|
|
4789
4790
|
chart.WindowIndex[i] = new ScriptIndex(indexInfo.Name, indexInfo.Script, args,indexInfo); //脚本执行
|
|
4790
4791
|
if (item.StringFormat>0) chart.WindowIndex[i].StringFormat=item.StringFormat;
|
|
4791
4792
|
if (item.FloatPrecision>=0) chart.WindowIndex[i].FloatPrecision=item.FloatPrecision;
|
|
4793
|
+
|
|
4794
|
+
if (item.YAxis)
|
|
4795
|
+
{
|
|
4796
|
+
if (!indexInfo.YAxis) indexInfo.YAxis={ };
|
|
4797
|
+
if (IFrameSplitOperator.IsNumber(item.YAxis.FloatPrecision)) indexInfo.YAxis.FloatPrecision=item.YAxis.FloatPrecision;
|
|
4798
|
+
if (IFrameSplitOperator.IsNumber(item.YAxis.StringFormat)) indexInfo.YAxis.StringFormat=item.YAxis.StringFormat;
|
|
4799
|
+
if (IFrameSplitOperator.IsBool(item.YAxis.EnableRemoveZero)) indexInfo.YAxis.EnableRemoveZero=item.YAxis.EnableRemoveZero;
|
|
4800
|
+
}
|
|
4792
4801
|
}
|
|
4793
4802
|
|
|
4794
4803
|
}
|
|
@@ -12229,7 +12238,6 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
12229
12238
|
subFrame.Frame.IsShowYText[1]=option.IsShowRightText;
|
|
12230
12239
|
subFrame.Frame.YSplitOperator.IsShowRightText=option.IsShowRightText; //显示右边刻度
|
|
12231
12240
|
}
|
|
12232
|
-
|
|
12233
12241
|
}
|
|
12234
12242
|
|
|
12235
12243
|
this.AddNewSubFrame=function(option)
|
|
@@ -12277,24 +12285,22 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
|
|
|
12277
12285
|
this.RemoveMinSizeWindows(); //清空隐藏的指标
|
|
12278
12286
|
var index=this.AddNewSubFrame(option);
|
|
12279
12287
|
|
|
12280
|
-
var indexData =
|
|
12281
|
-
{
|
|
12282
|
-
Name:indexInfo.Name, Script:indexInfo.Script, Args: indexInfo.Args, ID:indexName ,
|
|
12283
|
-
//扩展属性 可以是空
|
|
12284
|
-
KLineType:indexInfo.KLineType, YSpecificMaxMin:indexInfo.YSpecificMaxMin, YSplitScale:indexInfo.YSplitScale,
|
|
12285
|
-
FloatPrecision:indexInfo.FloatPrecision, Condition:indexInfo.Condition,StringFormat:indexInfo.StringFormat,
|
|
12286
|
-
OutName:indexInfo.OutName
|
|
12287
|
-
};
|
|
12288
|
-
|
|
12289
12288
|
if (option)
|
|
12290
12289
|
{
|
|
12291
|
-
if (option.FloatPrecision>=0)
|
|
12292
|
-
if (option.StringFormat>0)
|
|
12293
|
-
if (option.Args)
|
|
12294
|
-
if (option.Lock)
|
|
12290
|
+
if (option.FloatPrecision>=0) indexInfo.FloatPrecision=option.FloatPrecision;
|
|
12291
|
+
if (option.StringFormat>0) indexInfo.StringFormat=option.StringFormat;
|
|
12292
|
+
if (option.Args) indexInfo.Args=option.Args;
|
|
12293
|
+
if (option.Lock) indexInfo.Lock=option.Lock;
|
|
12294
|
+
if (option.YAxis)
|
|
12295
|
+
{
|
|
12296
|
+
indexInfo.YAxis={ };
|
|
12297
|
+
if (IFrameSplitOperator.IsNumber(option.YAxis.FloatPrecision)) indexInfo.YAxis.FloatPrecision=option.YAxis.FloatPrecision;
|
|
12298
|
+
if (IFrameSplitOperator.IsNumber(option.YAxis.StringFormat)) indexInfo.YAxis.StringFormat=option.YAxis.StringFormat;
|
|
12299
|
+
if (IFrameSplitOperator.IsBool(option.YAxis.EnableRemoveZero)) indexInfo.YAxis.EnableRemoveZero=option.YAxis.EnableRemoveZero;
|
|
12300
|
+
}
|
|
12295
12301
|
}
|
|
12296
12302
|
|
|
12297
|
-
this.WindowIndex[index] = new ScriptIndex(
|
|
12303
|
+
this.WindowIndex[index] = new ScriptIndex(indexInfo.Name, indexInfo.Script, indexInfo.Args,indexInfo); //脚本执行
|
|
12298
12304
|
if (this.ClassName=="MinuteChartContainer" || this.ClassName=="MinuteChartHScreenContainer")
|
|
12299
12305
|
var bindData=this.SourceData;
|
|
12300
12306
|
else
|
|
@@ -18544,8 +18550,10 @@ function KLineFrame()
|
|
|
18544
18550
|
{
|
|
18545
18551
|
if (this.XSplit)
|
|
18546
18552
|
{
|
|
18547
|
-
if (this.XSplitOperator
|
|
18553
|
+
if (this.XSplitOperator) this.XSplitOperator.Operator();
|
|
18554
|
+
if (this.YSplitOperator && this.YSplitOperator.CustomCoordinate) this.YSplitOperator.CustomCoordinate();
|
|
18548
18555
|
}
|
|
18556
|
+
|
|
18549
18557
|
return;
|
|
18550
18558
|
}
|
|
18551
18559
|
|
|
@@ -44901,7 +44909,8 @@ function RectSelectPaint()
|
|
|
44901
44909
|
};
|
|
44902
44910
|
|
|
44903
44911
|
this.BorderCache;
|
|
44904
|
-
this.IsOnlyOnePoint=false;
|
|
44912
|
+
this.IsOnlyOnePoint=false; //空格选中区间,单点模式
|
|
44913
|
+
this.IsFullFrame=false; //区间选择包含子窗口
|
|
44905
44914
|
|
|
44906
44915
|
//设置参数接口
|
|
44907
44916
|
this.SetOption=function(option)
|
|
@@ -45312,6 +45321,7 @@ function RectSelectPaint()
|
|
|
45312
45321
|
else
|
|
45313
45322
|
{
|
|
45314
45323
|
var border=subFrame.GetBorder();
|
|
45324
|
+
if (this.IsFullFrame) border=this.ChartFrame.ChartBorder.GetBorder(); //全部指标窗口选中
|
|
45315
45325
|
var xOffset=border.LeftEx+distanceWidth/2.0+g_JSChartResource.FrameLeftMargin;
|
|
45316
45326
|
var chartright=border.RightEx;
|
|
45317
45327
|
var drawHeight=border.ChartHeight-border.TopTitle-5*GetDevicePixelRatio();
|
|
@@ -46940,7 +46950,7 @@ function IFrameSplitOperator()
|
|
|
46940
46950
|
this.Frame; //框架信息
|
|
46941
46951
|
this.FrameSplitData; //坐标轴分割方法
|
|
46942
46952
|
this.SplitCount=5; //刻度个数
|
|
46943
|
-
this.StringFormat=0; //刻度字符串格式
|
|
46953
|
+
this.StringFormat=0; //刻度字符串格式 2=原始格式
|
|
46944
46954
|
this.IsShowLeftText=true; //显示左边刻度
|
|
46945
46955
|
this.IsShowRightText=true; //显示右边刻度
|
|
46946
46956
|
this.LanguageID=JSCHART_LANGUAGE_ID.LANGUAGE_CHINESE_ID;
|
|
@@ -47283,6 +47293,11 @@ function IFrameSplitOperator()
|
|
|
47283
47293
|
|
|
47284
47294
|
return data;
|
|
47285
47295
|
}
|
|
47296
|
+
|
|
47297
|
+
this.Reset=function() //重置
|
|
47298
|
+
{
|
|
47299
|
+
|
|
47300
|
+
}
|
|
47286
47301
|
}
|
|
47287
47302
|
|
|
47288
47303
|
//字符串格式化 千分位分割
|
|
@@ -48282,6 +48297,16 @@ function FrameSplitKLinePriceY()
|
|
|
48282
48297
|
|
|
48283
48298
|
this.CustomCoordinate=function(floatPrecision)
|
|
48284
48299
|
{
|
|
48300
|
+
if (!IFrameSplitOperator.IsNumber(floatPrecision))
|
|
48301
|
+
{
|
|
48302
|
+
var pixelTatio = GetDevicePixelRatio(); //获取设备的分辨率
|
|
48303
|
+
var width=this.Frame.ChartBorder.GetChartWidth(); //画布的宽度
|
|
48304
|
+
var isPhoneModel=width<450*pixelTatio;
|
|
48305
|
+
floatPrecision=GetfloatPrecision(this.Symbol);
|
|
48306
|
+
if (isPhoneModel && MARKET_SUFFIX_NAME.IsSHSZIndex(this.Symbol)) floatPrecision = 0; //手机端指数不显示小数位数,太长了
|
|
48307
|
+
if (this.FloatPrecision!=null) floatPrecision=this.FloatPrecision;
|
|
48308
|
+
}
|
|
48309
|
+
|
|
48285
48310
|
this.Frame.CustomHorizontalInfo=[];
|
|
48286
48311
|
|
|
48287
48312
|
var data=this.InvokeCustomYCoordinateCallback();
|
|
@@ -48747,6 +48772,10 @@ function FrameSplitY()
|
|
|
48747
48772
|
if (IFrameSplitOperator.IsNumber(value) && Math.abs(value) > 1000) floatPrecision=0;
|
|
48748
48773
|
text=IFrameSplitOperator.FormatValueString(value,floatPrecision,this.LanguageID);
|
|
48749
48774
|
}
|
|
48775
|
+
else if (this.StringFormat==2) //原始数据输出
|
|
48776
|
+
{
|
|
48777
|
+
text=`${value.toFixed(this.FloatPrecision)}`;
|
|
48778
|
+
}
|
|
48750
48779
|
else
|
|
48751
48780
|
{
|
|
48752
48781
|
var absValue=Math.abs(value);
|
|
@@ -71931,6 +71960,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
71931
71960
|
this.Draw();
|
|
71932
71961
|
}
|
|
71933
71962
|
|
|
71963
|
+
|
|
71934
71964
|
this.OnKLinePageChange=function(eventid)
|
|
71935
71965
|
{
|
|
71936
71966
|
if (!this.ChartPaint[0]) return;
|
|
@@ -72156,21 +72186,19 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
72156
72186
|
}
|
|
72157
72187
|
else if (indexInfo)
|
|
72158
72188
|
{
|
|
72159
|
-
|
|
72160
|
-
if (obj.
|
|
72161
|
-
|
|
72162
|
-
|
|
72163
|
-
|
|
72164
|
-
|
|
72165
|
-
|
|
72166
|
-
|
|
72167
|
-
|
|
72168
|
-
|
|
72189
|
+
if (obj.Args) indexInfo.Args=obj.Args; //外部可以设置参数
|
|
72190
|
+
if (IFrameSplitOperator.IsNumber(obj.FloatPrecision)) indexInfo.FloatPrecision=obj.FloatPrecision;
|
|
72191
|
+
if (IFrameSplitOperator.IsNumber(obj.StringFormat)) indexInfo.StringFormat=obj.StringFormat;
|
|
72192
|
+
if (IFrameSplitOperator.IsBool(obj.IsSync)) indexInfo.IsSync=obj.IsSync;
|
|
72193
|
+
if (obj.YAxis)
|
|
72194
|
+
{
|
|
72195
|
+
if (!indexInfo.YAxis) indexInfo.YAxis={ };
|
|
72196
|
+
if (IFrameSplitOperator.IsNumber(obj.YAxis.FloatPrecision)) indexInfo.YAxis.FloatPrecision=obj.YAxis.FloatPrecision;
|
|
72197
|
+
if (IFrameSplitOperator.IsNumber(obj.YAxis.StringFormat)) indexInfo.YAxis.StringFormat=obj.YAxis.StringFormat;
|
|
72198
|
+
if (IFrameSplitOperator.IsBool(obj.YAxis.EnableRemoveZero)) indexInfo.YAxis.EnableRemoveZero=obj.YAxis.EnableRemoveZero;
|
|
72199
|
+
}
|
|
72169
72200
|
|
|
72170
|
-
|
|
72171
|
-
if (IFrameSplitOperator.IsNumber(obj.StringFormat)) indexData.StringFormat=obj.StringFormat;
|
|
72172
|
-
if (IFrameSplitOperator.IsBool(obj.IsSync)) indexData.IsSync=obj.IsSync;
|
|
72173
|
-
var scriptIndex=new OverlayScriptIndex(indexData.Name,indexData.Script,indexData.Args,indexData); //脚本执行
|
|
72201
|
+
var scriptIndex=new OverlayScriptIndex(indexInfo.Name,indexInfo.Script,indexInfo.Args,indexInfo); //脚本执行
|
|
72174
72202
|
scriptIndex.OverlayIndex={ IsOverlay:true, Identify:overlayFrame.Identify, WindowIndex:windowIndex, Frame:overlayFrame }; //叠加指标信息
|
|
72175
72203
|
overlayFrame.Script=scriptIndex;
|
|
72176
72204
|
}
|
|
@@ -72541,17 +72569,18 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
72541
72569
|
{
|
|
72542
72570
|
var args=indexInfo.Args;
|
|
72543
72571
|
if (option.Windows[i].Args) args=option.Windows[i].Args;
|
|
72544
|
-
|
|
72545
|
-
|
|
72546
|
-
|
|
72547
|
-
|
|
72548
|
-
|
|
72549
|
-
|
|
72550
|
-
|
|
72551
|
-
|
|
72552
|
-
|
|
72572
|
+
if (item.TitleFont) indexInfo.TitleFont=item.TitleFont;
|
|
72573
|
+
if (item.IsShortTitle) indexInfo.IsShortTitle=item.IsShortTitle;
|
|
72574
|
+
if (IFrameSplitOperator.IsBool(item.IsSync)) indexInfo.IsSync=item.IsSync;
|
|
72575
|
+
|
|
72576
|
+
if (item.YAxis)
|
|
72577
|
+
{
|
|
72578
|
+
if (!indexInfo.YAxis) indexInfo.YAxis={ };
|
|
72579
|
+
if (IFrameSplitOperator.IsNumber(item.YAxis.FloatPrecision)) indexInfo.YAxis.FloatPrecision=item.YAxis.FloatPrecision;
|
|
72580
|
+
if (IFrameSplitOperator.IsNumber(item.YAxis.StringFormat)) indexInfo.YAxis.StringFormat=item.YAxis.StringFormat;
|
|
72581
|
+
}
|
|
72553
72582
|
|
|
72554
|
-
this.WindowIndex[i]=new ScriptIndex(
|
|
72583
|
+
this.WindowIndex[i]=new ScriptIndex(indexInfo.Name,indexInfo.Script,args,indexInfo); //脚本执行
|
|
72555
72584
|
}
|
|
72556
72585
|
}
|
|
72557
72586
|
}
|
|
@@ -73191,7 +73220,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
|
|
|
73191
73220
|
this.Draw();
|
|
73192
73221
|
}
|
|
73193
73222
|
|
|
73194
|
-
//增加叠加股票
|
|
73223
|
+
//增加叠加股票
|
|
73195
73224
|
this.OverlaySymbol=function(symbol,option)
|
|
73196
73225
|
{
|
|
73197
73226
|
for(var i in this.OverlayChartPaint)
|
|
@@ -88907,8 +88936,8 @@ var MARKET_SUFFIX_NAME=
|
|
|
88907
88936
|
SZO:".SZO", //深证交易所 股票期权
|
|
88908
88937
|
HK:'.HK', //港股
|
|
88909
88938
|
FHK:'.FHK', //港股期货
|
|
88910
|
-
SHFE: '.SHF', //上期所 (Shanghai Futures Exchange)
|
|
88911
|
-
SHFE2:'.SHFE', //上期所 (Shanghai Futures Exchange)
|
|
88939
|
+
SHFE: '.SHF', //上期所 (Shanghai Futures Exchange) | 上期所-能源
|
|
88940
|
+
SHFE2:'.SHFE', //上期所 (Shanghai Futures Exchange) | 上期所-能源
|
|
88912
88941
|
CFFEX: '.CFE', //中期所 (China Financial Futures Exchange)
|
|
88913
88942
|
DCE: '.DCE', //大连商品交易所(Dalian Commodity Exchange)
|
|
88914
88943
|
CZCE: '.CZC', //郑州期货交易所
|
|
@@ -112389,6 +112418,8 @@ function ScriptIndex(name,script,args,option)
|
|
|
112389
112418
|
this.TitleFont=g_JSChartResource.TitleFont; //标题字体
|
|
112390
112419
|
this.IsShortTitle=false; //是否显示指标参数
|
|
112391
112420
|
this.IsUsePageData=false; //是否使用了K线界面数据
|
|
112421
|
+
|
|
112422
|
+
this.YAxis=null; //Y轴刻度设置 { FloatPrecision, StringFormat, EnableRemoveZero }
|
|
112392
112423
|
|
|
112393
112424
|
//调试信息
|
|
112394
112425
|
this.Debug; // { Callback:, Count: }
|
|
@@ -112438,6 +112469,15 @@ function ScriptIndex(name,script,args,option)
|
|
|
112438
112469
|
if (option.Lock.MinWidth) this.LockMinWidth=option.Lock.MinWidth*GetDevicePixelRatio();
|
|
112439
112470
|
}
|
|
112440
112471
|
|
|
112472
|
+
if (option && option.YAxis)
|
|
112473
|
+
{
|
|
112474
|
+
this.YAxis={ };
|
|
112475
|
+
if (IFrameSplitOperator.IsNumber(option.YAxis.FloatPrecision)) this.YAxis.FloatPrecision=option.YAxis.FloatPrecision;
|
|
112476
|
+
if (IFrameSplitOperator.IsNumber(option.YAxis.StringFormat)) this.YAxis.StringFormat=option.YAxis.StringFormat;
|
|
112477
|
+
if (IFrameSplitOperator.IsBool(option.YAxis.EnableRemoveZero)) this.YAxis.EnableRemoveZero=option.YAxis.EnableRemoveZero;
|
|
112478
|
+
|
|
112479
|
+
}
|
|
112480
|
+
|
|
112441
112481
|
if (args) this.Arguments=args;
|
|
112442
112482
|
|
|
112443
112483
|
this.CopyTo=function(dest) //赋值到新实例出来
|
|
@@ -114115,7 +114155,15 @@ function ScriptIndex(name,script,args,option)
|
|
|
114115
114155
|
|
|
114116
114156
|
if (windowIndex>=1 && hqChart.Frame)
|
|
114117
114157
|
{
|
|
114118
|
-
|
|
114158
|
+
//Y轴刻度格式 默认跟标题栏一致
|
|
114159
|
+
var ySpliter=hqChart.Frame.SubFrame[windowIndex].Frame.YSplitOperator;
|
|
114160
|
+
ySpliter.FloatPrecision=this.FloatPrecision;
|
|
114161
|
+
if (this.YAxis)
|
|
114162
|
+
{
|
|
114163
|
+
if (IFrameSplitOperator.IsNumber(this.YAxis.FloatPrecision)) ySpliter.FloatPrecision=this.YAxis.FloatPrecision;
|
|
114164
|
+
if (IFrameSplitOperator.IsNumber(this.YAxis.StringFormat)) ySpliter.StringFormat=this.YAxis.StringFormat;
|
|
114165
|
+
}
|
|
114166
|
+
|
|
114119
114167
|
if (this.YSpecificMaxMin) hqChart.Frame.SubFrame[windowIndex].Frame.YSpecificMaxMin=this.YSpecificMaxMin; //最大最小值
|
|
114120
114168
|
if (this.YSplitScale) hqChart.Frame.SubFrame[windowIndex].Frame.YSplitScale=this.YSplitScale; //固定刻度
|
|
114121
114169
|
}
|
|
@@ -114487,7 +114535,16 @@ function OverlayScriptIndex(name,script,args,option)
|
|
|
114487
114535
|
if (!IFrameSplitOperator.IsNonEmptyArray(this.OutVar)) return;
|
|
114488
114536
|
|
|
114489
114537
|
//修改Y轴分割方式
|
|
114490
|
-
|
|
114538
|
+
var ySpliter=this.OverlayIndex.Frame.Frame.YSplitOperator;
|
|
114539
|
+
if (IFrameSplitOperator.IsNumber(this.YSplitType)) ySpliter.SplitType=this.YSplitType;
|
|
114540
|
+
ySpliter.FloatPrecision=this.FloatPrecision;
|
|
114541
|
+
ySpliter.EnableRemoveZero=true;
|
|
114542
|
+
if (this.YAxis)
|
|
114543
|
+
{
|
|
114544
|
+
if (IFrameSplitOperator.IsNumber(this.YAxis.FloatPrecision)) ySpliter.FloatPrecision=this.YAxis.FloatPrecision;
|
|
114545
|
+
if (IFrameSplitOperator.IsNumber(this.YAxis.StringFormat)) ySpliter.StringFormat=this.YAxis.StringFormat;
|
|
114546
|
+
if (IFrameSplitOperator.IsBool(this.YAxis.EnableRemoveZero)) ySpliter.EnableRemoveZero=this.YAxis.EnableRemoveZero;
|
|
114547
|
+
}
|
|
114491
114548
|
|
|
114492
114549
|
//指标名字
|
|
114493
114550
|
var titleInfo={ Data:[], Title:this.Name, Frame:this.OverlayIndex.Frame.Frame, Script:this };
|
|
@@ -129268,7 +129325,7 @@ function ScrollBarBGChart()
|
|
|
129268
129325
|
|
|
129269
129326
|
|
|
129270
129327
|
|
|
129271
|
-
var HQCHART_VERSION="1.1.
|
|
129328
|
+
var HQCHART_VERSION="1.1.12927";
|
|
129272
129329
|
|
|
129273
129330
|
function PrintHQChartVersion()
|
|
129274
129331
|
{
|
|
@@ -48718,10 +48718,17 @@ HQData.NetworkFilter=function(data, callback)
|
|
|
48718
48718
|
HQData.RequestIndexVariantData(data,callback);
|
|
48719
48719
|
break;
|
|
48720
48720
|
|
|
48721
|
+
case "JSSymbolData::GetOtherSymbolData":
|
|
48722
|
+
HQData.RequestOtherSymbolData(data, callback);
|
|
48723
|
+
break;
|
|
48724
|
+
|
|
48721
48725
|
case "AnnouncementInfo::RequestData":
|
|
48722
48726
|
HQData.AnnouncementInfo_RequestData(data,callback);
|
|
48723
48727
|
break;
|
|
48724
48728
|
|
|
48729
|
+
|
|
48730
|
+
|
|
48731
|
+
|
|
48725
48732
|
case "PforecastInfo::RequestData":
|
|
48726
48733
|
HQData.PforecastInfo_RequestData(data,callback);
|
|
48727
48734
|
break;
|
|
@@ -48866,6 +48873,20 @@ HQData.RequestIndexVariantData=function(data,callback)
|
|
|
48866
48873
|
|
|
48867
48874
|
}
|
|
48868
48875
|
|
|
48876
|
+
HQData.RequestOtherSymbolData=function(data, callback)
|
|
48877
|
+
{
|
|
48878
|
+
data.PreventDefault=true;
|
|
48879
|
+
var symbol=data.Request.Data.symbol;
|
|
48880
|
+
var period=data.Request.Data.period;
|
|
48881
|
+
var right=data.Request.Data.right;
|
|
48882
|
+
var hqchartData=null;
|
|
48883
|
+
if (ChartData.IsDayPeriod(period,true)) hqchartData=KLINE_DAY_DATA2;
|
|
48884
|
+
else if (ChartData.IsMinutePeriod(period,true)) hqchartData=KLINE_MINUTE_DATA2;
|
|
48885
|
+
hqchartData.name=symbol;
|
|
48886
|
+
hqchartData.symbol=symbol;
|
|
48887
|
+
callback(hqchartData);
|
|
48888
|
+
}
|
|
48889
|
+
|
|
48869
48890
|
HQData.AnnouncementInfo_RequestData=function(data,callback)
|
|
48870
48891
|
{
|
|
48871
48892
|
data.PreventDefault=true;
|