hqchart 1.1.13640 → 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) //根据页面缩放调整对应边框的尺长
@@ -19110,6 +19107,7 @@ function OverlayMinuteFrame()
19110
19107
  this.IsShow=true; //坐标是否显示
19111
19108
  this.IsShareY=false; //使用和主框架公用Y轴
19112
19109
  this.IsCalculateYMaxMin=true; //是否计算Y最大最小值
19110
+ this.IsShowMainFrame=0; //是否显示在主框架坐标上 1=左边 2=右边
19113
19111
 
19114
19112
  this.Draw=function()
19115
19113
  {
@@ -60645,6 +60643,7 @@ IChartDrawPicture.ArrayDrawPricture=
60645
60643
  { Name:"InfoLine", ClassName:"ChartInfoLine", Create:function() { return new ChartInfoLine(); }},
60646
60644
  { Name:"TrendAngle", ClassName:"ChartTrendAngle", Create:function() { return new ChartTrendAngle(); }},
60647
60645
  { Name:"ArrowMarker", ClassName:"ChartArrowMarker", Create:function() { return new ChartArrowMarker(); } },
60646
+ { Name:"BarsPattern", ClassName:"ChartBarsPattern", Create:function() { return new ChartBarsPattern(); } },
60648
60647
  ];
60649
60648
 
60650
60649
  IChartDrawPicture.MapIonFont=new Map(
@@ -70542,6 +70541,22 @@ function ChartInfoLine()
70542
70541
  }
70543
70542
  }
70544
70543
 
70544
+ function ChartBarsPattern()
70545
+ {
70546
+ this.newMethod=IChartDrawPicture; //派生
70547
+ this.newMethod();
70548
+ delete this.newMethod;
70549
+
70550
+ this.ClassName='ChartBarsPattern';
70551
+ this.PointCount=2;
70552
+ this.KData=null; //K线数据 []
70553
+
70554
+ this.Draw=function()
70555
+ {
70556
+
70557
+ }
70558
+ }
70559
+
70545
70560
 
70546
70561
  function ChartDrawStorage()
70547
70562
  {
@@ -70901,6 +70916,12 @@ function JSChartResource()
70901
70916
  this.TooltipBGColor="rgb(255, 255, 255)"; //背景色
70902
70917
  this.TooltipAlpha=0.92; //透明度
70903
70918
 
70919
+ this.PopMinuteChart=
70920
+ {
70921
+ BGColor:"rgba(250,250,250,0.95)",
70922
+ BorderColor:"rgb(0,0,0)",
70923
+ }
70924
+
70904
70925
  this.SelectRectBGColor="rgba(1,130,212,0.06)"; //背景色
70905
70926
  // this.SelectRectAlpha=0.06; //透明度
70906
70927
 
@@ -72284,6 +72305,13 @@ function JSChartResource()
72284
72305
  }
72285
72306
  }
72286
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
+
72287
72315
  if (style.DefaultTextColor) this.DefaultTextColor = style.DefaultTextColor;
72288
72316
  if (style.DefaultTextFont) this.DefaultTextFont = style.DefaultTextFont;
72289
72317
  if (style.TitleFont) this.TitleFont = style.TitleFont;
@@ -74242,7 +74270,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
74242
74270
  this.StockHistoryDayApiUrl= g_JSChartResource.Domain+'/API/StockHistoryDay'; //股票历史数据
74243
74271
  this.TickApiUrl=g_JSChartResource.Domain+'/API/StockDetail'; //当天分笔数据
74244
74272
 
74245
- this.MinuteDialog; //双击历史K线 弹出分钟走势图
74273
+ this.PopMinuteChart=null; //双击历史K线 弹出分钟走势图
74246
74274
 
74247
74275
  this.BeforeBindMainData=null; //function(funcName) 在BindMainData() 调用前回调用
74248
74276
  this.AfterBindMainData=null; //function(funcName) 在BindMainData() 调用前后调用
@@ -75174,10 +75202,42 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
75174
75202
 
75175
75203
  if (bRegisterKeydown) this.UIElement.addEventListener("keydown", (e)=>{ this.OnKeyDown(e); }, true); //键盘消息
75176
75204
  if (bRegisterWheel) this.UIElement.addEventListener("wheel", (e)=>{ this.OnWheel(e); }, true); //上下滚动消息
