hqchart 1.1.13771 → 1.1.13776

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.
@@ -6705,6 +6705,8 @@ var JSCHART_MENU_ID=
6705
6705
  CMD_SHOW_CORSS_LINE_ID:39, //显示十字光标线
6706
6706
  CMD_ENABLE_POP_MINUTE_CHART_ID:40, //双击弹分时图
6707
6707
 
6708
+ CMD_CHANGE_INFO_POSITION_ID:41, //修改信息地雷位置
6709
+
6708
6710
 
6709
6711
  CMD_REPORT_CHANGE_BLOCK_ID:60, //报价列表 切换板块ID
6710
6712
  CMD_REPORT_COLUMN_SORT_ID:61, //报价列表 表头排序 Arg[列序号, 排序方向]
@@ -13532,6 +13534,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
13532
13534
  }
13533
13535
  }
13534
13536
  break;
13537
+ case JSCHART_MENU_ID.CMD_CHANGE_INFO_POSITION_ID:
13538
+ if (param==null) return false;
13539
+ var klineChart=this.ChartPaint[0];
13540
+ if (!klineChart) return false;
13541
+ klineChart.InfoPosition=param;
13542
+ this.Draw();
13543
+ break;
13535
13544
  }
13536
13545
  }
13537
13546
 
@@ -13942,6 +13951,9 @@ function CoordinateInfo()
13942
13951
  //百分比 { PriceColor:, PercentageColor:, SplitColor:, Font: }
13943
13952
  //自定义刻度 { Custom:{ Position: 1=强制内部 }}
13944
13953
  this.AreaData; //区域: { Start:, End:, BGColor:, Position:[0=左, 1=右] }
13954
+
13955
+ //不在当前屏范围
13956
+ //this.OutRange={ BGColor:"", TextColor:, BorderColor: TopYOffset:, BottomYOffset: }
13945
13957
  }
13946
13958
 
13947
13959
 
@@ -16126,11 +16138,117 @@ function AverageWidthFrame()
16126
16138
  return { MaxWidth:width, Text:aryText };
16127
16139
  }
16128
16140
 
