hqchart 1.1.13644 → 1.1.13652

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.
@@ -3981,7 +3981,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
3981
3981
  //改参数div
3982
3982
  this.ModifyIndexDialog=new ModifyIndexDialog(divElement);
3983
3983
  this.ChangeIndexDialog=new ChangeIndexDialog(divElement);
3984
- this.MinuteDialog=new MinuteDialog(divElement);
3985
3984
 
3986
3985
  //额外的画布
3987
3986
  this.MapExtraCanvasElement=new Map(); //key=画布名字, value={ Element:, Canvas:}
@@ -4218,7 +4217,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
4218
4217
  //创建改参数div
4219
4218
  chart.ModifyIndexDialog=this.ModifyIndexDialog;
4220
4219
  chart.ChangeIndexDialog=this.ChangeIndexDialog;
4221
- chart.MinuteDialog=this.MinuteDialog;
4222
4220
 
4223
4221
  var pixelRatio=GetDevicePixelRatio();
4224
4222
 
@@ -4265,7 +4263,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
4265
4263
  if (option.KLine.MaxReqeustDataCount>0) chart.MaxRequestDataCount=option.KLine.MaxReqeustDataCount; //兼容老版本
4266
4264
  if (option.KLine.MaxRequestDataCount>0) chart.MaxRequestDataCount=option.KLine.MaxRequestDataCount;
4267
4265
  if (option.KLine.Info && option.KLine.Info.length>0) chart.SetKLineInfo(option.KLine.Info,false);
4268
- if (option.KLine.KLineDoubleClick==false) chart.MinuteDialog=this.MinuteDialog=null;
4269
4266
  if (IFrameSplitOperator.IsBool(item.IsShowTooltip)) chart.IsShowTooltip=item.IsShowTooltip;
4270
4267
  if (IFrameSplitOperator.IsBool(item.IsShowKLineDivTooltip)) chart.IsShowKLineDivTooltip=item.IsShowKLineDivTooltip;
4271
4268
  if (option.KLine.MaxRequestMinuteDayCount>0) chart.MaxRequestMinuteDayCount=option.KLine.MaxRequestMinuteDayCount;
@@ -4665,7 +4662,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
4665
4662
  //创建改参数div
4666
4663
  chart.ModifyIndexDialog=this.ModifyIndexDialog;
4667
4664
  chart.ChangeIndexDialog=this.ChangeIndexDialog;
4668
- chart.MinuteDialog=this.MinuteDialog;
4669
4665
 
4670
4666
  //右键菜单
4671
4667
  if (IFrameSplitOperator.IsBool(option.IsShowRightMenu)) chart.IsShowRightMenu=option.IsShowRightMenu;
@@ -4677,7 +4673,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
4677
4673
  if (option.KLine.Period>=0) chart.Period=option.KLine.Period;
4678
4674
  if (option.KLine.MaxRequestDataCount>0) chart.MaxRequestDataCount=option.KLine.MaxRequestDataCount;
4679
4675
  if (option.KLine.Info && option.KLine.Info.length>0) chart.SetKLineInfo(option.KLine.Info,false);
4680
- if (option.KLine.KLineDoubleClick==false) chart.MinuteDialog=this.MinuteDialog=null;
4681
4676
  if (option.KLine.PageSize>0) chart.PageSize=option.KLine.PageSize;
4682
4677
  if (option.KLine.IsShowTooltip==false) chart.IsShowTooltip=false;
4683
4678
  }
@@ -5273,6 +5268,8 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
5273
5268
 
5274
5269
  }
5275
5270
 
5271
+ /*废弃
5272
+ //统一全部使用 MinuteChartContainer
5276
5273
  //历史分钟走势图
5277
5274
  this.CreateHistoryMinuteChartContainer=function(option)
5278
5275
  {
@@ -5334,6 +5331,7 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
5334
5331
 
5335
5332
  return chart;
5336
5333
  }
5334
+ */
5337
5335
 
5338
5336
  this.CreateKLineTrainChartContainer=function(option)