75205
+
75206
+ this.InitalPopMinuteChart(option);
75177
75207
  }
75178
75208
 
75179
-
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;
75180
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
+
75181
75241
  this.OnCustomKeyDown=function(keyID, e) //自定义键盘事件
75182
75242
  {
75183
75243
  if (keyID==37 && e.ctrlKey) //Ctrl+Left
@@ -80520,16 +80580,13 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
80520
80580
  }
80521
80581
  }
80522
80582
  }
80523
-
80524
- var event=null;
80525
- if (this.mapEvent.has(JSCHART_EVENT_ID.DBCLICK_KLINE)) event=this.mapEvent.get(JSCHART_EVENT_ID.DBCLICK_KLINE);
80526
-
80527
- if (!this.MinuteDialog && !event) return;
80528
80583
 
80529
80584
  var tooltip=new TooltipData();
80530
80585
  if (!this.PtInChartPaintTooltip(x,y,tooltip)) return;
80531
80586
  if (!tooltip.Data) return;
80532
80587
 
80588
+ var event=null;
80589
+ if (this.mapEvent.has(JSCHART_EVENT_ID.DBCLICK_KLINE)) event=this.mapEvent.get(JSCHART_EVENT_ID.DBCLICK_KLINE);
80533
80590
  if (event)
80534
80591
  {
80535
80592
  if (this.ClickChartTimer!=null) //清空单击定时器
@@ -80538,15 +80595,15 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
80538
80595
  this.ClickChartTimer=null;
80539
80596
  }
80540
80597
 
80541
- 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 };
80542
80599
  event.Callback(event,data,this);
80600
+ if (data.PreventDefault) return;
80543
80601
  }
80544
80602
 
80545
- if (this.MinuteDialog)
80546
- {
80547
- e.data={Chart:this,Tooltip:tooltip};
80548
- this.MinuteDialog.DoModal(e);
80549
- }
80603
+ //内置弹分时图
80604
+ if (!this.PopMinuteChart) return;
80605
+
80606
+ this.ShowMinuteChartDialog({ Chart:this,Tooltip:tooltip, e:e }, x,y);
80550
80607
  }
80551
80608
 
80552
80609
  this.CancelAutoUpdate=function() //关闭停止更新
@@ -82098,7 +82155,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
82098
82155
  {
82099
82156
  this.ShowCallAuctionData({ Left:false, Right:false, MultiDay:{ Left:false, Right:false } });
82100
82157
  }
82101
- if (button.ID==JSCHART_BUTTON_ID.CLOSE_OVERLAY_INDEX)
82158
+ else if (button.ID==JSCHART_BUTTON_ID.CLOSE_OVERLAY_INDEX)
82102
82159
  {
82103
82160
  var id=button.IndexID;
82104
82161
  if (id) this.DeleteOverlayWindowsIndex(id);
@@ -83543,6 +83600,17 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
83543
83600
  [
83544
83601
  { Name:"画图工具", Data:{ ID:JSCHART_MENU_ID.CMD_SHOW_DRAWTOOL_ID, Args:[]}, Checked:this.IsShowDrawToolDialog()},
83545
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
+ },
83546
83614
 
83547
83615
  {
83548
83616
  Name:"区间选择样式",
@@ -86598,10 +86666,10 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
86598
86666
  frame.MainFrame=subFrame.Frame;
86599
86667
  frame.ChartBorder=subFrame.Frame.ChartBorder;
86600
86668
  frame.GlobalOption=this.GlobalOption;
86601
- if (obj.ShowRightText===true) frame.IsShow=true;
86602
- else if (obj.ShowRightText===false) frame.IsShow=false;
86603
- if (obj.IsShareY===true) frame.IsShareY=true;
86669
+ if (IFrameSplitOperator.IsBool(obj.ShowRightText)) frame.IsShow=obj.ShowRightText;
86670
+ if (IFrameSplitOperator.IsBool(obj.IsShareY)) frame.IsShareY=obj.IsShareY;
86604
86671
  if (IFrameSplitOperator.IsBool(obj.IsCalculateYMaxMin)) frame.IsCalculateYMaxMin=obj.IsCalculateYMaxMin; //是否计算Y最大最小值
86672
+ if (IFrameSplitOperator.IsNumber(obj.IsShowMainFrame)) frame.IsShowMainFrame=obj.IsShowMainFrame;
86605
86673
 
86606
86674
  frame.YSplitOperator=new FrameSplitY();
86607
86675
  frame.YSplitOperator.LanguageID=this.LanguageID;
@@ -87937,6 +88005,7 @@ MinuteChartContainer.JosnDataToAfterCloseDataArray=function(data)
87937
88005
  /*
87938
88006
  历史分钟走势图
87939
88007
  */
88008
+ /* 废弃 统一使用 MinuteChartContainer
87940
88009
  function HistoryMinuteChartContainer(uielement)
87941
88010
  {
87942
88011
  this.newMethod=MinuteChartContainer; //派生
@@ -87981,17 +88050,6 @@ function HistoryMinuteChartContainer(uielement)
87981
88050
  this.TitlePaint[0].Frame=this.Frame.SubFrame[0].Frame;
87982
88051
  this.TitlePaint[0].Canvas=this.Canvas;
87983
88052
  this.TitlePaint[0].IsShowDate=true;
87984
-
87985
- /*
87986
- //主图叠加画法
87987
- var paint=new ChartOverlayKLine();
87988
- paint.Canvas=this.Canvas;
87989
- paint.ChartBorder=this.Frame.SubFrame[0].Frame.ChartBorder;
87990
- paint.ChartFrame=this.Frame.SubFrame[0].Frame;
87991
- paint.Name="Overlay-KLine";
87992
- this.OverlayChartPaint[0]=paint;
87993
- */
87994
-
87995
88053
  }
87996
88054
 
87997
88055
  //设置交易日期
@@ -88137,6 +88195,7 @@ HistoryMinuteChartContainer.JsonDataToMinuteData=function(data)
88137
88195
 
88138
88196
  return aryMinuteData;
88139
88197
  }