16141
+ this.DrawOutRangeCustomItem=function(item, mapTextRect)
16142
+ {
16143
+ if (this.IsHScreen===true) return;
16144
+ if (!this.IsShow && !this.IsYDrawMainFrame) return;
16145
+ if (!item.Message[1] && !item.Message[0]) return;
16146
+ if (!item.OutRange) return;
16147
+ var position=0; //1=top 2=bottom
16148
+ if (item.Value>this.HorizontalMax) position=1;
16149
+ else if (item.Value<this.HorizontalMin) position=2;
16150
+ else return;
16151
+
16152
+ this.Canvas.save();
16153
+ var outRange=item.OutRange;
16154
+ var border=this.GetBorder();
16155
+ var left=border.Left;
16156
+ var right=border.Right;
16157
+ var bottom=border.Bottom;
16158
+ var top=border.Top;
16159
+ var borderRight = this.ChartBorder.Right;
16160
+ var borderLeft = this.ChartBorder.Left;
16161
+ var titleHeight = this.ChartBorder.TitleHeight;
16162
+
16163
+ if (this.IsHScreen)
16164
+ {
16165
+ borderLeft=this.ChartBorder.Top;
16166
+ borderRight=this.ChartBorder.Bottom;
16167
+ top=border.Top;
16168
+ bottom=border.Bottom;
16169
+ }
16170
+
16171
+ var pixelTatio = GetDevicePixelRatio();
16172
+ var defaultTextHeight=18*pixelTatio;
16173
+ var textHeight=defaultTextHeight;
16174
+
16175
+ if (item.Message[0] && borderLeft>=10)
16176
+ {
16177
+
16178
+ }
16179
+ else if (item.Message[1] && borderRight>=10)
16180
+ {
16181
+ if (item.Font != null) this.Canvas.font = item.Font;
16182
+ var textInfo=this.GetCustomItemTextInfo(item,false,pixelTatio);
16183
+ var textWidth=textInfo.MaxWidth;
16184
+ var itemRight=right+textWidth;
16185
+ var fontHeight=this.GetFontHeight();
16186
+ var textHeight=fontHeight>defaultTextHeight? fontHeight:defaultTextHeight;
16187
+ this.Canvas.textAlign = "left";
16188
+ this.Canvas.textBaseline = "middle";
16189
+
16190
+ var yText=null;
16191
+ if (position==1)
16192
+ {
16193
+ yText=border.TopEx;
16194
+ if (IFrameSplitOperator.IsNumber(outRange.TopYOffset)) yText+=outRange.TopYOffset;
16195
+ }
16196
+ else if (position==2)
16197
+ {
16198
+ yText=border.BottomEx+textHeight;
16199
+ if (IFrameSplitOperator.IsNumber(outRange.BottomYOffset)) yText+=outRange.BottomYOffset;
16200
+ }
16201
+
16202
+ for(var i=0;i<textInfo.Text.length;++i)
16203
+ {
16204
+ var itemText=textInfo.Text[i];
16205
+ var rtBG={ Right:itemRight, Width:itemText.Width, Bottom:yText, Height:textHeight };
16206
+ rtBG.Top=rtBG.Bottom-rtBG.Height;
16207
+ rtBG.Left=rtBG.Right-rtBG.Width;
16208
+
16209
+ if (item.ExtendLine && item.ExtendLine[1]) //右侧延长线
16210
+ {
16211
+ var exLine=item.ExtendLine[1];
16212
+ if (IFrameSplitOperator.IsNumber(exLine.Width))
16213
+ {
16214
+ var yLine=rtBG.Bottom;
16215
+ if (position==2) yLine=rtBG.Top;
16216
+ var lineType=item.LineType;
16217
+ if (IFrameSplitOperator.IsNumber(outRange.ExtendLine.Type)) lineType=outRange.ExtendLine.Type;
16218
+ if (i==0) this.DrawLine(right,right+exLine.Width,yLine,item.LineColor,lineType,item);
16219
+
16220
+ rtBG.Left+=exLine.Width;
16221
+ rtBG.Right+=exLine.Width;
16222
+ }
16223
+ }
16224
+
16225
+ this.Canvas.fillStyle=outRange.BGColor;
16226
+ this.Canvas.fillRect(rtBG.Left,rtBG.Top,rtBG.Width,rtBG.Height);
16227
+ if (outRange.Border && outRange.Border.Color)
16228
+ {
16229
+ if (IFrameSplitOperator.IsNonEmptyArray(outRange.Border.LineDash))
16230
+ this.Canvas.setLineDash(outRange.Border.LineDash); //虚线
16231
+
16232
+ this.Canvas.strokeStyle = outRange.Border.Color;
16233
+ this.Canvas.strokeRect(ToFixedPoint(rtBG.Left), ToFixedPoint(rtBG.Top), ToFixedRect(rtBG.Width), ToFixedRect(rtBG.Height));
16234
+ }
16235
+
16236
+ this.Canvas.fillStyle = outRange.TextColor;
16237
+ this.Canvas.fillText(itemText.Text, rtBG.Left + 1*pixelTatio, rtBG.Top+rtBG.Height/2+1*pixelTatio);
16238
+
16239
+ yText+=textHeight+1;
16240
+ }
16241
+ }
16242
+
16243
+ this.Canvas.restore();
16244
+ }
16245
+
16129
16246
  this.DrawCustomItem=function(item, mapTextRect) //显示自定义Y刻度
