hqchart 1.1.13485 → 1.1.13487

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.
@@ -12238,8 +12238,12 @@ this.UIElement.ondblclick=function(e){_this51.UIOnDblClick(e);};this.UIElement.o
12238
12238
  this.UIElement.ontouchstart=function(e){_this51.OnTouchStart(e);};this.UIElement.ontouchmove=function(e){_this51.OnTouchMove(e);};this.UIElement.ontouchend=function(e){_this51.OnTouchEnd(e);};};this.Draw=function(){if(this.UIElement.width<=0||this.UIElement.height<=0)return;this.Canvas.clearRect(0,0,this.UIElement.width,this.UIElement.height);var pixelTatio=GetDevicePixelRatio();//获取设备的分辨率
12239
12239
  this.Canvas.lineWidth=pixelTatio;//手机端需要根据分辨率比调整线段宽度
12240
12240
  if(this.ChartSplashPaint&&this.ChartSplashPaint.IsEnableSplash){this.Frame.Draw({IsEnableSplash:this.ChartSplashPaint.IsEnableSplash});this.ChartSplashPaint.Draw();return;}this.Frame.Draw();this.Frame.DrawLogo();//框架内图形
12241
- for(var i=0;i<this.ChartPaint.length;++i){var item=this.ChartPaint[i];if(item.IsDrawFirst)item.Draw();}for(var i=0;i<this.ChartPaint.length;++i){var item=this.ChartPaint[i];if(!item.IsDrawFirst)item.Draw();}if(this.GlobalOption.FlashBGCount>0){this.DelayDraw(500);}};this.DelayDraw=function(frequency){var _this52=this;if(typeof this.FlashBGTimer=='number'){clearTimeout(this.FlashBGTimer);this.FlashBGTimer=null;}this.FlashBGTimer=setTimeout(function(){_this52.Draw();},frequency);};this.ResetReportStatus=function(){this.Data.XOffset=0;this.Data.YOffset=0;};this.ResetReportSelectStatus=function(){var chart=this.GetReportChart();if(chart){chart.SelectedRow=-1;chart.SelectedFixedRow=-1;}};this.ClearData=function(){this.SourceData.Data=[];this.Data.Data=[];this.BlockData=new _map2.default();};this.ResetSortStatus=function(){this.SortInfo.Field=-1;this.SortInfo.Sort=0;};//设置股票列表
12242
- this.SetSymbolList=function(arySymbol,option){this.ClearData();this.ResetReportStatus();this.ResetSortStatus();if(IFrameSplitOperator.IsNonEmptyArray(arySymbol)){for(var i=0;i<arySymbol.length;++i){this.Data.Data.push(arySymbol[i]);}}var chart=this.ChartPaint[0];if(chart)chart.Data=this.Data;this.Draw();};this.ChangeSymbol=function(symbol,option){var _this53=this;this.Symbol=symbol;this.ClearData();this.ResetReportStatus();this.ResetSortStatus();this.ResetReportSelectStatus();if(option){if(IFrameSplitOperator.IsNumber(option.TabSelected)){var chartTab=this.GetTabChart();if(chartTab)chartTab.SelectedTabIndex=option.TabSelected;}if(Array.isArray(option.FixedSymbol)){var chart=this.GetReportChart();if(chart){chart.FixedRowCount=0;this.FixedRowData.Type=1;this.FixedRowData.Symbol=[];var aryData=option.FixedSymbol;for(var i=0;i<aryData.length;++i){var item=aryData[i];this.FixedRowData.Symbol.push(item.Symbol);++chart.FixedRowCount;}this.SetSizeChange(true);}}if(option.SortInfo){var item=option.SortInfo;if(IFrameSplitOperator.IsNumber(item.Field))this.SortInfo.Field=item.Field;if(IFrameSplitOperator.IsNumber(item.Sort))this.SortInfo.Sort=item.Sort;}if(IFrameSplitOperator.IsBool(option.IsReloadStockList)){var requestOption={Callback:null};if(this.Symbol)requestOption.Callback=function(){_this53.RequestMemberListData();};this.MapStockData=new _map2.default();this.RequestStockListData(requestOption);return;}}this.RequestMemberListData();};this.RequestMemberListData=function(){//this.ChartSplashPaint.SetTitle(this.SplashTitle.MemberList);
12241
+ for(var i=0;i<this.ChartPaint.length;++i){var item=this.ChartPaint[i];if(item.IsDrawFirst)item.Draw();}for(var i=0;i<this.ChartPaint.length;++i){var item=this.ChartPaint[i];if(!item.IsDrawFirst)item.Draw();}if(this.GlobalOption.FlashBGCount>0){this.DelayDraw(500);}};this.DelayDraw=function(frequency){var _this52=this;if(typeof this.FlashBGTimer=='number'){clearTimeout(this.FlashBGTimer);this.FlashBGTimer=null;}this.FlashBGTimer=setTimeout(function(){_this52.Draw();},frequency);};this.ResetReportStatus=function(){this.Data.XOffset=0;this.Data.YOffset=0;};this.ResetReportSelectStatus=function(){var chart=this.GetReportChart();if(chart){chart.SelectedRow=-1;chart.SelectedFixedRow=-1;}};this.ClearData=function(){this.SourceData.Data=[];this.Data.Data=[];this.BlockData=new _map2.default();};this.ClearMapStockData=function(){this.MapStockData=new _map2.default();};this.ResetSortStatus=function(){this.SortInfo.Field=-1;this.SortInfo.Sort=0;};//设置股票列表
12242
+ this.SetSymbolList=function(arySymbol,option){this.ClearData();this.ResetReportStatus();this.ResetSortStatus();if(IFrameSplitOperator.IsNonEmptyArray(arySymbol)){for(var i=0;i<arySymbol.length;++i){this.Data.Data.push(arySymbol[i]);}}var chart=this.ChartPaint[0];if(chart)chart.Data=this.Data;this.Draw();};this.ChangeSymbol=function(symbol,option){var _this53=this;this.Symbol=symbol;this.ClearData();this.ResetReportStatus();this.ResetSortStatus();this.ResetReportSelectStatus();if(option){if(IFrameSplitOperator.IsNumber(option.TabSelected)){var chartTab=this.GetTabChart();if(chartTab)chartTab.SelectedTabIndex=option.TabSelected;}if(Array.isArray(option.FixedSymbol)){var chart=this.GetReportChart();if(chart){chart.FixedRowCount=0;this.FixedRowData.Type=1;this.FixedRowData.Symbol=[];var aryData=option.FixedSymbol;for(var i=0;i<aryData.length;++i){var item=aryData[i];this.FixedRowData.Symbol.push(item.Symbol);++chart.FixedRowCount;}this.SetSizeChange(true);}}if(option.SortInfo){var item=option.SortInfo;if(IFrameSplitOperator.IsNumber(item.Field))this.SortInfo.Field=item.Field;if(IFrameSplitOperator.IsNumber(item.Sort))this.SortInfo.Sort=item.Sort;}if(IFrameSplitOperator.IsBool(option.IsReloadStockList)){var requestOption={Callback:null};if(this.Symbol)requestOption.Callback=function(){_this53.RequestMemberListData();};this.MapStockData=new _map2.default();this.RequestStockListData(requestOption);return;}}this.RequestMemberListData();};//设置全部的数据
12243
+ this.SetFullData=function(data){this.ClearMapStockData();this.ClearData();this.ResetReportStatus();this.ResetSortStatus();this.ResetReportSelectStatus();//缓存所有数据
12244
+ var arySymbol=[];if(IFrameSplitOperator.IsNonEmptyArray(data.data)){//0=证券代码 1=股票名称
12245
+ for(var i=0;i<data.data.length;++i){var item=data.data[i];var symbol=item[0];var stock=null;if(this.MapStockData.has(symbol)){stock=this.MapStockData.get(symbol);}else{stock=new HQReportItem();stock.OriginalSymbol=symbol;this.MapStockData.set(symbol,stock);}stock.Symbol=this.GetSymbolNoSuffix(symbol);stock.Name=item[1];this.ReadStockJsonData(stock,item);arySymbol.push(symbol);}}//设置显示数据
12246
+ if(IFrameSplitOperator.IsNonEmptyArray(arySymbol)){for(var i=0;i<arySymbol.length;++i){this.Data.Data.push(arySymbol[i]);this.SourceData.Data.push(arySymbol[i]);}}this.Draw();};this.RequestMemberListData=function(){//this.ChartSplashPaint.SetTitle(this.SplashTitle.MemberList);
12243
12247
  //this.ChartSplashPaint.EnableSplash(true);
12244
12248
  //this.Draw();
12245
12249
  var self=this;if(this.NetworkFilter){var obj={Name:'JSReportChartContainer::RequestMemberListData',//类名::
@@ -13209,7 +13213,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
13209
13213
  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);};}/********************************************************************************
13210
13214
  * 版本信息输出
13211
13215
  *
13212
- */var HQCHART_VERSION="1.1.13484";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();//把给外界调用的方法暴露出来
13216
+ */var HQCHART_VERSION="1.1.13486";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();//把给外界调用的方法暴露出来
13213
13217
  exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
