hqchart 1.1.14045 → 1.1.14056

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.
@@ -1722,6 +1722,9 @@ function JSChart(divElement, bOffscreen, bCacheCanvas)
1722
1722
  if (option.TooltipDialog && option.TooltipDialog.Enable)
1723
1723
  chart.InitalTooltipDialog(option.TooltipDialog);
1724
1724
 
1725
+ if (option.FloatTooltip && option.FloatTooltip.Enable)
1726
+ chart.InitalFloatTooltip(option.FloatTooltip);
1727
+
1725
1728
  if (option.SelectRectDialog && option.SelectRectDialog.Enable)
1726
1729
  {
1727
1730
  chart.InitalSelectRectDialog(option.SelectRectDialog);
@@ -2633,9 +2636,11 @@ var JSCHART_EVENT_ID=
2633
2636
  ON_CUSTOM_MINUTE_BG:157, //自定义分时图背景颜色
2634
2637
  ON_CLICK_HORIZONTAL_LABEL:158, //点击Y轴刻度标签
2635
2638
 
2636
- ON_FORMAT_DIALOG_TOOLTIP_TEXT:159, //格式化Tooltip对话框显示文字
2639
+ ON_FORMAT_DIALOG_TOOLTIP:159, //格式化Tooltip对话框显示文字
2640
+
2641
+ ON_CHANGE_KLINE_RIGHT:160, //切换复权
2637
2642
 
2638
- ON_CHANGE_KLINE_RIGHT:160, //切换复权
2643
+ ON_FORMAT_KLINE_FLOAT_TOOLTIP:161, //格式化k线浮动框显示文字
2639
2644
  }
2640
2645
 
2641
2646
  var JSCHART_OPERATOR_ID=
@@ -3039,6 +3044,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3039
3044
 
3040
3045
  this.DialogTooltip; //tooltip信息
3041
3046
  this.DialogSelectRect; //区间统计
3047
+ this.FloatTooltip; //浮动tooltip信息
3042
3048
 
3043
3049
 
3044
3050
  this.ClearStockCache=function()
@@ -3072,6 +3078,15 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3072
3078
  this.DialogTooltip.Create();
3073
3079
  }
3074
3080
 
3081
+ this.InitalFloatTooltip=function(option)
3082
+ {
3083
+ if (this.FloatTooltip) return;
3084
+
3085
+ this.FloatTooltip=new JSFloatTooltip();
3086
+ this.FloatTooltip.Inital(this, option);
3087
+ this.FloatTooltip.Create();
3088
+ }
3089
+
3075
3090
  this.InitalModifyDrawDialog=function()
3076
3091
  {
3077
3092
  if ( this.DialogModifyDraw) return;
@@ -3090,6 +3105,8 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3090
3105
  this.DialogSelectRect.Create();
3091
3106
  }
3092
3107
 
3108
+
3109
+
3093
3110
  this.DrawSelectRectDialog=function()
3094
3111
  {
3095
3112
 
@@ -3163,6 +3180,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3163
3180
  this.DialogTooltip.Close();
3164
3181
  }
3165
3182
 
3183
+ this.HideFloatTooltip=function()
3184
+ {
3185
+ if (!this.FloatTooltip) return;
3186
+
3187
+ this.FloatTooltip.Hide();
3188
+ }
3189
+
3166
3190
  this.DestroyTooltipDialog=function()
3167
3191
  {
3168
3192
  if (!this.DialogTooltip) return;
@@ -3171,6 +3195,14 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3171
3195
  this.DialogTooltip=null;
3172
3196
  }
3173
3197
 
3198
+ this.DestroyFloatTooltip=function()
3199
+ {
3200
+ if (!this.FloatTooltip) return;
3201
+
3202
+ this.FloatTooltip.Destroy();
3203
+ this.FloatTooltip=null;
3204
+ }
3205
+
3174
3206
 
3175
3207
 
3176
3208
  //obj={ Element:, Canvas: }
@@ -3223,6 +3255,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
3223
3255
  this.IsDestroy=true;
3224
3256
  this.StopAutoUpdate();
3225
3257
  this.DestroyTooltipDialog();
3258
+ this.DestroyFloatTooltip();
3226
3259
  }
3227
3260
 
3228
3261
  this.ChartDestory=this.ChartDestroy; //老版本写错了,需要兼容下