5339
5337
  {
@@ -5610,9 +5608,6 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
5610
5608
  case "迷你分钟走势图":
5611
5609
  chart=this.CreateMinMinuteChartContainer(option);
5612
5610
  break;
5613
- case "历史分钟走势图":
5614
- chart=this.CreateHistoryMinuteChartContainer(option);
5615
- break;
5616
5611
  case 'K线训练':
5617
5612
  case 'K线训练横屏':
5618
5613
  case "简单K线训练":
@@ -11838,6 +11833,8 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
11838
11833
 
11839
11834
  if (option.Update && this.Update) this.Update( {UpdateCursorIndexType:2} ); //是否立即更新并重绘
11840
11835
  else if (option.Draw==true) this.Draw(); //是否立即重绘
11836
+
11837
+ if (this.PopMinuteChart) this.PopMinuteChart.ReloadResource(option);
11841
11838
  }
11842
11839
 
11843
11840
  this.ReloadBorder=function(option) //根据页面缩放调整对应边框的尺长
@@ -70919,6 +70916,12 @@ function JSChartResource()
70919
70916
  this.TooltipBGColor="rgb(255, 255, 255)"; //背景色
70920
70917
  this.TooltipAlpha=0.92; //透明度
70921
70918
 
70919
+ this.PopMinuteChart=
70920
+ {
70921
+ BGColor:"rgba(250,250,250,0.95)",
70922
+ BorderColor:"rgb(0,0,0)",
70923
+ }
70924
+
70922
70925
  this.SelectRectBGColor="rgba(1,130,212,0.06)"; //背景色
70923
70926
  // this.SelectRectAlpha=0.06; //透明度
70924
70927
 
@@ -72302,6 +72305,13 @@ function JSChartResource()
72302
72305
  }
72303
72306
  }
72304
72307
 
72308
+ if (style.PopMinuteChart)
72309
+ {
72310
+ var item=style.PopMinuteChart;
72311
+ if (item.BGColor) this.PopMinuteChart.BGColor=item.BGColor;
72312
+ if (item.BorderColor) this.PopMinuteChart.BorderColor=item.BorderColor;
72313
+ }
72314
+
72305
72315
  if (style.DefaultTextColor) this.DefaultTextColor = style.DefaultTextColor;
72306
72316
  if (style.DefaultTextFont) this.DefaultTextFont = style.DefaultTextFont;
72307
72317
  if (style.TitleFont) this.TitleFont = style.TitleFont;
@@ -74260,7 +74270,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
74260
74270
  this.StockHistoryDayApiUrl= g_JSChartResource.Domain+'/API/StockHistoryDay'; //股票历史数据
74261
74271
  this.TickApiUrl=g_JSChartResource.Domain+'/API/StockDetail'; //当天分笔数据
74262
74272
 
74263
- this.MinuteDialog; //双击历史K线 弹出分钟走势图
74273
+ this.PopMinuteChart=null; //双击历史K线 弹出分钟走势图
74264
74274
 
74265
74275
  this.BeforeBindMainData=null; //function(funcName) 在BindMainData() 调用前回调用
74266
74276
  this.AfterBindMainData=null; //function(funcName) 在BindMainData() 调用前后调用
@@ -75192,10 +75202,42 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
75192
75202
 
75193
75203
  if (bRegisterKeydown) this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e); }, true); //键盘消息
75194
75204
  if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
75205
+
75206
+ this.InitalPopMinuteChart(option);
75195
75207
  }
75196
75208
 
75197
-
75209
+ this.InitalPopMinuteChart=function(option)
75210
+ {
75211
+ if (!option || !option.KLine) return false;
75212
+ var item=option.KLine;
75213
+ if (item.KLineDoubleClick===true)
75214
+ {
75215
+ this.PopMinuteChart=new JSPopMinuteChart();
75216
+ this.PopMinuteChart.Inital(this);
75217
+ return true;
75218
+ }
75219
+
75220
+ return false;
75221
+ }
75222
+
75223
+ this.ShowMinuteChartDialog=function(data, x,y)
75224
+ {
75225
+ if (!this.PopMinuteChart) return;
75226
+ if (!data.Tooltip || !data.Chart) return;
75198
75227
 
75228
+ var rtClient=this.UIElement.getBoundingClientRect();
75229
+ var rtScroll=GetScrollPosition();
75230
+
75231
+ x+=(rtClient.left+rtScroll.Left);
75232
+ y+=(rtClient.top+rtScroll.Top);
75233
+
75234
+ var date=data.Tooltip.Data.Date;
75235
+ var symbol=data.Chart.Symbol;
75236
+
75237
+ this.PopMinuteChart.Show({ Date:date, Symbol:symbol, Data:data.Tooltip.Data }, x,y);
75238
+ }
75239
+
75240
+
75199
75241
  this.OnCustomKeyDown=function(keyID, e) //自定义键盘事件