13214
13218
  // BaseIndex:BaseIndex,
13215
13219
  // ChartLine:ChartLine,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hqchart",
3
- "version": "1.1.13485",
3
+ "version": "1.1.13487",
4
4
  "description": "HQChart - H5, 微信小程序 沪深/港股/数字货币/期货/美股 K线图(kline),走势图,缩放,拖拽,十字光标,画图工具,截图,筹码图. 分析家语法,通达信语法,(麦语法),第3方数据对接",
5
5
  "main": "lib/main.js",
6
6
  "scripts": {
@@ -618,6 +618,11 @@ function JSReportChartContainer(uielement)
618
618
  this.BlockData=new Map();
619
619
  }
620
620
 
621
+ this.ClearMapStockData=function()
622
+ {
623
+ this.MapStockData=new Map();
624
+ }
625
+
621
626
  this.ResetSortStatus=function()
622
627
  {
623
628
  this.SortInfo.Field=-1;
@@ -702,6 +707,57 @@ function JSReportChartContainer(uielement)
702
707
  this.RequestMemberListData();
703
708
  }
704
709
 
710
+ //设置全部的数据
711
+ this.SetFullData=function(data)
712
+ {
713
+ this.ClearMapStockData();
714
+ this.ClearData();
715
+ this.ResetReportStatus();
716
+ this.ResetSortStatus();
717
+ this.ResetReportSelectStatus();
718
+
719
+ //缓存所有数据
720
+ var arySymbol=[];
721
+ if (IFrameSplitOperator.IsNonEmptyArray(data.data))
722
+ {
723
+ //0=证券代码 1=股票名称
724
+ for(var i=0;i<data.data.length;++i)
725
+ {
726
+ var item=data.data[i];
727
+ var symbol=item[0];
728
+ var stock=null;
729
+ if (this.MapStockData.has(symbol))
730
+ {
731
+ stock=this.MapStockData.get(symbol);
732
+ }
733
+ else
734
+ {
735
+ stock=new HQReportItem();
736
+ stock.OriginalSymbol=symbol;
737
+ this.MapStockData.set(symbol, stock);
738
+ }
739
+
740
+ stock.Symbol=this.GetSymbolNoSuffix(symbol);
741
+ stock.Name=item[1];
742
+ this.ReadStockJsonData(stock, item);
743
+
744
+ arySymbol.push(symbol);
745
+ }
746
+ }
747
+
748
+ //设置显示数据
749
+ if (IFrameSplitOperator.IsNonEmptyArray(arySymbol))
750
+ {
751
+ for(var i=0;i<arySymbol.length;++i)
752
+ {
753
+ this.Data.Data.push(arySymbol[i]);
754
+ this.SourceData.Data.push(arySymbol[i]);
755
+ }
756
+ }
757
+
758
+ this.Draw();
759
+ }
760
+
705
761
  this.RequestMemberListData=function()