@@ -6994,6 +7027,17 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
6994
7027
 
6995
7028
  }
6996
7029
 
7030
+ this.DrawFloatTooltip=function(point,toolTip)
7031
+ {
7032
+
7033
+ }
7034
+
7035
+ //更新实时行情到浮动tooltip
7036
+ this.UpdateHQFloatTooltip=function(item)
7037
+ {
7038
+
7039
+ }
7040
+
6997
7041
  this.ShowTooltip=function(x,y,toolTip)
6998
7042
  {
6999
7043
  if (!this.IsShowTooltip) return;
@@ -7005,11 +7049,18 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7005
7049
  this.TooltipCache.Data=null;
7006
7050
  this.TooltipCache.X=x;
7007
7051
  this.TooltipCache.Y=y;
7008
-
7052
+ var bHideFloatToolip=true;
7009
7053
  if (toolTip.Type===0) //K线信息
7010
7054
  {
7011
7055
  if (!this.KLineTooltipConfig.Enable) return;
7012
7056
 
7057
+ if (this.FloatTooltip)
7058
+ {
7059
+ this.DrawFloatTooltip({X:x, Y:y, YMove:20/pixelTatio}, toolTip);
7060
+ bHideFloatToolip=false;
7061
+ return;
7062
+ }
7063
+
7013
7064
  var scrollPos=GetScrollPosition();
7014
7065
  var left = x;
7015
7066
  var top = y;
@@ -7049,6 +7100,13 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7049
7100
  }
7050
7101
  else if (toolTip.Type===1) //信息地雷提示信息
7051
7102
  {
7103
+ if (this.FloatTooltip)
7104
+ {
7105
+ this.DrawFloatTooltip({X:x, Y:y, YMove:20/pixelTatio}, toolTip);
7106
+ bHideFloatToolip=false;
7107
+ return;
7108
+ }
7109
+
7052
7110
  var scrollPos=GetScrollPosition();
7053
7111
  var left = x;
7054
7112
  var top = y;
@@ -7203,6 +7261,9 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7203
7261
  this.Tooltip.innerHTML=format.Text;
7204
7262
  this.Tooltip.style.display = "block";
7205
7263
  }
7264
+
7265
+
7266
+ if (bHideFloatToolip) this.HideFloatTooltip();
7206
7267
  }
7207
7268
 
7208
7269
  this.UpdateDOMTooltip=function(toolTipType, data)
@@ -7239,6 +7300,8 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
7239
7300
  this.TooltipCache.Data=null;
7240
7301
 
7241
7302
  if (this.Tooltip.style.display!="none") this.Tooltip.style.display = "none";
7303
+
7304
+ this.HideFloatTooltip();
7242
7305
  }
7243
7306
 
7244
7307
  this.UpdateSelectRect=function(start,end)
@@ -8104,6 +8167,7 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
8104
8167
 
8105
8168
  if (this.PopMinuteChart) this.PopMinuteChart.ReloadResource(option);
8106
8169
  if (this.DialogTooltip) this.DialogTooltip.ReloadResource(option);
8170
+ if (this.FloatTooltip) this.FloatTooltip.ReloadResource(option);
8107
8171
  if (this.DialogSelectRect) this.DialogSelectRect.ReloadResource(option);
8108
8172
  }
8109
8173
 
@@ -10446,6 +10510,8 @@ function CoordinateInfo()
10446
10510
  this.ExtendData; //扩展属性
10447
10511
  //百分比 { PriceColor:, PercentageColor:, SplitColor:, Font: }
10448
10512
  //自定义刻度 { Custom:{ Position: 1=强制内部 }}
10513
+ //输出位置的Y轴偏移
10514
+ //this.YOffset;
10449
10515
  this.AreaData; //区域: { Start:, End:, BGColor:, Position:[0=左, 1=右] }
10450
10516
 
10451
10517
  //不在当前屏范围 (可定义刻度使用)
@@ -13477,7 +13543,7 @@ function AverageWidthFrame()
13477
13543
  this.Canvas.lineWidth=pixelRatio;
13478
13544
  }
13479
13545
  }