75200
75242
  {
75201
75243
  if (keyID==37 && e.ctrlKey) //Ctrl+Left
@@ -80538,16 +80580,13 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
80538
80580
  }
80539
80581
  }
80540
80582
  }
80541
-
80542
- var event=null;
80543
- if (this.mapEvent.has(JSCHART_EVENT_ID.DBCLICK_KLINE)) event=this.mapEvent.get(JSCHART_EVENT_ID.DBCLICK_KLINE);
80544
-
80545
- if (!this.MinuteDialog && !event) return;
80546
80583
 
80547
80584
  var tooltip=new TooltipData();
80548
80585
  if (!this.PtInChartPaintTooltip(x,y,tooltip)) return;
80549
80586
  if (!tooltip.Data) return;
80550
80587
 
80588
+ var event=null;
80589
+ if (this.mapEvent.has(JSCHART_EVENT_ID.DBCLICK_KLINE)) event=this.mapEvent.get(JSCHART_EVENT_ID.DBCLICK_KLINE);
80551
80590
  if (event)
80552
80591
  {
80553
80592
  if (this.ClickChartTimer!=null) //清空单击定时器
@@ -80556,15 +80595,15 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
80556
80595
  this.ClickChartTimer=null;
80557
80596
  }
80558
80597
 
80559
- var data={ Tooltip:tooltip, Stock:{Symbol:this.Symbol, Name:this.Name }, X:e.clientX, Y:e.clientY };
80598
+ var data={ Tooltip:tooltip, Stock:{Symbol:this.Symbol, Name:this.Name }, X:e.clientX, Y:e.clientY, PreventDefault:false };
80560
80599
  event.Callback(event,data,this);
80600
+ if (data.PreventDefault) return;
80561
80601
  }
80562
80602
 
80563
- if (this.MinuteDialog)
80564
- {
80565
- e.data={Chart:this,Tooltip:tooltip};
80566
- this.MinuteDialog.DoModal(e);
80567
- }
80603
+ //内置弹分时图
80604
+ if (!this.PopMinuteChart) return;
80605
+
80606
+ this.ShowMinuteChartDialog({ Chart:this,Tooltip:tooltip, e:e }, x,y);
80568
80607
  }
80569
80608
 
80570
80609
  this.CancelAutoUpdate=function() //关闭停止更新
@@ -83561,6 +83600,17 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
83561
83600
  [
83562
83601
  { Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog()},
83563
83602
  { Name:"十字光标线", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_CORSS_LINE_ID, Args:[!bShowCorss]}, Checked:bShowCorss },
83603
+ { Name:JSPopMenu.SEPARATOR_LINE_NAME },
83604
+
83605
+ {
83606
+ Name:"语言设置",
83607
+ SubMenu:
83608
+ [
83609
+ { Name:"中文", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_LANGUAGE_ID, Args:["CN"]}, Checked:this.LanguageID==JSCHART_LANGUAGE_ID.LANGUAGE_CHINESE_ID },
83610
+ { Name:"英语", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_LANGUAGE_ID, Args:["EN"]}, Checked:this.LanguageID==JSCHART_LANGUAGE_ID.LANGUAGE_ENGLISH_ID },
83611
+ { Name:"繁体", Data:{ ID:JSCHART_MENU_ID.CMD_CHANGE_LANGUAGE_ID, Args:["TC"]}, Checked:this.LanguageID==JSCHART_LANGUAGE_ID.LANGUAGE_TRADITIONAL_CHINESE_ID },
83612
+ ]
83613
+ },
83564
83614
 