706
762
  {
707
763
  //this.ChartSplashPaint.SetTitle(this.SplashTitle.MemberList);
@@ -125644,6 +125644,11 @@ function JSReportChartContainer(uielement)
125644
125644
  this.BlockData=new Map();
125645
125645
  }
125646
125646
 
125647
+ this.ClearMapStockData=function()
125648
+ {
125649
+ this.MapStockData=new Map();
125650
+ }
125651
+
125647
125652
  this.ResetSortStatus=function()
125648
125653
  {
125649
125654
  this.SortInfo.Field=-1;
@@ -125728,6 +125733,57 @@ function JSReportChartContainer(uielement)
125728
125733
  this.RequestMemberListData();
125729
125734
  }
125730
125735
 
125736
+ //设置全部的数据
125737
+ this.SetFullData=function(data)
125738
+ {
125739
+ this.ClearMapStockData();
125740
+ this.ClearData();
125741
+ this.ResetReportStatus();
125742
+ this.ResetSortStatus();
125743
+ this.ResetReportSelectStatus();
125744
+
125745
+ //缓存所有数据
125746
+ var arySymbol=[];
125747
+ if (IFrameSplitOperator.IsNonEmptyArray(data.data))
125748
+ {
125749
+ //0=证券代码 1=股票名称
125750
+ for(var i=0;i<data.data.length;++i)
125751
+ {
125752
+ var item=data.data[i];
125753
+ var symbol=item[0];
125754
+ var stock=null;
125755
+ if (this.MapStockData.has(symbol))
125756
+ {
125757
+ stock=this.MapStockData.get(symbol);
125758
+ }
125759
+ else
125760
+ {
125761
+ stock=new HQReportItem();
125762
+ stock.OriginalSymbol=symbol;
125763
+ this.MapStockData.set(symbol, stock);
125764
+ }
125765
+
125766
+ stock.Symbol=this.GetSymbolNoSuffix(symbol);
125767
+ stock.Name=item[1];
125768
+ this.ReadStockJsonData(stock, item);
125769
+
125770
+ arySymbol.push(symbol);
125771
+ }
125772
+ }
125773
+
125774
+ //设置显示数据
125775
+ if (IFrameSplitOperator.IsNonEmptyArray(arySymbol))
125776
+ {
125777
+ for(var i=0;i<arySymbol.length;++i)
125778
+ {
125779
+ this.Data.Data.push(arySymbol[i]);
125780
+ this.SourceData.Data.push(arySymbol[i]);
125781
+ }
125782
+ }
125783
+
125784
+ this.Draw();
125785
+ }
125786
+
125731
125787
  this.RequestMemberListData=function()