13480
- else if (lineType==2) //绘制短线
13546
+ else if (lineType==3) //绘制短线
13481
13547
  {
13482
13548
  var lineWidth=10*GetDevicePixelRatio();
13483
13549
  this.Canvas.strokeStyle=color;
@@ -69276,8 +69342,20 @@ function JSChartResource()
69276
69342
 
69277
69343
  TextColor:"rgb(0,0,0)", //数值名称
69278
69344
  ValueColor:"rgb(0,0,0)", //数值
69345
+ };
69279
69346
 
69280
-
69347
+ this.FloatTooltip=
69348
+ {
69349
+ BGColor:'rgb(250,250,250)', //背景色
69350
+ BorderColor:'rgb(20,20,20)', //边框颜色
69351
+ VolColor:"rgb(255, 185, 15)", //标题成交量
69352
+ AmountColor:"rgb(79, 79, 79)", //成交金额
69353
+ DateTimeColor:'rgb(60,60,60)',
69354
+ TurnoverRateColor:'rgb(43,54,69)', //换手率
69355
+ PositionColor:"rgb(255,0,255)", //持仓
69356
+
69357
+ TextColor:"rgb(0,0,0)", //数值名称
69358
+ ValueColor:"rgb(0,0,0)", //数值
69281
69359
  };
69282
69360
 
69283
69361
  //区间统计
@@ -70326,6 +70404,22 @@ function JSChartResource()
70326
70404
  if (item.ValueColor) this.DialogTooltip.ValueColor=item.ValueColor;
70327
70405
  }
70328
70406
 
70407
+ if (style.FloatTooltip)
70408
+ {
70409
+ var item=style.FloatTooltip;
70410
+ if (item.BGColor) this.FloatTooltip.BGColor=item.BGColor;
70411
+ if (item.BorderColor) this.FloatTooltip.BorderColor=item.BorderColor;
70412
+
70413
+ if (item.DateTimeColor) this.FloatTooltip.DateTimeColor=item.DateTimeColor;
70414
+ if (item.VolColor) this.FloatTooltip.VolColor=item.VolColor;
70415
+ if (item.AmountColor) this.FloatTooltip.AmountColor=item.AmountColor;
70416
+ if (item.TurnoverRateColor) this.FloatTooltip.TurnoverRateColor=item.TurnoverRateColor;
70417
+ if (item.PositionColor) this.FloatTooltip.PositionColor=item.PositionColor;
70418
+
70419
+ if (item.TextColor) this.FloatTooltip.TextColor=item.TextColor;
70420
+ if (item.ValueColor) this.FloatTooltip.ValueColor=item.ValueColor;
70421
+ }
70422
+
70329
70423
  if (style.DialogSelectRect)