83565
83615
  {
83566
83616
  Name:"区间选择样式",
@@ -87955,6 +88005,7 @@ MinuteChartContainer.JosnDataToAfterCloseDataArray=function(data)
87955
88005
  /*
87956
88006
  历史分钟走势图
87957
88007
  */
88008
+ /* 废弃 统一使用 MinuteChartContainer
87958
88009
  function HistoryMinuteChartContainer(uielement)
87959
88010
  {
87960
88011
  this.newMethod=MinuteChartContainer; //派生
@@ -87999,17 +88050,6 @@ function HistoryMinuteChartContainer(uielement)
87999
88050
  this.TitlePaint[0].Frame=this.Frame.SubFrame[0].Frame;
88000
88051
  this.TitlePaint[0].Canvas=this.Canvas;
88001
88052
  this.TitlePaint[0].IsShowDate=true;
88002
-
88003
- /*
88004
- //主图叠加画法
88005
- var paint=new ChartOverlayKLine();
88006
- paint.Canvas=this.Canvas;
88007
- paint.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder;
88008
- paint.ChartFrame=this.Frame.SubFrame[0].Frame;
88009
- paint.Name="Overlay-KLine";
88010
- this.OverlayChartPaint[0]=paint;
88011
- */
88012
-
88013
88053
  }
88014
88054
 
88015
88055
  //设置交易日期
@@ -88155,6 +88195,7 @@ HistoryMinuteChartContainer.JsonDataToMinuteData=function(data)
88155
88195
 
88156
88196
  return aryMinuteData;
88157
88197
  }
88198
+ */
88158
88199
 
88159
88200
  /////////////////////////////////////////////////////////////////////////////
88160
88201
  // 自定义指数
@@ -92736,142 +92777,6 @@ function KLineInfoTooltip(divElement)
92736
92777
  }
92737
92778
  }
92738
92779
 