16130
16247
  {
16131
16248
  if (!item.Message[1] && !item.Message[0]) return;
16132
16249
  if (item.Value>this.HorizontalMax || item.Value<this.HorizontalMin)
16133
16250
  {
16251
+ this.DrawOutRangeCustomItem(item, mapTextRect);
16134
16252
  this.SendDrawCountDownEvent( { IsShow:false } );
16135
16253
  return;
16136
16254
  }
@@ -20983,6 +21101,7 @@ function OverlayKLineFrame()
20983
21101
  if (!item.Message[1] && !item.Message[0]) return;
20984
21102
  if (item.Value>this.HorizontalMax || item.Value<this.HorizontalMin)
20985
21103
  {
21104
+ //this.DrawOutRangeCustomItem(item, mapTextRect);
20986
21105
  this.SendDrawCountDownEvent( { IsShow:false } );
20987
21106
  return;
20988
21107
  }
@@ -80541,6 +80660,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
80541
80660
  var klineType=klineChart.DrawType;
80542
80661
  var bThinAKBar=klineChart.IsThinAKBar;
80543
80662
  var priceGap=klineChart.PriceGap; //缺口配置信息
80663
+ var infoPosition=klineChart.InfoPosition;
80544
80664
  var coordinateType=null, yCoordinateType=null; //坐标类型
80545
80665
  var mainFrame=null;
80546
80666
  if (this.Frame.SubFrame[0] && this.Frame.SubFrame[0].Frame) mainFrame=this.Frame.SubFrame[0].Frame;
@@ -80650,6 +80770,16 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
80650
80770
  { Name:"大宗交易", Data:{ ID: JSCHART_MENU_ID.CMD_CHANGE_KLINE_INFO_ID, Args:["大宗交易", !aryKLineInfo.includes("BlockTrading")]}, Checked:aryKLineInfo.includes("BlockTrading") },
80651
80771
  { Name:"龙虎榜", Data:{ ID: JSCHART_MENU_ID.CMD_CHANGE_KLINE_INFO_ID, Args:["龙虎榜", !aryKLineInfo.includes("TradeDetail")]}, Checked:aryKLineInfo.includes("TradeDetail") },
80652
80772
  { Name:"互动易", Data:{ ID: JSCHART_MENU_ID.CMD_CHANGE_KLINE_INFO_ID, Args:["互动易", !aryKLineInfo.includes("InvestorInfo")]}, Checked:aryKLineInfo.includes("InvestorInfo") },
80773
+ { Name:JSPopMenu.SEPARATOR_LINE_NAME },
80774
+ {
80775
+ Name:"显示位置",
80776
+ SubMenu:
80777
+ [
80778
+ { Name:"底部", Data:{ ID: JSCHART_MENU_ID.CMD_CHANGE_INFO_POSITION_ID, Args:[1]}, Checked:infoPosition===1 },
80779
+ { Name:"K线上", Data:{ ID: JSCHART_MENU_ID.CMD_CHANGE_INFO_POSITION_ID, Args:[0]}, Checked:infoPosition===0 },
80780
+ ]
80781
+ },
80782
+
80653
80783
  ]
80654
80784
  },
80655
80785
  {
@@ -92297,56 +92427,29 @@ function PforecastInfo()
92297
92427
 
92298
92428
  if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
92299
92429
 
92300
- //请求数据
92301
- JSNetwork.HttpRequest({
92302
- url: url,
92303
- data:
92304
- {
92305
- "field": ["pforecast.type","pforecast.reportdate","fweek"],
92306
- "condition":
92307
- [
92308
- {"item":["pforecast.reportdate","int32","gte",this.StartDate]}
92309
- ],
92310
- "symbol": [param.HQChart.Symbol],
92311
- "start":0,
92312
- "end":this.MaxRequestDataCount,
92313
- },
92314
- type:"post",
92315
- dataType: "json",
92316
- async:true,
92317
- success: function (recvData)
92318
- {
92319
- self.RecvData(recvData,param);
92320
- }
92321
- });
92322
-
92430
+ console.warn("[PforecastInfo::RequestData] NetworkFilter error.");
92323
92431
  return true;
92324
92432
  }
92325
92433
 
92326
92434
  this.RecvData=function(recvData,param)