70330
70424
  {
70331
70425
  var item=style.DialogSelectRect;
@@ -71428,7 +71522,26 @@ function JSChartLocalization()
71428
71522
  ['DialogTooltip-AC-Vol', {CN:'匹配量', EN:'Vol', TC:'匹配量'}],
71429
71523
  ['DialogTooltip-Value', {CN:'数值', EN:'Value', TC:'数值'}],
71430
71524
 
71525
+ ['FloatTooltip-Date', {CN:'日期', EN:'Date', TC:'日期'}],
71526
+ ['FloatTooltip-Time', {CN:'时间', EN:'Time', TC:'時間'}],
71527
+ ['FloatTooltip-Open', {CN:'开盘价', EN:'Open', TC:'開盤價'}],
71528
+ ['FloatTooltip-High', {CN:'最高价', EN:'High', TC:'最高價'}],
71529
+ ['FloatTooltip-Low', {CN:'最低价', EN:'Low', TC:'最低價'}],
71530
+ ['FloatTooltip-Close', {CN:'收盘价', EN:'Close', TC:'收盤價'}],
71531
+ ['FloatTooltip-YClose', {CN:'昨收价', EN:'YClose', TC:'昨收價'}],
71532
+ ['FloatTooltip-Increase', {CN:'涨幅', EN:'Increase', TC:'漲幅'}],
71533
+ ['FloatTooltip-Risefall', {CN:'涨跌', EN:'Risefall', TC:'漲跌'}],
71534
+ ['FloatTooltip-Vol', {CN:'成交量', EN:'Volume', TC:'數量'}],
71535
+ ['FloatTooltip-Amount', {CN:'成交额', EN:'Amount', TC:'金額'}],
71536
+ ['FloatTooltip-Exchange', {CN:'换手率', EN:'Exchange', TC:'換手'}],
71537
+ ['FloatTooltip-Position', {CN:'持仓量', EN:'Position', TC:'持倉'}],
71538
+ ['FloatTooltip-Price', {CN:'价格', EN:'Price', TC:'價格'}],
71539
+ ['FloatTooltip-AvPrice', {CN:'均价', EN:'AVPrice:', TC:'均價'}],
71540
+ ['FloatTooltip-FClose', {CN:"结算价", EN:'Settlement', TC:'結算價'}],
71541
+ ['FloatTooltip-YSettlePrice', {CN:"昨结算", EN:'YSettlement', TC:'昨結算'}],
71542
+ ['FloatTooltip-Amplitude', {CN:'振幅', EN:'amplitude', TC:'振幅'}],
71431
71543
 
71544
+
71432
71545
  ['DialogSelectRect-StartPrice', {CN:'起始价:', EN:'Start Price:', TC:'起始價'}],
71433
71546
  ['DialogSelectRect-EndPrice', {CN:'最终价:', EN:"End Price:", TC:'最终價'}],
71434
71547
  ['DialogSelectRect-High', {CN:'最高价:', EN:'High:', TC:'最高價'}],
@@ -74903,6 +75016,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
74903
75016
 
74904
75017
  this.SendKLineUpdateEvent(bindData);
74905
75018
  this.UpdateDOMTooltip(0, bindData);
75019
+ this.UpdateHQFloatTooltip(bindData);
74906
75020
 
74907
75021
  //叠加指标计算
74908
75022
  this.BindAllOverlayIndexData(bindData, { CheckRunCount:true,SyncExecute:false }); //异步模式叠加指标
@@ -75161,6 +75275,7 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
75161
75275
 
75162
75276
  this.SendKLineUpdateEvent(bindData);
75163
75277
  this.UpdateDOMTooltip(0, bindData);
75278
+ this.UpdateHQFloatTooltip(bindData);
75164
75279
 
75165
75280
  //更新叠加指标
75166
75281
  this.BindAllOverlayIndexData(bindData, { CheckRunCount:true,SyncExecute:false }); //异步模式叠加指标
@@ -79696,18 +79811,34 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
79696
79811
  if (!this.DialogTooltip) return false;
79697
79812
  if (!this.ChartCorssCursor) return false;
79698
79813
 
79814
+ var dataType=0;
79699
79815
  var kItem=null;
79700
79816
  if (this.ChartCorssCursor.ClientPos>=0)
79701
79817
  {
79702
79818
  var hisData=this.ChartOperator_Temp_GetHistroyData();;
79703
79819
  if (!hisData) return false; //数据还没有到达
79820
+ if (!IFrameSplitOperator.IsNonEmptyArray(hisData.Data)) return false;
79704
79821
 
79705
79822
  var dataIndex=hisData.DataOffset+this.ChartCorssCursor.CursorIndex;
79823
+ if (dataIndex>=hisData.Data.length) dataIndex=hisData.Data.length-1;
79706
79824
  var kItem=hisData.Data[dataIndex];
79707
79825
  }
79826
+ else //取最后一个数据
79827
+ {
79828
+ var hisData=this.ChartOperator_Temp_GetHistroyData();;
79829
+ if (!hisData) return false; //数据还没有到达
79830
+ if (!IFrameSplitOperator.IsNonEmptyArray(hisData.Data)) return false;
79831
+ var kItem=hisData.Data[hisData.Data.length-1];
79832
+ var dataID={ Symbol:this.Symbol, Date:kItem.Date };
79833
+ if (IFrameSplitOperator.IsNumber(kItem.Time)) dataID.Time=kItem.Time;
79834
+ if (!this.DialogTooltip.IsEqualDataID(dataID)) return false;
79835
+
79836
+ dataType=1;
79837
+ }
79708
79838
 
79709
79839
  var sendData=
79710
79840
  {
79841
+ DataType:dataType, //0=全部更新 1=更新实时K线
79711
79842
  ClientPos:this.ChartCorssCursor.ClientPos, //位置
79712
79843
  IsShowCorss:this.ChartCorssCursor.IsShowCorss, //是否显示十字线
79713
79844
  KItem:kItem,
@@ -79715,7 +79846,6 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
79715
79846
  LastValue:this.ChartCorssCursor.LastValue,
79716
79847
  };
79717
79848
 
79718
-
79719
79849
  this.DialogTooltip.Update(sendData);
79720
79850
 
79721
79851
  return true;
@@ -79756,6 +79886,52 @@ function KLineChartContainer(uielement,OffscreenElement, cacheElement)
79756
79886
 
79757
79887
  this.DialogSelectRect.Update(sendData);
79758
79888
  }