92739
- //历史K线上双击 弹出分钟走势图框
92740
- function MinuteDialog(divElement)
92741
- {
92742
- this.newMethod=IDivDialog; //派生
92743
- this.newMethod(divElement);
92744
- delete this.newMethod;
92745
-
92746
-
92747
- this.JSChart=null;
92748
- this.Height=500;
92749
- this.Width=600;
92750
- this.Symbol;
92751
- this.TradeDate;
92752
- this.HistoryData;
92753
-
92754
- //显示窗口
92755
- this.Show=function(left,top,width,height)
92756
- {
92757
- var div=document.getElementById(this.ID);
92758
- if (!div) return false;
92759
-
92760
- var findDiv=div.getElementsByClassName("minute-hqchart");
92761
- if (!findDiv || findDiv.length!=1) return false;
92762
- var klineDiv=findDiv[0];
92763
-
92764
- if (IFrameSplitOperator.IsNumber(width)) div.style.width=width+"px";
92765
- if (IFrameSplitOperator.IsNumber(height)) div.style.height=height+"px";
92766
- if (IFrameSplitOperator.IsNumber(left)) div.style.left=left+"px";
92767
- if (IFrameSplitOperator.IsNumber(top)) div.style.top=top+"px";
92768
-
92769
- div.style.display='block';
92770
-
92771
- var klineWdith=klineDiv.offsetWidth;
92772
- var klineTop=klineDiv.offsetTop;
92773
- klineDiv.style.width=klineWdith+"px";
92774
- klineDiv.style.height=(height-klineTop-5)+"px";
92775
- }
92776
-
92777
- this.Create=function()
92778
- {
92779
- this.ID=Guid();
92780
- var div=document.createElement('div');
92781
- div.className='jchart-kline-minute-box';
92782
- div.id=this.ID;
92783
- var hqchartID=Guid();
92784
- div.innerHTML=`<div><div class='minute-dialog-title'><span></span><strong class='close-munite icon iconfont icon-close'></strong></div><div class='minute-hqchart' id='${hqchartID}' ></div></div>`;
92785
- div.style.width=this.Height+'px';
92786
- div.style.height=this.Width+'px';
92787
-
92788
- this.DivElement.appendChild(div);
92789
- this.JSChart=JSChart.Init(document.getElementById(hqchartID));
92790
-
92791
- var option=
92792
- {
92793
- Type:'历史分钟走势图',
92794
- Symbol:this.Symbol, //股票代码
92795
- IsAutoUpdate:false, //是自动更新数据
92796
-
92797
- IsShowRightMenu:false, //右键菜单
92798
- HistoryMinute: { TradeDate:this.TradeDate, IsShowName:false, IsShowDate:false } //显示的交易日期
92799
- };
92800
-
92801
- this.JSChart.SetOption(option);
92802
- }
92803
-
92804
- this.BindClose=function(chart)
92805
- {
92806
- //关闭按钮
92807
- $("#"+this.ID+" .close-munite").click(
92808
- {
92809
- Chart:chart
92810
- },
92811
- function(event)
92812
- {
92813
- var chart=event.data.Chart;
92814
- chart.MinuteDialog.Hide();
92815
- }
92816
- );
92817
- }
92818
-
92819
- this.DoModal=function(event)
92820
- {
92821
- this.UpColor=g_JSChartResource.UpTextColor;
92822
- this.DownColor=g_JSChartResource.DownTextColor;
92823
- this.UnchagneColor=g_JSChartResource.UnchagneTextColor;
92824
-
92825
- var chart=event.data.Chart;
92826
- var tooltip=event.data.Tooltip;
92827
- var dialog=chart.MinuteDialog;
92828
-
92829
- dialog.Symbol=chart.Symbol;
92830
- dialog.TradeDate=tooltip.Data.Date;
92831
-
92832
- if(!dialog) return;
92833
- if (dialog.ID==null)
92834
- {
92835
- dialog.Create(); //第1次 需要创建div
92836
- }
92837
- else
92838
- {
92839
- dialog.JSChart.JSChartContainer.TradeDate=dialog.TradeDate;
92840
- dialog.JSChart.ChangeSymbol(this.Symbol);
92841
- }
92842
-
92843
- var left=event.clientX;
92844
- var top=event.clientY+10;
92845
-
92846
- var pixelTatio=GetDevicePixelRatio();
92847
- dialog.Show(500/pixelTatio,100/pixelTatio,600,500);
92848
- dialog.JSChart.OnSize();
92849
-
92850
- this.BindClose(chart);
92851
-
92852
- this.GetColor=function(price,yclse)
92853
- {
92854
- if(price>yclse) return this.UpColor;
92855
- else if (price<yclse) return this.DownColor;
92856
- else return this.UnchagneColor;
92857
- }
92858
-
92859
- var strName = event.data.Chart.Name;
92860
- var strData=event.data.Tooltip.Data;
92861
- var date=new Date(parseInt(strData.Date/10000),(strData.Date/100%100-1),strData.Date%100);
92862
- var strDate = strData.Date.toString();
92863
- var strNewDate=strDate.substring(0,4)+"-"+strDate.substring(4,6)+"-"+strDate.substring(6,8); //转换时间格式
92864
- var str = "<span>"+strName+"</span>"+"<span>"+strNewDate+"</span>&nbsp;"+
92865
- "<span style='color:"+this.GetColor(strData.Open,strData.YClose)+";'>开:"+strData.Open.toFixed(2)+"</span>"+
92866
- "<span style='color:"+this.GetColor(strData.High,strData.YClose)+";'>高:"+strData.High.toFixed(2)+"</span>"+
92867
- "<span style='color:"+this.GetColor(strData.Low,strData.YClose)+";'>低:"+strData.Low.toFixed(2)+"</span>"+
92868
- "<span style='color:"+this.GetColor(strData.Close,strData.YClose)+";'>收:"+strData.Close.toFixed(2)+"</span>"+
92869
- "<span style='color:"+this.VolColor+";'>量:"+IFrameSplitOperator.FormatValueString(strData.Vol,2)+"</span>"+
92870
- "<span style='color:"+this.AmountColor+";'>额:"+IFrameSplitOperator.FormatValueString(strData.Amount,2)+"</span>";
92871
- $(".minute-dialog-title span").html(str);
92872
- }
92873
- }
92874
-
92875
92780
  function MinuteSelectRectDialog(divElement)
92876
92781
  {
92877
92782
  this.newMethod=IDivDialog; //派生
@@ -124093,6 +123998,12 @@ function GetBlackStyle()
124093
123998
  Night: { Color:"rgb(153,153,153)", BGColor:"rgb(51,51,51)", BorderColor:"rgb(51,51,51)", Margin:{ Left:5, Top:2, Bottom:2, Right:5 } },
124094
123999
  }
124095
124000
  },