92327
92435
  {
92328
- if (recvData.stock.length!=1) return;
92329
- if (recvData.stock[0].stockday.length<=0) return;
92436
+ if (!IFrameSplitOperator.IsNonEmptyArray(recvData.report)) return;
92330
92437
 
92331
- for(var i in recvData.stock[0].stockday)
92438
+ for(var i=0; i<recvData.report.length; ++i)
92332
92439
  {
92333
- var item=recvData.stock[0].stockday[i];
92334
- if (item.pforecast.length>0)
92440
+ var item=recvData.report[i];
92441
+ var infoData=new KLineInfoData();
92442
+ infoData.Date= item.date;
92443
+ infoData.Title=item.title;
92444
+ infoData.InfoType=KLINE_INFO_TYPE.PFORECAST;
92445
+ infoData.ExtendData={ Type:item.title, ReportDate:item.reportdate}
92446
+ if(item.fweek) //未来周涨幅
92335
92447
  {
92336
- var dataItem=item.pforecast[0];
92337
- var infoData=new KLineInfoData();
92338
- infoData.Date= item.date;
92339
- infoData.Title=dataItem.type;
92340
- infoData.InfoType=KLINE_INFO_TYPE.PFORECAST;
92341
- infoData.ExtendData={ Type:dataItem.type, ReportDate:dataItem.reportdate}
92342
- if(item.fweek) //未来周涨幅
92343
- {
92344
- infoData.ExtendData.FWeek={};
92345
- if (item.fweek.week1!=null) infoData.ExtendData.FWeek.Week1=item.fweek.week1;
92346
- if (item.fweek.week4!=null) infoData.ExtendData.FWeek.Week4=item.fweek.week4;
92347
- }
92348
- this.Data.push(infoData);
92448
+ infoData.ExtendData.FWeek={};
92449
+ if (item.fweek.week1!=null) infoData.ExtendData.FWeek.Week1=item.fweek.week1;
92450
+ if (item.fweek.week4!=null) infoData.ExtendData.FWeek.Week4=item.fweek.week4;
92349
92451
  }
92452
+ this.Data.push(infoData);
92350
92453
  }
92351
92454
 
92352
92455
  param.HQChart.UpdataChartInfo();
@@ -92378,34 +92481,15 @@ function ResearchInfo()
92378
92481
 
92379
92482
  if (this.NetworkFilter(hqChart, obj)) return; //已被上层替换,不调用默认的网络请求
92380
92483
 
92381
- //请求数据
92382
- JSNetwork.HttpRequest({
92383
- url: url,
92384
- data:
92385
- {
92386
- "filed": ["releasedate","researchdate","level","symbol","id",'type'],
92387
- "querydate":{"StartDate":this.StartDate,"EndDate":this.GetToday()},
92388
- "symbol": [param.HQChart.Symbol],
92389
- "start":0,
92390
- "end":this.MaxRequestDataCount,
92391
- },
92392
- type:"post",
92393
- dataType: "json",
92394
- async:true,
92395
- success: function (recvData)
92396
- {
92397
- self.RecvData(recvData,param);
92398
- }
92399
- });
92400
-
92484
+ console.warn("[ResearchInfo::RequestData] NetworkFilter error.");
92401
92485
  return true;
92402
92486
  }
92403
92487
 
92404
92488
  this.RecvData=function(recvData,param)
92405
92489
  {
92406
- if (recvData.list.length<=0) return;
92490
+ if (!IFrameSplitOperator.IsNonEmptyArray(recvData.list)) return;
92407
92491
 
92408
- for(var i in recvData.list)
92492
+ for(var i=0;i<recvData.list.length; ++i)
92409
92493
  {
92410
92494
  var item=recvData.list[i];
92411
92495
  var infoData=new KLineInfoData();
@@ -93299,203 +93383,6 @@ function ChangeIndexDialog(divElement)
93299
93383
  }
93300
93384
  }
93301
93385
 