79889
+
79890
+ this.DrawFloatTooltip=function(point,toolTip)
79891
+ {
79892
+ if (!this.FloatTooltip) return;
79893
+
79894
+ this.UpdateFloatTooltip(point, toolTip)
79895
+ }
79896
+
79897
+ this.UpdateFloatTooltip=function(point, toolTip)
79898
+ {
79899
+ if (!this.FloatTooltip) return;
79900
+
79901
+ var sendData=
79902
+ {
79903
+ Tooltip:toolTip,
79904
+ Point:point,
79905
+ Symbol:this.Symbol,
79906
+ Name:this.Name,
79907
+ DataType:1,
79908
+ };
79909
+
79910
+ this.FloatTooltip.Update(sendData);
79911
+ }
79912
+
79913
+ this.UpdateHQFloatTooltip=function(kData)
79914
+ {
79915
+ if (!this.FloatTooltip) return;
79916
+ if (!this.FloatTooltip.IsShow()) return;
79917
+ if (!kData || !IFrameSplitOperator.IsNonEmptyArray(kData.Data)) return;
79918
+
79919
+ var lastItem=kData.Data[kData.Data.length-1];
79920
+ if (!lastItem) return;
79921
+
79922
+ var dataID={ Symbol:kData.Symbol, Date:lastItem.Date, Time:lastItem.Time };
79923
+ if (!this.FloatTooltip.IsEqualHQID(dataID)) return;
79924
+
79925
+ var sendData=
79926
+ {
79927
+ Data:lastItem,
79928
+ Symbol:this.Symbol,
79929
+ Name:this.Name,
79930
+ DataType:2,
79931
+ };
79932
+
79933
+ this.FloatTooltip.Update(sendData);
79934
+ }
79759
79935
  }
79760
79936
 
79761
79937
  //API 返回数据 转化为array[]
@@ -85582,6 +85758,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
85582
85758
  if (!this.ChartCorssCursor) return false;
85583
85759
 
85584
85760
  var minuteItem=null; //{ Type:0=连续交易 1=集合竞价, Data:数据 }
85761
+ var dataType=0; //0=全部更新 2=分时实时数据更新
85585
85762
  if (this.ChartCorssCursor.ClientPos>=0)
85586
85763
  {
85587
85764
  var titlePaint=this.TitlePaint[0];
@@ -85591,21 +85768,32 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
85591
85768
  if ((pointInfo.ClientPos==2 || pointInfo.ClientPos==3 || (pointInfo.ClientPos>=200&& pointInfo.ClientPos<=299) || (pointInfo.ClientPos>=300&& pointInfo.ClientPos<=399)))
85592
85769
  {
85593
85770
  var auctionData=titlePaint.GetCurrentAuctionData();
85594
- if (!auctionData) return;
85771
+ if (!auctionData) return false;
85595
85772
  minuteItem={ Type:1, Data:auctionData };
85596
85773
  }
85597
85774
  else
85598
85775
  {
85599
85776
  var minuteData=titlePaint.GetCurrentKLineData();
85600
- if (!minuteData) return;
85777
+ if (!minuteData) return false;
85601
85778
  minuteItem={ Type:0, Data:minuteData };
85602
85779
  }
85603
85780
  }
85604
-
85781
+ }
85782
+ else //实时数据更新
85783
+ {
85784
+ if (!this.SourceData || !IFrameSplitOperator.IsNonEmptyArray(this.SourceData.Data)) return false;
85785
+ var minuteData=this.SourceData.Data[this.SourceData.Data.length-1];
85786
+
85787
+ var dataID={ Symbol:this.Symbol, Date:minuteData.Date, Time:minuteData.Time };
85788
+ if (!this.DialogTooltip.IsEqualDataID(dataID)) return false;
85789
+
85790
+ minuteItem={ Type:0, Data:minuteData };
85791
+ dataType=2;
85605
85792
  }