124001
+
124002
+ PopMinuteChart:
124003
+ {
124004
+ BGColor:"rgba(0,0,0,0.95)",
124005
+ BorderColor:"rgb(230,230,230)",
124006
+ },
124096
124007
 
124097
124008
 
124098
124009
  DefaultTextColor: "rgb(101,104,112)",
@@ -137459,7 +137370,7 @@ function ScrollBarBGChart()
137459
137370
 
137460
137371
 
137461
137372
 
137462
- var HQCHART_VERSION="1.1.13643";
137373
+ var HQCHART_VERSION="1.1.13651";
137463
137374
 
137464
137375
  function PrintHQChartVersion()
137465
137376
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.13643";
8
+ var HQCHART_VERSION="1.1.13651";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -48701,6 +48701,11 @@ HQData.NetworkFilter=function(data, callback)
48701
48701
  HQData.RequestMinuteDaysData(data, callback);
48702
48702
  break;
48703
48703
 
48704
+ case "MinuteChartContainer::RequestPopMinuteData": //弹出分时图数据
48705
+ //HQChart使用教程29-走势图如何对接第3方数据2-最新分时数据 格式跟这个一样
48706
+ HQData.RequestPopMinuteData(data, callback);
48707
+ break;
48708
+
48704
48709
  //HQChart使用教程30-K线图如何对接第3方数据1
48705
48710
  case 'KLineChartContainer::RequestHistoryData': //日线全量数据下载
48706
48711
  //HQChart使用教程30-K线图如何对接第3方数据2-日K数据
@@ -48840,6 +48845,58 @@ HQData.RequestMinuteData=function(data, callback)
48840
48845
  }, 50);
48841
48846
  }
48842
48847
 
48848
+ HQData.RequestPopMinuteData=function(data, callback)
48849
+ {
48850
+ data.PreventDefault=true;
48851
+ var symbol=data.Request.Data.symbol[0]; //请求的股票代码
48852
+ var date=data.Request.Data.date;
48853
+ var callcation=data.Request.Data.callcation; //集合竞价
48854
+ console.log(`[HQData::RequestPopMinuteData] Symbol=${symbol} Date=${date}`);
48855
+
48856
+ setTimeout(()=>{
48857
+ var srcStock=MINUTE_1DAY_DATA.stock[0];
48858
+ var stockItem={ date:date, minute:[], yclose:srcStock.yclose, symbol:srcStock.symbol, name:srcStock.symbol, IsHistoryMinute:true };
48859
+ if (callcation.Before)
48860
+ {
48861
+ var before=
48862
+ [
48863
+ //[交易时间, 价格,成交量, 成交金额, 日期(可选,YYYYMMDD)],
48864
+ [915, srcStock.yclose,0,0],
48865
+ [916, srcStock.yclose+0.01,0,0],
48866
+ [917, srcStock.yclose+0.03,0,0],
48867
+ [918, srcStock.yclose+0.02,0,0],
48868
+ [919, srcStock.yclose+0.02,0,0],
48869
+ [920, srcStock.yclose+0.01,0,0],
48870
+ [921, srcStock.yclose,0,0],
48871
+ [922, srcStock.yclose-0.02,0,0],
48872
+ [923, srcStock.yclose-0.03,0,0],
48873
+ [924, srcStock.yclose,0,0],
48874
+ [925, srcStock.yclose,0,0],
48875
+ ];
48876
+
48877
+ var beforeinfo={ totalcount:11, ver:1.0 };
48878
+
48879
+ stockItem.before=before;
48880
+ stockItem.beforeinfo=beforeinfo;
48881
+ }
48882
+
48883
+ for(var i=0;i<srcStock.minute.length;++i)
48884
+ {
48885
+ var item=srcStock.minute[i];
48886
+ var newItem=CloneData(item);
48887
+ newItem.date=date;
48888
+
48889
+ stockItem.minute.push(newItem);
48890
+ }
48891
+
48892
+ var hqchartData={code:0, stock:[stockItem] };
48893
+
48894
+
48895
+ callback(hqchartData);
48896
+ }, 50);
48897
+ }
48898
+
48899
+
48843
48900
  HQData.RequestMinuteDaysData=function(data, callback)
48844
48901
  {
48845
48902
  data.PreventDefault=true;