125732
125788
  {
125733
125789
  //this.ChartSplashPaint.SetTitle(this.SplashTitle.MemberList);
@@ -134352,7 +134408,7 @@ function ScrollBarBGChart()
134352
134408
 
134353
134409
 
134354
134410
 
134355
- var HQCHART_VERSION="1.1.13484";
134411
+ var HQCHART_VERSION="1.1.13486";
134356
134412
 
134357
134413
  function PrintHQChartVersion()
134358
134414
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.13484";
8
+ var HQCHART_VERSION="1.1.13486";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -125688,6 +125688,11 @@ function JSReportChartContainer(uielement)
125688
125688
  this.BlockData=new Map();
125689
125689
  }
125690
125690
 
125691
+ this.ClearMapStockData=function()
125692
+ {
125693
+ this.MapStockData=new Map();
125694
+ }
125695
+
125691
125696
  this.ResetSortStatus=function()
125692
125697
  {
125693
125698
  this.SortInfo.Field=-1;
@@ -125772,6 +125777,57 @@ function JSReportChartContainer(uielement)
125772
125777
  this.RequestMemberListData();
125773
125778
  }
125774
125779
 
125780
+ //设置全部的数据
125781
+ this.SetFullData=function(data)
125782
+ {
125783
+ this.ClearMapStockData();
125784
+ this.ClearData();
125785
+ this.ResetReportStatus();
125786
+ this.ResetSortStatus();
125787
+ this.ResetReportSelectStatus();
125788
+
125789
+ //缓存所有数据
125790
+ var arySymbol=[];
125791
+ if (IFrameSplitOperator.IsNonEmptyArray(data.data))
125792
+ {
125793
+ //0=证券代码 1=股票名称
125794
+ for(var i=0;i<data.data.length;++i)
125795
+ {
125796
+ var item=data.data[i];
125797
+ var symbol=item[0];
125798
+ var stock=null;
125799
+ if (this.MapStockData.has(symbol))
125800
+ {
125801
+ stock=this.MapStockData.get(symbol);
125802
+ }
125803
+ else
125804
+ {
125805
+ stock=new HQReportItem();
125806
+ stock.OriginalSymbol=symbol;
125807
+ this.MapStockData.set(symbol, stock);
125808
+ }
125809
+
125810
+ stock.Symbol=this.GetSymbolNoSuffix(symbol);
125811
+ stock.Name=item[1];
125812
+ this.ReadStockJsonData(stock, item);
125813
+
125814
+ arySymbol.push(symbol);
125815
+ }
125816
+ }
125817
+
125818
+ //设置显示数据
125819
+ if (IFrameSplitOperator.IsNonEmptyArray(arySymbol))
125820
+ {
125821
+ for(var i=0;i<arySymbol.length;++i)
125822
+ {
125823
+ this.Data.Data.push(arySymbol[i]);
125824
+ this.SourceData.Data.push(arySymbol[i]);
125825
+ }
125826
+ }
125827
+
125828
+ this.Draw();
125829
+ }
125830
+
125775
125831
  this.RequestMemberListData=function()
125776
125832
  {
125777
125833
  //this.ChartSplashPaint.SetTitle(this.SplashTitle.MemberList);
@@ -138293,7 +138349,7 @@ function HQChartScriptWorker()
138293
138349
 
138294
138350
 
138295
138351
 
138296
- var HQCHART_VERSION="1.1.13484";
138352
+ var HQCHART_VERSION="1.1.13486";
138297
138353
 
138298
138354
  function PrintHQChartVersion()
138299
138355
  {