hqchart 1.1.15220 → 1.1.15223

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.
@@ -9256,7 +9256,7 @@ if(this.Frame&&this.Frame.SubFrame){for(var i=0;i<this.Frame.SubFrame.length;++i
9256
9256
  for(var i=1;i<this.TitlePaint.length;++i){var item=this.TitlePaint[i];item.OverlayIndex=new _map2.default();}};this.ResetDayOffset=function(){if(this.PageInfo.Enable){this.DayOffset.Offset=this.PageInfo.Offset;this.DayOffset.ShowDayCount=this.PageInfo.ShowDayCount;}else{this.DayOffset.Offset=0;this.DayOffset.ShowDayCount=-1;}this.DayOffset.PageInfo=null;};this.ResetDataStatus=function(){this.DataStatus.MultiDay=false;this.DataStatus.LatestDay=false;this.DataStatus.LatestDate=null;};this.ClearOverlaySymbolData=function(){for(var i=0;i<this.OverlayChartPaint.length;++i){var chart=this.OverlayChartPaint[i];chart.Status=OVERLAY_STATUS_ID.STATUS_NONE_ID;//重置状态
9257
9257
  chart.Data.Data=[];//清空数据
9258
9258
  }};//切换股票代码
9259
- this.ChangeSymbol=function(symbol,option){this.StopDisplayLatest();this.ClearGlobalOption();this.CancelAutoUpdate();this.AutoUpdateEvent(false,"MinuteChartContainer::ChangeSymbol");this.Symbol=symbol;this.ResetDayOffset();this.ResetDataStatus();this.ClearIndexPaint();//清空指标
9259
+ this.ChangeSymbol=function(symbol,option){this.StopDisplayLatest();this.ClearGlobalOption();this.CancelAutoUpdate();this.AutoUpdateEvent(false,"MinuteChartContainer::ChangeSymbol");this.Symbol=symbol;this.ResetDayOffset();this.ResetDataStatus();this.ClearMinuteData();this.ClearIndexPaint();//清空指标
9260
9260
  this.ResetOverlaySymbolStatus();this.ReloadChartDrawPicture();this.ClearIndexRunCount();this.ClearStockCache();this.UnlockCorssCursor();this.Frame.ClearYCoordinateMaxMin();if(option){if(IFrameSplitOperator.IsNumber(option.DayCount))this.DayCount=option.DayCount;if(IFrameSplitOperator.IsNonEmptyArray(option.Windows))//切换指标
9261
9261
  {for(var i=0;i<option.Windows.length;++i){var index=2+i;if(index>=this.WindowIndex.length)break;//暂时不支持 动态增加/减少
9262
9262
  var item=option.Windows[i];if(!item)continue;if(item.Script){this.WindowIndex[index]=new ScriptIndex(item.Name,item.Script,item.Args,item);//脚本执行
@@ -9268,7 +9268,10 @@ if(option.Overlay&&IFrameSplitOperator.IsNonEmptyArray(option.Overlay)){var setS
9268
9268
  {var item=this.OverlayChartPaint[i];setSymbol.add(item.Symbol);}for(var i=0;i<option.Overlay.length;++i){var item=option.Overlay[i];if(setSymbol.has(item.Symbol))continue;var paint=new ChartOverlayMinutePriceLine();paint.Canvas=this.Canvas;paint.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder;paint.ChartFrame=this.Frame.SubFrame[0].Frame;paint.Name="Overlay-Minute";paint.Symbol=item.Symbol;paint.Identify='Overlay-Minute-'+item.Symbol;if(item.Color)paint.Color=item.Color;//外部设置颜色
9269
9269
  else paint.Color=g_JSChartResource.OverlaySymbol.Color[g_JSChartResource.OverlaySymbol.Random%g_JSChartResource.OverlaySymbol.Color.length];++g_JSChartResource.OverlaySymbol.Random;paint.MainData=this.SourceData;//绑定主图数据
9270
9270
  if(paint.SetOption)paint.SetOption(item);this.OverlayChartPaint.push(paint);}}if(IFrameSplitOperator.IsNonEmptyArray(option.AryDate)){this.AryDate=option.AryDate.slice();}}if(!symbol||this.DayCount<=0){this.DrawEmpty();}else{this.ChartSplashPaint.SetTitle(this.LoadDataSplashTitle);this.ChartSplashPaint.EnableSplash(true);//增加下载动画
9271
- this.Draw();this.RequestData();}};this.SetPageInfo=function(pageInfo){if(!pageInfo)return;if(IFrameSplitOperator.IsBool(pageInfo.Enable))this.PageInfo.Enable=pageInfo.Enable;if(IFrameSplitOperator.IsNumber(pageInfo.Offset))this.PageInfo.Offset=pageInfo.Offset;if(IFrameSplitOperator.IsNumber(pageInfo.ShowDayCount))this.PageInfo.ShowDayCount=pageInfo.ShowDayCount;};this.ClearMinuteData=function(){this.SourceData=null;this.DayData=null;this.BeforeOpenData=null;this.AfterCloseData=null;this.MultiDayBeforeOpenData=null;this.MultiDayAfterCloseData=null;};this.ChangeDayCount=function(count,option){if(count<0)return;this.StopDisplayLatest();this.ClearGlobalOption();this.CancelAutoUpdate();this.AutoUpdateEvent(false,"MinuteChartContainer::ChangeDayCount");this.DayCount=count;this.ClearMinuteData();this.ClearStockCache();this.UnlockCorssCursor();this.Frame.ClearYCoordinateMaxMin();if(option&&option.PageInfo){this.SetPageInfo(option.PageInfo);this.ResetDayOffset();}if(option){if(IFrameSplitOperator.IsNonEmptyArray(option.AryDate)){this.AryDate=option.AryDate.slice();}}this.ReloadChartDrawPicture();this.ResetDataStatus();this.ClearIndexPaint();//清空指标
9271
+ this.Draw();this.RequestData();}};this.SetPageInfo=function(pageInfo){if(!pageInfo)return;if(IFrameSplitOperator.IsBool(pageInfo.Enable))this.PageInfo.Enable=pageInfo.Enable;if(IFrameSplitOperator.IsNumber(pageInfo.Offset))this.PageInfo.Offset=pageInfo.Offset;if(IFrameSplitOperator.IsNumber(pageInfo.ShowDayCount))this.PageInfo.ShowDayCount=pageInfo.ShowDayCount;};this.ClearMinuteData=function(){this.SourceData=null;this.DayData=null;this.BeforeOpenData=null;this.AfterCloseData=null;this.MultiDayBeforeOpenData=null;this.MultiDayAfterCloseData=null;this.ClearMainChartData();};this.ClearMainChartData=function(){if(!IFrameSplitOperator.IsNonEmptyArray(this.ChartPaint))return;var chart=this.ChartPaint[0];//价格线
9272
+ if(chart){chart.Data=null;chart.BeforeOpenData=null;chart.AfterCloseData=null;chart.MultiDayBeforeOpenData=null;chart.MultiDayAfterCloseData=null;}var chart=this.ChartPaint[1];//均线
9273
+ if(chart){chart.Data=null;}var chart=this.ChartPaint[2];//成交量
9274
+ if(chart){chart.Data=null;}};this.ChangeDayCount=function(count,option){if(count<0)return;this.StopDisplayLatest();this.ClearGlobalOption();this.CancelAutoUpdate();this.AutoUpdateEvent(false,"MinuteChartContainer::ChangeDayCount");this.DayCount=count;this.ClearMinuteData();this.ClearStockCache();this.UnlockCorssCursor();this.Frame.ClearYCoordinateMaxMin();if(option&&option.PageInfo){this.SetPageInfo(option.PageInfo);this.ResetDayOffset();}if(option){if(IFrameSplitOperator.IsNonEmptyArray(option.AryDate)){this.AryDate=option.AryDate.slice();}}this.ReloadChartDrawPicture();this.ResetDataStatus();this.ClearIndexPaint();//清空指标
9272
9275
  this.Frame.ClearYCoordinateMaxMin();this.ResetOverlaySymbolStatus();this.RequestData();};this.ChangeBaselineType=function(type){if(this.BaselineType==type)return;this.BaselineType=type;if(this.DayCount>1)this.RequestData();};//[{ Symbol: , Color, Option: }]
9273
9276
  this.OverlaySymbols=function(aryData,option){if(option&&option.ClearAll===true)//全部清空
9274
9277
  {for(var i=0;i<this.OverlayChartPaint.length;++i){var item=this.OverlayChartPaint[i];item.IsDelete=true;}this.OverlayChartPaint=[];}var aryNewOverlay=[];for(var i=0,j=0;i<aryData.length;++i)//去重,已经叠加过的不用在叠加
@@ -15639,7 +15642,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
15639
15642
  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);};}/********************************************************************************
15640
15643
  * 版本信息输出
15641
15644
  *
15642
- */var HQCHART_VERSION="1.1.15219";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();//把给外界调用的方法暴露出来
15645
+ */var HQCHART_VERSION="1.1.15222";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();//把给外界调用的方法暴露出来
15643
15646
  exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
15644
15647
  // BaseIndex:BaseIndex,
15645
15648
  // ChartLine:ChartLine,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hqchart",
3
- "version": "1.1.15220",
3
+ "version": "1.1.15223",
4
4
  "description": "HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -93576,6 +93576,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
93576
93576
  this.Symbol=symbol;
93577
93577
  this.ResetDayOffset();
93578
93578
  this.ResetDataStatus();
93579
+ this.ClearMinuteData();
93579
93580
  this.ClearIndexPaint(); //清空指标
93580
93581
  this.ResetOverlaySymbolStatus();
93581
93582
  this.ReloadChartDrawPicture();
@@ -93583,6 +93584,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
93583
93584
  this.ClearStockCache();
93584
93585
  this.UnlockCorssCursor();
93585
93586
  this.Frame.ClearYCoordinateMaxMin();
93587
+
93586
93588
 
93587
93589
  if (option)
93588
93590
  {
@@ -93706,6 +93708,35 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
93706
93708
  this.AfterCloseData=null;
93707
93709
  this.MultiDayBeforeOpenData=null;
93708
93710
  this.MultiDayAfterCloseData=null;
93711
+
93712
+ this.ClearMainChartData();
93713
+ }
93714
+
93715
+ this.ClearMainChartData=function()
93716
+ {
93717
+ if (!IFrameSplitOperator.IsNonEmptyArray(this.ChartPaint)) return;
93718
+
93719
+ var chart=this.ChartPaint[0]; //价格线
93720
+ if (chart)
93721
+ {
93722
+ chart.Data=null;
93723
+ chart.BeforeOpenData=null;
93724
+ chart.AfterCloseData=null;
93725
+ chart.MultiDayBeforeOpenData=null;
93726
+ chart.MultiDayAfterCloseData=null;
93727
+ }
93728
+
93729
+ var chart=this.ChartPaint[1]; //均线
93730
+ if (chart)
93731
+ {
93732
+ chart.Data=null;
93733
+ }
93734
+
93735
+ var chart=this.ChartPaint[2]; //成交量
93736
+ if (chart)
93737
+ {
93738
+ chart.Data=null;
93739
+ }
93709
93740
  }
93710
93741
 
93711
93742
  this.ChangeDayCount=function(count, option)
@@ -97672,6 +97672,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
97672
97672
  this.Symbol=symbol;
97673
97673
  this.ResetDayOffset();
97674
97674
  this.ResetDataStatus();
97675
+ this.ClearMinuteData();
97675
97676
  this.ClearIndexPaint(); //清空指标
97676
97677
  this.ResetOverlaySymbolStatus();
97677
97678
  this.ReloadChartDrawPicture();
@@ -97679,6 +97680,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
97679
97680
  this.ClearStockCache();
97680
97681
  this.UnlockCorssCursor();
97681
97682
  this.Frame.ClearYCoordinateMaxMin();
97683
+
97682
97684
 
97683
97685
  if (option)
97684
97686
  {
@@ -97802,6 +97804,35 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
97802
97804
  this.AfterCloseData=null;
97803
97805
  this.MultiDayBeforeOpenData=null;
97804
97806
  this.MultiDayAfterCloseData=null;
97807
+
97808
+ this.ClearMainChartData();
97809
+ }
97810
+
97811
+ this.ClearMainChartData=function()
97812
+ {
97813
+ if (!IFrameSplitOperator.IsNonEmptyArray(this.ChartPaint)) return;
97814
+
97815
+ var chart=this.ChartPaint[0]; //价格线
97816
+ if (chart)
97817
+ {
97818
+ chart.Data=null;
97819
+ chart.BeforeOpenData=null;
97820
+ chart.AfterCloseData=null;
97821
+ chart.MultiDayBeforeOpenData=null;
97822
+ chart.MultiDayAfterCloseData=null;
97823
+ }
97824
+
97825
+ var chart=this.ChartPaint[1]; //均线
97826
+ if (chart)
97827
+ {
97828
+ chart.Data=null;
97829
+ }
97830
+
97831
+ var chart=this.ChartPaint[2]; //成交量
97832
+ if (chart)
97833
+ {
97834
+ chart.Data=null;
97835
+ }
97805
97836
  }
97806
97837
 
97807
97838
  this.ChangeDayCount=function(count, option)
@@ -154160,7 +154191,7 @@ function ScrollBarBGChart()
154160
154191
 
154161
154192
 
154162
154193
 
154163
- var HQCHART_VERSION="1.1.15219";
154194
+ var HQCHART_VERSION="1.1.15222";
154164
154195
 
154165
154196
  function PrintHQChartVersion()
154166
154197
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.15219";
8
+ var HQCHART_VERSION="1.1.15222";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -97716,6 +97716,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
97716
97716
  this.Symbol=symbol;
97717
97717
  this.ResetDayOffset();
97718
97718
  this.ResetDataStatus();
97719
+ this.ClearMinuteData();
97719
97720
  this.ClearIndexPaint(); //清空指标
97720
97721
  this.ResetOverlaySymbolStatus();
97721
97722
  this.ReloadChartDrawPicture();
@@ -97723,6 +97724,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
97723
97724
  this.ClearStockCache();
97724
97725
  this.UnlockCorssCursor();
97725
97726
  this.Frame.ClearYCoordinateMaxMin();
97727
+
97726
97728
 
97727
97729
  if (option)
97728
97730
  {
@@ -97846,6 +97848,35 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
97846
97848
  this.AfterCloseData=null;
97847
97849
  this.MultiDayBeforeOpenData=null;
97848
97850
  this.MultiDayAfterCloseData=null;
97851
+
97852
+ this.ClearMainChartData();
97853
+ }
97854
+
97855
+ this.ClearMainChartData=function()
97856
+ {
97857
+ if (!IFrameSplitOperator.IsNonEmptyArray(this.ChartPaint)) return;
97858
+
97859
+ var chart=this.ChartPaint[0]; //价格线
97860
+ if (chart)
97861
+ {
97862
+ chart.Data=null;
97863
+ chart.BeforeOpenData=null;
97864
+ chart.AfterCloseData=null;
97865
+ chart.MultiDayBeforeOpenData=null;
97866
+ chart.MultiDayAfterCloseData=null;
97867
+ }
97868
+
97869
+ var chart=this.ChartPaint[1]; //均线
97870
+ if (chart)
97871
+ {
97872
+ chart.Data=null;
97873
+ }
97874
+
97875
+ var chart=this.ChartPaint[2]; //成交量
97876
+ if (chart)
97877
+ {
97878
+ chart.Data=null;
97879
+ }
97849
97880
  }
97850
97881
 
97851
97882
  this.ChangeDayCount=function(count, option)
@@ -166217,7 +166248,7 @@ function HQChartScriptWorker()
166217
166248
 
166218
166249
 
166219
166250
 
166220
- var HQCHART_VERSION="1.1.15219";
166251
+ var HQCHART_VERSION="1.1.15222";
166221
166252
 
166222
166253
  function PrintHQChartVersion()
166223
166254
  {