93302
- //信息地理tooltip
93303
- function KLineInfoTooltip(divElement)
93304
- {
93305
- this.newMethod=IDivDialog; //派生
93306
- this.newMethod(divElement);
93307
- delete this.newMethod;
93308
-
93309
- this.UpColor=g_JSChartResource.UpTextColor;
93310
- this.DownColor=g_JSChartResource.DownTextColor;
93311
- this.UnchagneColor=g_JSChartResource.UnchagneTextColor;
93312
-
93313
- this.Create=function()
93314
- {
93315
- this.ID=Guid();
93316
-
93317
- var div=document.createElement('div');
93318
- div.className='jchart-klineinfo-tooltip';
93319
- div.id=this.ID;
93320
- div.innerHTML="<div class='title-length'></div>";
93321
- this.DivElement.appendChild(div);
93322
- }
93323
-
93324
-
93325
- this.BindInfoList=function(infoType,infoList)
93326
- {
93327
- var strBox="<div class='total-list'>共"+infoList.length+"条</div>";
93328
- var strText=[];
93329
- for(var i in infoList)
93330
- {
93331
- var item=infoList[i];
93332
- var strOld=item.Date;
93333
- if(infoType==KLINE_INFO_TYPE.PFORECAST)
93334
- {
93335
- var reportDate=item.ExtendData.ReportDate;
93336
- var year=parseInt(reportDate/10000); //年份
93337
- var day=reportDate%10000; //比较 这个去掉年份的日期
93338
- var reportType;
93339
- if(day == 1231){
93340
- reportType = "年报"
93341
- }else if(day == 331){
93342
- reportType = "一季度报"
93343
- }else if(day == 630){
93344
- reportType = "半年度报"
93345
- }else if(day == 930){
93346
- reportType = "三季度报"
93347
- }
93348
-
93349
- var weekData="";
93350
- if (item.ExtendData.FWeek)
93351
- {
93352
- if (item.ExtendData.FWeek.Week1!=null) weekData+="一周后涨幅:<i class='increase' style='color:"+this.GetColor(item.ExtendData.FWeek.Week1.toFixed(2))+"'>"+ item.ExtendData.FWeek.Week1.toFixed(2)+"%</i>";
93353
- if (item.ExtendData.FWeek.Week4!=null) weekData+="&nbsp;四周后涨幅:<i class='increase' style='color:"+this.GetColor(item.ExtendData.FWeek.Week4.toFixed(2))+"'>"+ item.ExtendData.FWeek.Week4.toFixed(2)+"%</i>";
93354
- if (weekData.length>0) weekData="<br/>&nbsp;&nbsp;<i class='prorecast-week'>"+weekData+"</i>";
93355
- }
93356
- var strDate=item.Date.toString();
93357
- var strNew=strDate.substring(0,4)+"-"+strDate.substring(4,6)+"-"+strDate.substring(6,8); //转换时间格式
93358
- strText+="<span>"+strNew+"&nbsp;&nbsp;"+year+reportType+item.Title+"&nbsp;"+weekData+"</span>";
93359
-
93360
- }
93361
- else if (infoType==KLINE_INFO_TYPE.RESEARCH) //调研单独处理
93362
- {
93363
- var levels=item.ExtendData.Level;
93364
- var recPerson=[];
93365
- if(levels.length==0){
93366
- recPerson = "<i>无</i>"
93367
- }else{
93368
- for(var j in levels)
93369
- {
93370
- if(levels[j]==0){
93371
- recPerson+="<i style='color:#00a0e9'>证券代表&nbsp;&nbsp;&nbsp;</i>";
93372
- }else if(levels[j]==1){
93373
- recPerson+="<i>董秘&nbsp;&nbsp;&nbsp;</i>";
93374
- }else if(levels[j]==2){
93375
- recPerson+="<i style='color:#00a0e9'>总经理&nbsp;&nbsp;&nbsp;</i>";
93376
- }else if(levels[j]==3){
93377
- recPerson+="<i style='color:#00a0e9'>董事长&nbsp;&nbsp;&nbsp;</i>";
93378
- }
93379
- }
93380
- }
93381
- var strDate=item.Date.toString();
93382
- var strNew=strDate.substring(0,4)+"-"+strDate.substring(4,6)+"-"+strDate.substring(6,8); //转换时间格式
93383
- strText+="<span>"+strNew+"&nbsp;&nbsp;&nbsp;接待:&nbsp;&nbsp;&nbsp;"+recPerson+"</span>";
93384
- }else if(infoType==KLINE_INFO_TYPE.BLOCKTRADING)
93385
- {
93386
- var showPriceInfo = item.ExtendData;
93387
- var strDate=item.Date.toString();
93388
- var strNew=strDate.substring(0,4)+"-"+strDate.substring(4,6)+"-"+strDate.substring(6,8); //转换时间格式
93389
- strText+="<span><i class='date-tipbox'>"+strNew+"</i>&nbsp;&nbsp;<i class='tipBoxTitle'>成交价:&nbsp;"+showPriceInfo.Price.toFixed(2)+"</i><i class='tipBoxTitle'>收盘价:&nbsp;"+showPriceInfo.ClosePrice.toFixed(2)+
93390
- "</i><br/><i class='rate-discount tipBoxTitle'>溢折价率:&nbsp;<strong style='color:"+ this.GetColor(showPriceInfo.Premium.toFixed(2))+"'>"+
93391
- showPriceInfo.Premium.toFixed(2)+"%</strong></i><i class='tipBoxTitle'>成交量(万股):&nbsp;"+showPriceInfo.Vol.toFixed(2)+"</i></span>";
93392
- }
93393
- else if (infoType==KLINE_INFO_TYPE.TRADEDETAIL) //龙虎榜
93394
- {
93395
- /*var detail=[
93396
- "日价格涨幅偏离值达到9.89%",
93397
- "日价格涨幅偏离值达格涨幅偏离值达格涨幅偏离值达到9.89%"
93398
- ]*/
93399
- var detail=item.ExtendData.Detail;
93400
- //格式:日期 上榜原因: detail[0].TypeExplain
93401
- // detail[1].TypeExplain
93402
- // 一周后涨幅: xx 四周后涨幅: xx
93403
- var str=strOld.toString();
93404
- var strNew=str.substring(0,4)+"-"+str.substring(4,6)+"-"+str.substring(6,8); //转换时间格式
93405
- var reasons = [];
93406
- for(var i in detail){
93407
- reasons += "<i>"+detail[i].TypeExplain+"</i><br/>"
93408
- // reasons += detail[i] + "<br/>"
93409
- }
93410
-
93411
- strText = "<span><i class='trade-time'>"+strNew+"&nbsp;&nbsp;&nbsp;上榜原因:&nbsp;&nbsp;</i><i class='reason-list'>"+reasons+"</i><br/><i class='trade-detall'>一周后涨幅:&nbsp;<strong style='color:"+
93412
- this.GetColor(item.ExtendData.FWeek.Week1.toFixed(2))+"'>"+ item.ExtendData.FWeek.Week1.toFixed(2)+
93413
- "%</strong>&nbsp;&nbsp;&nbsp;四周后涨幅:&nbsp;<strong style='color:"+this.GetColor(item.ExtendData.FWeek.Week4.toFixed(2))+";'>"+
93414
- item.ExtendData.FWeek.Week4.toFixed(2)+"%</strong></i></span>";
93415
- }
93416
- else
93417
- {
93418
- var str=strOld.toString();
93419
- var strNew=str.substring(0,4)+"-"+str.substring(4,6)+"-"+str.substring(6,8); //转换时间格式
93420
- strText+="<span>"+strNew+"&nbsp;&nbsp;&nbsp;"+item.Title+"</span>";
93421
- }
93422
- }
93423
- var titleInnerBox = $(".title-length").html(strText);
93424
-
93425
- $("#"+this.ID).html(titleInnerBox);
93426
-
93427
- //当信息超过8条时,添加“共XX条”统计总数
93428
- if(infoList.length > 8){
93429
- $("#"+this.ID).append(strBox);
93430
- }
93431
- }
93432
-
93433
-
93434
- this.GetColor=function(price)
93435
- {
93436
- if(price>0) return this.UpColor;
93437
- else if (price<0) return this.DownColor;
93438
- else return this.UnchagneColor;
93439
- }
93440
-
93441
- //显示窗口,改函数仅为KLineInfoTooltip使用
93442
- this.Show=function(left,top,width,height,tooltip,times)
93443
- {
93444
- //显示位置
93445
- $("#"+this.ID).css({'display':'block','top':top+'px', "left":left+'px', "width":width+'px', "height":height+'px' });
93446
-
93447
- function toolHide() {
93448
- tooltip.Hide();
93449
- }
93450
-
93451
- if (this.TimeOut!=null)
93452
- clearTimeout(this.TimeOut); //清空上一次的定时器,防止定时器不停的被调用
93453
-
93454
- //设置窗口定时隐藏
93455
- this.TimeOut=setTimeout(toolHide,times);
93456
-
93457
- }
93458
-
93459
-
93460
- this.DoModal=function(event)
93461
- {
93462
- var chart=event.data.Chart;
93463
- var infoType=event.data.InfoType; //信息地雷类型
93464
- var infoList=event.data.InfoList; //信息数据列表
93465
- var tooltip=chart.KLineInfoTooltip;
93466
-
93467
- if(!tooltip) return;
93468
- if (tooltip.ID==null) tooltip.Create(); //第1次 需要创建div
93469
-
93470
- tooltip.BindInfoList(infoType,infoList);
93471
-
93472
- var left=event.pageX;
93473
- var top=event.pageY+10;
93474
- var widthTool=380;
93475
- var heightTool=$("#"+tooltip.ID).height();
93476
-
93477
- if((left + widthTool) > chart.UIElement.getBoundingClientRect().width){
93478
- left = left - widthTool;
93479
- }
93480
- /*if(top+heightTool>chart.UIElement.getBoundingClientRect().height){
93481
- top=top-heightTool-45;
93482
- }*/
93483
-
93484
- tooltip.Show(left,top,widthTool,"auto",tooltip,8000);
93485
- }
93486
-
93487
- //鼠标离开
93488
- this.Leave=function(event)
93489
- {
93490
- var chart=event.data.Chart;
93491
- var tooltip=chart.KLineInfoTooltip;
93492
-
93493
- if(!tooltip || tooltip.ID==null) return;
93494
-
93495
- tooltip.Hide();
93496
- }
93497
- }
93498
-
93499
93386
  function MinuteSelectRectDialog(divElement)