85606
85793
 
85607
85794
  var sendData=
85608
85795
  {
85796
+ DataType:dataType,
85609
85797
  ClientPos:this.ChartCorssCursor.ClientPos, //位置
85610
85798
  IsShowCorss:this.ChartCorssCursor.IsShowCorss, //是否显示十字线
85611
85799
  MinItem:minuteItem,
@@ -1840,3 +1840,83 @@ input[type="color"] {
1840
1840
  }
1841
1841
 
1842
1842
 
1843
+
1844
+ /*
1845
+ Copyright (c) 2018 jones
1846
+
1847
+ http://www.apache.org/licenses/LICENSE-2.0
1848
+
1849
+ 开源项目 https://github.com/jones2000/HQChart
1850
+
1851
+ jones_2000@163.com
1852
+
1853
+ 内置浮动tooltip
1854
+ */
1855
+
1856
+
1857
+
1858
+ .UMyChart_Tooltip_Float_Div
1859
+ {
1860
+ font-family: "微软雅黑";
1861
+ /*display: flex;*/
1862
+ border: 1px solid;
1863
+ width:fit-content;
1864
+ border-color: rgb(204,204,204);
1865
+ visibility:hidden;
1866
+ position: absolute;
1867
+ background-color: rgba(20,20,20,1);
1868
+ left:1px;
1869
+ top:1px;
1870
+ pointer-events:none;
1871
+ }
1872
+
1873
+
1874
+ .UMyChart_Tooltip_Float_Table
1875
+ {
1876
+ border-spacing: 2px;
1877
+ user-select: none;
1878
+ font-size:12px;
1879
+ }
1880
+
1881
+ .UMyChart_Tooltip_Float_Group_Tr
1882
+ {
1883
+
1884
+ }
1885
+
1886
+ .UMyChart_Tooltip_Float_Title_Td
1887
+ {
1888
+ min-width: 40px;
1889
+ }
1890
+
1891
+ .UMyChart_Tooltip_Float_Text_Td
1892
+ {
1893
+ min-width:80px;
1894
+ max-width: 500px;
1895
+ }
1896
+
1897
+ .UMyChart_Tooltip_Float_Title_Span
1898
+ {
1899
+ color: rgb(230,230,230);
1900
+ }
1901
+
1902
+ .UMyChart_Tooltip_Float_Text_Span
1903
+ {
1904
+ float: right;
1905
+ margin-right: 1px;
1906
+ color: rgb(230,230,230);
1907
+ }
1908
+
1909
+ .UMyChart_Tooltip_Float_Text2_Span
1910
+ {
1911
+ margin-left: 1px;
1912
+ }
1913
+
1914
+ .UMyChart_Tooltip_Float_Text3_Span
1915
+ {
1916
+ margin-left: 5px;
1917
+ }
1918
+
1919
+
1920
+
1921
+
1922
+
@@ -411,6 +411,21 @@ function GetBlackStyle()
411
411
  TitleBGColor:"rgb(200, 66, 69)",
412
412
  },
413
413
 
414
+ FloatTooltip:
415
+ {
416
+ BGColor:'rgb(20,20,20)', //背景色
417
+ BorderColor:'rgb(170,170,170)', //边框颜色
418
+
419
+ VolColor:"rgb(255, 185, 15)", //标题成交量
420
+ AmountColor:"rgb(210,210,210)", //成交金额
421
+ DateTimeColor:'rgb(210,210,210)',
422
+ TurnoverRateColor:'rgb(43,54,69)', //换手率
423
+ PositionColor:"rgb(255,0,255)", //持仓
424
+
425
+ TextColor:"rgb(210,210,210)", //数值名称
426
+ ValueColor:"rgb(210,210,210)", //数值
427
+ },
428
+
414
429
  DialogSelectRect:
415
430
  {
416
431
  BGColor:'rgb(20,20,20)', //背景色
@@ -48,6 +48,10 @@ var TEST_TRADE_DETAL_DATA={
48
48
  {
49
49
  "type": 6,
50
50
  "typeexplain": "单只标的证券的当日融资买入数量达到当日该证券总交易量的50%以上"
51
+ },
52
+ {
53
+ "type": 3,
54
+ "typeexplain": "跌幅偏离值达7%的证券"
51
55
  }
52
56
  ],
53
57
  "fweek": {