88198
+ */
88140
88199
 
88141
88200
  /////////////////////////////////////////////////////////////////////////////
88142
88201
  // 自定义指数
@@ -92718,142 +92777,6 @@ function KLineInfoTooltip(divElement)
92718
92777
  }
92719
92778
  }
92720
92779
 
92721
- //历史K线上双击 弹出分钟走势图框
92722
- function MinuteDialog(divElement)
92723
- {
92724
- this.newMethod=IDivDialog; //派生
92725
- this.newMethod(divElement);
92726
- delete this.newMethod;
92727
-
92728
-
92729
- this.JSChart=null;
92730
- this.Height=500;
92731
- this.Width=600;
92732
- this.Symbol;
92733
- this.TradeDate;
92734
- this.HistoryData;
92735
-
92736
- //显示窗口
92737
- this.Show=function(left,top,width,height)
92738
- {
92739
- var div=document.getElementById(this.ID);
92740
- if (!div) return false;
92741
-
92742
- var findDiv=div.getElementsByClassName("minute-hqchart");
92743
- if (!findDiv || findDiv.length!=1) return false;
92744
- var klineDiv=findDiv[0];
92745
-
92746
- if (IFrameSplitOperator.IsNumber(width)) div.style.width=width+"px";
92747
- if (IFrameSplitOperator.IsNumber(height)) div.style.height=height+"px";
92748
- if (IFrameSplitOperator.IsNumber(left)) div.style.left=left+"px";
92749
- if (IFrameSplitOperator.IsNumber(top)) div.style.top=top+"px";
92750
-
92751
- div.style.display='block';
92752
-
92753
- var klineWdith=klineDiv.offsetWidth;
92754
- var klineTop=klineDiv.offsetTop;
92755
- klineDiv.style.width=klineWdith+"px";
92756
- klineDiv.style.height=(height-klineTop-5)+"px";
92757
- }
92758
-
92759
- this.Create=function()
92760
- {
92761
- this.ID=Guid();
92762
- var div=document.createElement('div');
92763
- div.className='jchart-kline-minute-box';
92764
- div.id=this.ID;
92765
- var hqchartID=Guid();
92766
- 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>`;
92767
- div.style.width=this.Height+'px';
92768
- div.style.height=this.Width+'px';
92769
-
92770
- this.DivElement.appendChild(div);
92771
- this.JSChart=JSChart.Init(document.getElementById(hqchartID));
92772
-
92773
- var option=
92774
- {
92775
- Type:'历史分钟走势图',
92776
- Symbol:this.Symbol, //股票代码
92777
- IsAutoUpdate:false, //是自动更新数据
92778
-
92779
- IsShowRightMenu:false, //右键菜单
92780
- HistoryMinute: { TradeDate:this.TradeDate, IsShowName:false, IsShowDate:false } //显示的交易日期
92781
- };
92782
-
92783
- this.JSChart.SetOption(option);
92784
- }
92785
-
92786
- this.BindClose=function(chart)
92787
- {
92788
- //关闭按钮
92789
- $("#"+this.ID+" .close-munite").click(
92790
- {
92791
- Chart:chart
92792
- },
92793
- function(event)
92794
- {
92795
- var chart=event.data.Chart;
92796
- chart.MinuteDialog.Hide();
92797
- }
92798
- );
92799
- }
92800
-
92801
- this.DoModal=function(event)
92802
- {
92803
- this.UpColor=g_JSChartResource.UpTextColor;
92804
- this.DownColor=g_JSChartResource.DownTextColor;
92805
- this.UnchagneColor=g_JSChartResource.UnchagneTextColor;
92806
-
92807
- var chart=event.data.Chart;
92808
- var tooltip=event.data.Tooltip;
92809
- var dialog=chart.MinuteDialog;
92810
-
92811
- dialog.Symbol=chart.Symbol;
92812
- dialog.TradeDate=tooltip.Data.Date;
92813
-
92814
- if(!dialog) return;
92815
- if (dialog.ID==null)
92816
- {
92817
- dialog.Create(); //第1次 需要创建div
92818
- }
92819
- else
92820
- {
92821
- dialog.JSChart.JSChartContainer.TradeDate=dialog.TradeDate;
92822
- dialog.JSChart.ChangeSymbol(this.Symbol);
92823
- }
92824
-
92825
- var left=event.clientX;
92826
- var top=event.clientY+10;
92827
-
92828
- var pixelTatio=GetDevicePixelRatio();
92829
- dialog.Show(500/pixelTatio,100/pixelTatio,600,500);
92830
- dialog.JSChart.OnSize();
92831
-
92832
- this.BindClose(chart);
92833
-
92834
- this.GetColor=function(price,yclse)
92835
- {
92836
- if(price>yclse) return this.UpColor;
92837
- else if (price<yclse) return this.DownColor;
92838
- else return this.UnchagneColor;
92839
- }
92840
-
92841
- var strName = event.data.Chart.Name;
92842
- var strData=event.data.Tooltip.Data;
92843
- var date=new Date(parseInt(strData.Date/10000),(strData.Date/100%100-1),strData.Date%100);
92844
- var strDate = strData.Date.toString();
92845
- var strNewDate=strDate.substring(0,4)+"-"+strDate.substring(4,6)+"-"+strDate.substring(6,8); //转换时间格式
92846
- var str = "<span>"+strName+"</span>"+"<span>"+strNewDate+"</span>&nbsp;"+
92847
- "<span style='color:"+this.GetColor(strData.Open,strData.YClose)+";'>开:"+strData.Open.toFixed(2)+"</span>"+
92848
- "<span style='color:"+this.GetColor(strData.High,strData.YClose)+";'>高:"+strData.High.toFixed(2)+"</span>"+
92849
- "<span style='color:"+this.GetColor(strData.Low,strData.YClose)+";'>低:"+strData.Low.toFixed(2)+"</span>"+
92850
- "<span style='color:"+this.GetColor(strData.Close,strData.YClose)+";'>收:"+strData.Close.toFixed(2)+"</span>"+
92851
- "<span style='color:"+this.VolColor+";'>量:"+IFrameSplitOperator.FormatValueString(strData.Vol,2)+"</span>"+
92852
- "<span style='color:"+this.AmountColor+";'>额:"+IFrameSplitOperator.FormatValueString(strData.Amount,2)+"</span>";
92853
- $(".minute-dialog-title span").html(str);
92854
- }
92855
- }
92856
-
92857
92780
  function MinuteSelectRectDialog(divElement)
92858
92781
  {
92859
92782
  this.newMethod=IDivDialog; //派生
@@ -124075,6 +123998,12 @@ function GetBlackStyle()
124075
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 } },
124076
123999
  }
124077
124000
  },
124001
+
124002
+ PopMinuteChart:
124003
+ {
124004
+ BGColor:"rgba(0,0,0,0.95)",
124005
+ BorderColor:"rgb(230,230,230)",
124006
+ },
124078
124007
 
124079
124008
 
124080
124009
  DefaultTextColor: "rgb(101,104,112)",
@@ -137441,7 +137370,7 @@ function ScrollBarBGChart()
137441
137370
 
137442
137371
 
137443
137372
 
137444
- var HQCHART_VERSION="1.1.13639";
137373
+ var HQCHART_VERSION="1.1.13651";
137445
137374
 
137446
137375
  function PrintHQChartVersion()
137447
137376
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.13639";
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数据
@@ -48805,39 +48810,93 @@ HQData.RequestMinuteData=function(data, callback)
48805
48810
  var symbol=data.Request.Data.symbol[0]; //请求的股票代码
48806
48811
  var callcation=data.Request.Data.callcation; //集合竞价
48807
48812
  console.log(`[HQData::RequestMinuteData] Symbol=${symbol}`);
48813
+
48814
+ setTimeout(()=>{
48815
+ var srcStock=MINUTE_1DAY_DATA.stock[0];
48816
+ var stockItem={ date:srcStock.date, minute:srcStock.minute, yclose:srcStock.yclose, symbol:srcStock.symbol, name:srcStock.name };
48817
+ if (callcation.Before)
48818
+ {
48819
+ var before=
48820
+ [
48821
+ //[交易时间, 价格,成交量, 成交金额, 日期(可选,YYYYMMDD)],
48822
+ [915, srcStock.yclose,0,0],
48823
+ [916, srcStock.yclose+0.01,0,0],
48824
+ [917, srcStock.yclose+0.03,0,0],
48825
+ [918, srcStock.yclose+0.02,0,0],
48826
+ [919, srcStock.yclose+0.02,0,0],
48827
+ [920, srcStock.yclose+0.01,0,0],
48828
+ [921, srcStock.yclose,0,0],
48829
+ [922, srcStock.yclose-0.02,0,0],
48830
+ [923, srcStock.yclose-0.03,0,0],
48831
+ [924, srcStock.yclose,0,0],
48832
+ [925, srcStock.yclose,0,0],
48833
+ ];
48834
+
48835
+ var beforeinfo={ totalcount:11, ver:1.0 };
48836
+
48837
+ stockItem.before=before;
48838
+ stockItem.beforeinfo=beforeinfo;
48839
+ }
48840
+
48841
+ var hqchartData={code:0, stock:[stockItem] };
48808
48842
 
48809
- var srcStock=MINUTE_1DAY_DATA.stock[0];
48810
- var stockItem={ date:srcStock.date, minute:srcStock.minute, yclose:srcStock.yclose, symbol:srcStock.symbol, name:srcStock.name };
48811
- if (callcation.Before)
48812
- {
48813
- var before=
48814
- [
48815
- //[交易时间, 价格,成交量, 成交金额, 日期(可选,YYYYMMDD)],
48816
- [915, srcStock.yclose,0,0],
48817
- [916, srcStock.yclose+0.01,0,0],
48818
- [917, srcStock.yclose+0.03,0,0],
48819
- [918, srcStock.yclose+0.02,0,0],
48820
- [919, srcStock.yclose+0.02,0,0],
48821
- [920, srcStock.yclose+0.01,0,0],
48822
- [921, srcStock.yclose,0,0],
48823
- [922, srcStock.yclose-0.02,0,0],
48824
- [923, srcStock.yclose-0.03,0,0],
48825
- [924, srcStock.yclose,0,0],
48826
- [925, srcStock.yclose,0,0],
48827
- ];
48828
48843
 
48829
- var beforeinfo={ totalcount:11, ver:1.0 };
48844
+ callback(hqchartData);
48845
+ }, 50);
48846
+ }
48830
48847
 
48831
- stockItem.before=before;
48832
- stockItem.beforeinfo=beforeinfo;
48833
- }
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}`);
48834
48855
 
48835
- var hqchartData={code:0, stock:[stockItem] };
48836
-
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
+ ];
48837
48876
 
48838
- callback(hqchartData);
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);
48839
48897
  }
48840
48898
 
48899
+
48841
48900
  HQData.RequestMinuteDaysData=function(data, callback)
48842
48901
  {
48843
48902
  data.PreventDefault=true;