93500
93387
  {
93501
93388
  this.newMethod=IDivDialog; //派生
@@ -138721,7 +138608,7 @@ function ScrollBarBGChart()
138721
138608
 
138722
138609
 
138723
138610
 
138724
- var HQCHART_VERSION="1.1.13770";
138611
+ var HQCHART_VERSION="1.1.13775";
138725
138612
 
138726
138613
  function PrintHQChartVersion()
138727
138614
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.13770";
8
+ var HQCHART_VERSION="1.1.13775";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {
@@ -48780,6 +48780,7 @@ HQData.NetworkFilter=function(data, callback)
48780
48780
  break;
48781
48781
 
48782
48782
  case "ResearchInfo::RequestData":
48783
+ HQData.ResearchInfo_RequestData(data,callback);
48783
48784
  break;
48784
48785
 
48785
48786
  case "BlockTrading::RequestData":
@@ -49299,7 +49300,15 @@ HQData.PforecastInfo_RequestData=function(data,callback)
49299
49300
  var kItem=kData.Data[i];
49300
49301
  if (i%10!=4) continue;
49301
49302
 
49302
- var itemReport={ date:kItem.Date, time:kItem.Time, title:`公告(${j}) xxxx`, }
49303
+ var year=parseInt(kItem.Date/10000); //年份
49304
+ var month=parseInt(kItem.Date/100)%100;
49305
+ var reprotDate=0;
49306
+ if (month>10) reprotDate=year*10000+1231;
49307
+ else if (month>6) reprotDate=year*10000+930;
49308
+ else if (month>3) reprotDate=year*10000+630;
49309
+ else reprotDate=year*10000+331;
49310
+
49311
+ var itemReport={ date:kItem.Date, time:kItem.Time, title:`业绩预增`, reportdate:reprotDate, fweek:{ week1:0.04, week4:0.02 } }
49303
49312
 
49304
49313
  hqchartData.report.push(itemReport);
49305
49314
 
@@ -49317,6 +49326,29 @@ HQData.InvestorInfo_RequestData=function(data,callback)
49317
49326
  callback(TEST_NEWSINTERACT_DATA);
49318
49327
  }
49319
49328
 
49329
+ HQData.ResearchInfo_RequestData=function(data,callback)
49330
+ {
49331
+ data.PreventDefault=true;
49332
+ var symbol=data.Request.Symbol;
49333
+
49334
+ var hqchartData={ symbol:symbol, list:[] };
49335
+
49336
+ var kData=data.HQChart.ChartPaint[0].Data;
49337
+ for(var i=0, j=1;i<kData.Data.length;++i)
49338
+ {
49339
+ var kItem=kData.Data[i];
49340
+ if (i%20!=4) continue;
49341
+
49342
+ var itemReport={ researchdate:kItem.Date, id:i, level:[j%4], type:"xxx调研。" };
49343
+
49344
+ hqchartData.list.push(itemReport);
49345
+
49346
+ ++j;
49347
+ }
49348
+
49349
+ callback(hqchartData);
49350
+ }
49351
+
49320
49352
  HQData.BlockTrading_RequestData=function(data,callback)
49321
49353
  {
49322
49354
  data.PreventDefault=true;