hqchart 1.1.14363 → 1.1.14370

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.
@@ -8556,11 +8556,8 @@ function JSChartContainer(uielement, OffscreenElement, cacheElement)
8556
8556
  var y=(e.clientY-uielement.getBoundingClientRect().top)*pixelTatio;
8557
8557
  var data= { X:e.clientX, Y:e.clientY, FrameID:-1 };
8558
8558
 
8559
- var isInClient=false;
8560
- this.Canvas.beginPath();
8561
- this.Canvas.rect(this.Frame.ChartBorder.GetLeft(),this.Frame.ChartBorder.GetTop(),this.Frame.ChartBorder.GetWidth(),this.Frame.ChartBorder.GetHeight());
8562
- isInClient=this.Canvas.isPointInPath(x,y);
8563
- if (isInClient)
8559
+ var clientPos=this.PtInClient(x,y);
8560
+ if (clientPos>0)
8564
8561
  {
8565
8562
  var yValueExtend={};
8566
8563
  var yValue=this.Frame.GetYData(y,yValueExtend);
@@ -35842,10 +35839,11 @@ function ChartSimplePie()
35842
35839
  this.RectClient.Left-=xOffset;
35843
35840
  this.RectClient.Right-=xOffset;
35844
35841
 
35845
-
35842
+ var pixelRatio=GetDevicePixelRatio();
35843
+ var radius=this.Radius*pixelRatio;
35846
35844
  var start=0, end=0;
35847
- var x=this.RectClient.Left+this.Radius;
35848
- var y=this.RectClient.Top+this.Radius;
35845
+ var x=this.RectClient.Left+radius;
35846
+ var y=this.RectClient.Top+radius;
35849
35847
 
35850
35848
  for(var i=0;i<this.Data.Data.length;++i)
35851
35849
  {
@@ -35861,7 +35859,7 @@ function ChartSimplePie()
35861
35859
  end += rate*2*Math.PI;//终止角度
35862
35860
  this.Canvas.strokeStyle = this.BorderColor;
35863
35861
  this.Canvas.fillStyle = item.Color;
35864
- this.Canvas.arc(x,y,this.Radius,start,end);
35862
+ this.Canvas.arc(x,y,radius,start,end);
35865
35863
  this.Canvas.fill();
35866
35864
  this.Canvas.closePath();
35867
35865
  this.Canvas.stroke();
@@ -35869,10 +35867,181 @@ function ChartSimplePie()
35869
35867
  if (item.Text)
35870
35868
  {
35871
35869
  // 绘制直线
35872
- var xLine=this.Radius*Math.cos(end- (end-start)/2)+x;
35873
- var yLine=this.Radius*Math.sin(end - (end-start)/2)+y;
35874
- var xEnd = (this.Radius + this.LineExtendWidth)*Math.cos(end- (end-start)/2)+x;
35875
- var yEnd = (this.Radius + this.LineExtendWidth)*Math.sin(end - (end-start)/2)+y;
35870
+ var xLine=radius*Math.cos(end- (end-start)/2)+x;
35871
+ var yLine=radius*Math.sin(end - (end-start)/2)+y;
35872
+ var xEnd = (radius + this.LineExtendWidth)*Math.cos(end- (end-start)/2)+x;
35873
+ var yEnd = (radius + this.LineExtendWidth)*Math.sin(end - (end-start)/2)+y;
35874
+
35875
+ this.Canvas.beginPath();
35876
+ if (item.LineColor) this.Canvas.strokeStyle =item.LineColor;
35877
+ else this.Canvas.strokeStyle = item.Color;
35878
+ this.Canvas.moveTo(xLine,yLine);
35879
+ this.Canvas.lineTo(xEnd,yEnd);
35880
+
35881
+ var textWidth=aryText[i].Width;
35882
+ var yText=xEnd;
35883
+ if( end - (end-start)/2 < 1.5*Math.PI && end - (end-start)/2 > 0.5*Math.PI )
35884
+ {
35885
+ this.Canvas.lineTo( xEnd - textWidth, yEnd );
35886
+ yText=xEnd - textWidth;
35887
+ }
35888
+ else
35889
+ {
35890
+ this.Canvas.lineTo( xEnd + textWidth, yEnd );
35891
+ }
35892
+ this.Canvas.stroke();
35893
+
35894
+ if (item.TextColor) this.Canvas.fillStyle = item.TextColor;
35895
+ else this.Canvas.fillStyle=item.Color;
35896
+ this.Canvas.fillText(item.Text, yText, yEnd);
35897
+ }
35898
+
35899
+ start += rate*2*Math.PI;//起始角度
35900
+ }
35901
+ }
35902
+
35903
+ this.Draw=function()
35904
+ {
35905
+ if (!this.Data || !this.Data.Data || !(this.Data.Data.length>0)) return this.DrawEmptyData();
35906
+
35907
+ this.CalculateTotalValue();
35908
+ if (!IFrameSplitOperator.IsPlusNumber(this.TotalValue)) this.DrawEmptyData();
35909
+ this.CalculateSize();
35910
+
35911
+ this.Canvas.save();
35912
+
35913
+ this.DrawPie();
35914
+
35915
+ this.Canvas.restore();
35916
+ }
35917
+
35918
+ //空数据
35919
+ this.DrawEmptyData=function()
35920
+ {
35921
+ JSConsole.Chart.Log('[ChartSimplePie::DrawEmptyData]')
35922
+ }
35923
+
35924
+ this.GetMaxMin=function()
35925
+ {
35926
+ return { Min:null, Max:null };
35927
+ }
35928
+ }
35929
+
35930
+
35931
+ //圆环
35932
+ function ChartSimpleDoughnut()
35933
+ {
35934
+ this.newMethod=IChartPainting; //派生
35935
+ this.newMethod();
35936
+ delete this.newMethod;
35937
+
35938
+ this.ClassName='ChartSimpleDoughnut'; //类名
35939
+
35940
+ this.BorderColor=g_JSChartResource.ChartSimpleDoughnut.BorderColor;
35941
+ this.Offset=CloneData(g_JSChartResource.ChartSimpleDoughnut.Offset);
35942
+ this.LineExtendWidth=10;
35943
+ this.TextFontConfig=CloneData(g_JSChartResource.ChartSimpleDoughnut.TextFont);
35944
+
35945
+ this.RectClient={ };
35946
+ this.TotalValue=1;
35947
+ this.Radius = 50; //外圈半径默认值
35948
+ this.InnerRadius=30; //内圈半径
35949
+ this.TextFont;
35950
+
35951
+
35952
+ this.ReloadResource=function(resource)
35953
+ {
35954
+ this.BorderColor=g_JSChartResource.ChartSimpleDoughnut.BorderColor;
35955
+ this.Offset=CloneData(g_JSChartResource.ChartSimpleDoughnut.Offset);
35956
+ this.TextFontConfig=CloneData(g_JSChartResource.ChartSimpleDoughnut.TextFont);
35957
+ }
35958
+
35959
+ this.CalculateSize=function()
35960
+ {
35961
+ var border=this.ChartFrame.GetBorder();
35962
+ var pixelRatio=GetDevicePixelRatio();
35963
+ this.TextFont=`${this.TextFontConfig.Size*pixelRatio}px ${ this.TextFontConfig.Name}`;
35964
+ this.LineExtendWidth=this.GetFontHeight(this.TextFont,"擎")+1;
35965
+
35966
+
35967
+ this.RectClient={ Width:this.Radius*2*pixelRatio, Height:this.Radius*2*pixelRatio };
35968
+
35969
+ this.RectClient.Right=border.Right+this.Offset.X;
35970
+ this.RectClient.Top=border.TopEx+this.Offset.Y;
35971
+ this.RectClient.Left=this.RectClient.Right-this.RectClient.Width;
35972
+ this.RectClient.Bottom=this.RectClient.Top+this.RectClient.Height;
35973
+ }
35974
+
35975
+ this.CalculateTotalValue=function()
35976
+ {
35977
+ var totalValue=0;
35978
+ for(var i=0; i<this.Data.Data.length; ++i)
35979
+ {
35980
+ var item=this.Data.Data[i];
35981
+ if (!IFrameSplitOperator.IsPlusNumber(item.Value)) continue;
35982
+ totalValue += item.Value;
35983
+ }
35984
+
35985
+ this.TotalValue=totalValue;
35986
+ }
35987
+
35988
+ this.DrawPie=function()
35989
+ {
35990
+ this.Canvas.font=this.TextFont;
35991
+ this.Canvas.textBaseline='bottom';
35992
+ this.Canvas.textAlign = 'left';
35993
+
35994
+ var aryText=[];
35995
+ var maxTextWidth=0;
35996
+ for(var i=0;i<this.Data.Data.length;++i)
35997
+ {
35998
+ var item=this.Data.Data[i];
35999
+ if (!IFrameSplitOperator.IsPlusNumber(item.Value)) continue;
36000
+ if (!item.Text) continue;
36001
+ var textWidth=this.Canvas.measureText(item.Text).width;
36002
+
36003
+ aryText[i]={ Width:textWidth };
36004
+
36005
+ if (maxTextWidth<textWidth) maxTextWidth=textWidth;
36006
+ }
36007
+
36008
+ var xOffset=maxTextWidth+this.LineExtendWidth;
36009
+ this.RectClient.Left-=xOffset;
36010
+ this.RectClient.Right-=xOffset;
36011
+
36012
+ var pixelRatio=GetDevicePixelRatio();
36013
+ var radius=this.Radius*pixelRatio;
36014
+ var innerRadius=this.InnerRadius*pixelRatio;
36015
+ var start=0, end=0;
36016
+ var x=this.RectClient.Left+radius;
36017
+ var y=this.RectClient.Top+radius;
36018
+
36019
+ for(var i=0;i<this.Data.Data.length;++i)
36020
+ {
36021
+ var item=this.Data.Data[i];
36022
+ if (!IFrameSplitOperator.IsPlusNumber(item.Value)) continue;
36023
+
36024
+ var rate=item.Value/this.TotalValue;
36025
+
36026
+ // 绘制扇形
36027
+ this.Canvas.beginPath();
36028
+
36029
+ end += rate*2*Math.PI;//终止角度
36030
+ this.Canvas.strokeStyle = this.BorderColor;
36031
+ this.Canvas.fillStyle = item.Color;
36032
+ this.Canvas.arc(x,y,radius,start,end);
36033
+ this.Canvas.arc(x,y,innerRadius,end-2*Math.PI,start-2*Math.PI, true);
36034
+ this.Canvas.fill();
36035
+ this.Canvas.closePath();
36036
+ this.Canvas.stroke();
36037
+
36038
+ if (item.Text)
36039
+ {
36040
+ // 绘制直线
36041
+ var xLine=radius*Math.cos(end- (end-start)/2)+x;
36042
+ var yLine=radius*Math.sin(end - (end-start)/2)+y;
36043
+ var xEnd = (radius + this.LineExtendWidth)*Math.cos(end- (end-start)/2)+x;
36044
+ var yEnd = (radius + this.LineExtendWidth)*Math.sin(end - (end-start)/2)+y;
35876
36045
 
35877
36046
  this.Canvas.beginPath();
35878
36047
  if (item.LineColor) this.Canvas.strokeStyle =item.LineColor;
@@ -48342,11 +48511,15 @@ function KLineTooltipPaint()
48342
48511
  }
48343
48512
 
48344
48513
  //换手率
48345
- if (MARKET_SUFFIX_NAME.IsSHSZStockA(this.HQChart.Symbol) && item.FlowCapital>0)
48514
+ if (IFrameSplitOperator.IsNumber(item.FlowCapital))
48346
48515
  {
48516
+ var text="--.--"
48347
48517
  title=g_JSChartLocalization.GetText('Tooltip-Exchange',this.LanguageID);
48348
- var value=item.Vol/item.FlowCapital*100;
48349
- var text=value.toFixed(2)+'%';
48518
+ if (item.FlowCapital!=0)
48519
+ {
48520
+ var value=item.Vol/item.FlowCapital*100;
48521
+ var text=value.toFixed(2)+'%';
48522
+ }
48350
48523
  aryText.push({Title:title, TitleColor:this.TitleColor, Text:text, Color:this.TitleColor });
48351
48524
  }
48352
48525
 
@@ -59538,13 +59711,19 @@ function HistoryDataStringFormat()
59538
59711
  aryText.push(item);
59539
59712
  }
59540
59713
 
59541
- if(MARKET_SUFFIX_NAME.IsSHSZStockA(this.Symbol) && data.FlowCapital>0) //换手率
59714
+ if(IFrameSplitOperator.IsNumber(data.FlowCapital)) //换手率
59542
59715
  {
59543
- var value=data.Vol/data.FlowCapital*100;
59716
+ var text="--.--";
59717
+ if (data.FlowCapital!=0)
59718
+ {
59719
+ var value=data.Vol/data.FlowCapital*100;
59720
+ var text=`${value.toFixed(2)}%`;
59721
+ }
59722
+
59544
59723
  var item=
59545
59724
  {
59546
59725
  Title:g_JSChartLocalization.GetText('DivTooltip-Exchange',this.LanguageID),
59547
- Text:`${value.toFixed(2)}%`,
59726
+ Text:text,
59548
59727
  Color:this.TurnoverRateColor
59549
59728
  }
59550
59729
  aryText.push(item);
@@ -60241,10 +60420,14 @@ function DynamicKLineTitlePainting()
60241
60420
  aryText.push({ Text:text, Color:this.AmountColor});
60242
60421
  }
60243
60422
 
60244
- if (MARKET_SUFFIX_NAME.IsSHSZStockA(this.Symbol) && item.FlowCapital>0) //A股有换手率
60423
+ if (IFrameSplitOperator.IsNumber(item.FlowCapital)) //换手率
60245
60424
  {
60246
- var value=item.Vol/item.FlowCapital*100; //成交量/流通A股*100
60247
- var text=g_JSChartLocalization.GetText('KTitle-Exchange',this.LanguageID)+IFrameSplitOperator.FormatValueString(value,2,this.LanguageID)+'%';
60425
+ var text="--.--";
60426
+ if (item.FlowCapital!=0)
60427
+ {
60428
+ var value=item.Vol/item.FlowCapital*100; //成交量/流通A股*100
60429
+ var text=g_JSChartLocalization.GetText('KTitle-Exchange',this.LanguageID)+IFrameSplitOperator.FormatValueString(value,2,this.LanguageID)+'%';
60430
+ }
60248
60431
  aryText.push({ Text:text, Color:this.TurnoverRateColor});
60249
60432
  }
60250
60433
 
@@ -75422,6 +75605,13 @@ function JSChartResource()
75422
75605
  Offset:{ X:-5, Y:5 }
75423
75606
  }
75424
75607
 
75608
+ this.ChartSimpleDoughnut=
75609
+ {
75610
+ TextFont:{ Family:'微软雅黑' , Size:12 },
75611
+ BorderColor:"rgb(169,169,169)",
75612
+ Offset:{ X:-5, Y:5 }
75613
+ }
75614
+
75425
75615
  this.ChartSimpleRadar=
75426
75616
  {
75427
75617
  TextFont:{ Family:'微软雅黑' , Size:12 },
@@ -76667,6 +76857,8 @@ function JSChartResource()
76667
76857
 
76668
76858
  if (style.ChartSimpleTable) this.SetChartSimpleTable(style.ChartSimpleTable);
76669
76859
  if (style.ChartSimplePie) this.SetChartSimplePie(style.ChartSimplePie);
76860
+ if (style.ChartSimpleDoughnut) this.SetChartSimpleDoughnut(style.ChartSimpleDoughnut);
76861
+
76670
76862
  if (style.ChartSimpleRadar) this.SetChartSimpleRadar(style.ChartSimpleRadar);
76671
76863
 
76672
76864
  if (style.DRAWICON)
@@ -77761,6 +77953,27 @@ function JSChartResource()
77761
77953
  }
77762
77954
  }
77763
77955
 
77956
+ this.SetChartSimpleDoughnut=function(style)
77957
+ {
77958
+ var dest=this.ChartSimpleDoughnut;
77959
+
77960
+ if (style.TextFont)
77961
+ {
77962
+ var item=style.TextFont;
77963
+ if (item.Name) dest.TextFont.Name=item.Name;
77964
+ if (IFrameSplitOperator.IsNumber(item.Size)) dest.TextFont.Size=item.Size;
77965
+ }
77966
+
77967
+ if (style.BorderColor) dest.BorderColor=style.BorderColor;
77968
+
77969
+ if (style.Offset)
77970
+ {
77971
+ var item=style.Offset;
77972
+ if (IFrameSplitOperator.IsNumber(item.X)) dest.Offset.X=item.X;
77973
+ if (IFrameSplitOperator.IsNumber(item.Y)) dest.Offset.Y=item.Y;
77974
+ }
77975
+ }
77976
+
77764
77977
  this.SetChartSimpleRadar=function(style)
77765
77978
  {
77766
77979
  var dest=this.ChartSimpleRadar;
@@ -113076,6 +113289,18 @@ function JSDraw(errorHandler,symbolData)
113076
113289
 
113077
113290
  return result={ DrawData:{ Data:aryData, AryIndex:aryIndex, Radius:radius, AryArea:[{ LineColor:color }] }, DrawType:"DRAW_SIMPLE_RADAR" };
113078
113291
  }
113292
+
113293
+ this.DRAWDOUGHNUT=function(aryData)
113294
+ {
113295
+ var radius=aryData[0];
113296
+ var aryCell=[];
113297
+ for(var i=1;i<aryData.length;++i)
113298
+ {
113299
+ aryCell.push(aryData[i]);
113300
+ }
113301
+
113302
+ return result={ DrawData:{ Data:aryCell, Radius:radius , InnerRadius:radius/2 }, DrawType:"DRAW_SIMPLE_DOUGHNUT" };
113303
+ }
113079
113304
  }
113080
113305
 
113081
113306
 
@@ -113130,7 +113355,7 @@ JSDraw.prototype.IsDrawFunction=function(name)
113130
113355
  'DRAWOVERLAYLINE',"FILLRGN", "FILLRGN2","FILLTOPRGN", "FILLBOTTOMRGN", "FILLVERTICALRGN","FLOATRGN","DRAWSL", "DRAWGBK2","DRAWGBK_DIV",
113131
113356
  "VERTLINE","HORLINE","TIPICON",
113132
113357
  "BUY","SELL","SELLSHORT","BUYSHORT",
113133
- "DRAWLASTBARICON","DRAWLASTBARNUMBER", "DRAWLASTBARTEXT","DRAWTABLE","DRAWPIE","DRAWRADAR",
113358
+ "DRAWLASTBARICON","DRAWLASTBARNUMBER", "DRAWLASTBARTEXT","DRAWTABLE","DRAWPIE","DRAWRADAR","DRAWDOUGHNUT",
113134
113359
  ]);
113135
113360
  if (setFunctionName.has(name)) return true;
113136
113361
 
@@ -120019,6 +120244,10 @@ function JSExecute(ast,option)
120019
120244
  node.Draw=this.Draw.DRAWPIE(args);
120020
120245
  node.Out=[];
120021
120246
  break;
120247
+ case "DRAWDOUGHNUT":
120248
+ node.Draw=this.Draw.DRAWDOUGHNUT(args);
120249
+ node.Out=[];
120250
+ break;
120022
120251
  //雷达图
120023
120252
  case "RADAR_CELL":
120024
120253
  node.Out=this.Draw.RADAR_CELL(args[0],args[1],args[2],args[3]);
@@ -123072,6 +123301,30 @@ function ScriptIndex(name,script,args,option)
123072
123301
  hqChart.ChartPaint.push(chart);
123073
123302
  }
123074
123303
 
123304
+ this.CreateSimpleDoughnut=function(hqChart,windowIndex,varItem,id)
123305
+ {
123306
+ var chart=new ChartSimpleDoughnut();
123307
+ chart.Canvas=hqChart.Canvas;
123308
+ chart.Name=varItem.Name;
123309
+ chart.ChartBorder=hqChart.Frame.SubFrame[windowIndex].Frame.ChartBorder;
123310
+ chart.ChartFrame=hqChart.Frame.SubFrame[windowIndex].Frame;
123311
+
123312
+ if (varItem.Draw && varItem.Draw.DrawData)
123313
+ {
123314
+ var drawData=varItem.Draw.DrawData;
123315
+ if (drawData.Data) chart.Data.Data=drawData.Data;
123316
+ if (drawData.BorderColor) chart.BorderColor=drawData.BorderColor;
123317
+ if (drawData.TextFont) chart.TextFontConfig=drawData.TextFont;
123318
+ if (drawData.TextColor) chart.TextColor=drawData.TextColor;
123319
+ if (IFrameSplitOperator.IsNumber(drawData.XOffset)) chart.Offset.X=drawData.XOffset;
123320
+ if (IFrameSplitOperator.IsNumber(drawData.YOffset)) chart.Offset.Y=drawData.YOffset;
123321
+ if (IFrameSplitOperator.IsPlusNumber(drawData.Radius)) chart.Radius=drawData.Radius;
123322
+ if (IFrameSplitOperator.IsPlusNumber(drawData.InnerRadius)) chart.InnerRadius=drawData.InnerRadius;
123323
+ }
123324
+
123325
+ hqChart.ChartPaint.push(chart);
123326
+ }
123327
+
123075
123328
  this.CreateTradeIcon=function(hqChart,windowIndex,varItem,id)
123076
123329
  {
123077
123330
  var chart=new ChartTradeIcon();
@@ -123954,6 +124207,9 @@ function ScriptIndex(name,script,args,option)
123954
124207
  case "DRAW_SIMPLE_RADAR":
123955
124208
  this.CreateSimpleRadar(hqChart,windowIndex,item,i);
123956
124209
  break;
124210
+ case "DRAW_SIMPLE_DOUGHNUT":
124211
+ this.CreateSimpleDoughnut(hqChart,windowIndex,item,i);
124212
+ break;
123957
124213
  case "BUY":
123958
124214
  case "SELL":
123959
124215
  case "SELLSHORT":
@@ -124307,6 +124563,9 @@ function OverlayScriptIndex(name,script,args,option)
124307
124563
  case "DRAW_SIMPLE_PIE":
124308
124564
  this.CreateSimplePie(hqChart,windowIndex,item,i);
124309
124565
  break;
124566
+ case "DRAW_SIMPLE_DOUGHNUT":
124567
+ this.CreateSimpleDoughnut(hqChart,windowIndex,item,i);
124568
+ break;
124310
124569
  case "DRAW_SIMPLE_RADAR":
124311
124570
  this.CreateSimpleRadar(hqChart,windowIndex,item,i);
124312
124571
  break;
@@ -125385,6 +125644,34 @@ function OverlayScriptIndex(name,script,args,option)
125385
125644
  frame.ChartPaint.push(chart);
125386
125645
  }
125387
125646
 
125647
+ this.CreateSimpleDoughnut=function(hqChart,windowIndex,varItem,id)
125648
+ {
125649
+ var overlayIndex=this.OverlayIndex;
125650
+ var frame=overlayIndex.Frame;
125651
+ var chart=new ChartSimpleDoughnut();
125652
+ chart.Canvas=hqChart.Canvas;
125653
+ chart.Name=varItem.Name;
125654
+ chart.ChartBorder=frame.Frame.ChartBorder;
125655
+ chart.ChartFrame=frame.Frame;
125656
+ chart.Identify=overlayIndex.Identify;
125657
+ chart.HQChart=hqChart;
125658
+
125659
+ if (varItem.Draw && varItem.Draw.DrawData)
125660
+ {
125661
+ var drawData=varItem.Draw.DrawData;
125662
+ if (drawData.Data) chart.Data.Data=drawData.Data;
125663
+ if (drawData.BorderColor) chart.BorderColor=drawData.BorderColor;
125664
+ if (drawData.TextFont) chart.TextFontConfig=drawData.TextFont;
125665
+ if (drawData.TextColor) chart.TextColor=drawData.TextColor;
125666
+ if (IFrameSplitOperator.IsNumber(drawData.XOffset)) chart.Offset.X=drawData.XOffset;
125667
+ if (IFrameSplitOperator.IsNumber(drawData.YOffset)) chart.Offset.Y=drawData.YOffset;
125668
+ if (IFrameSplitOperator.IsPlusNumber(drawData.Radius)) chart.Radius=drawData.Radius;
125669
+ if (IFrameSplitOperator.IsPlusNumber(drawData.InnerRadius)) chart.InnerRadius=drawData.InnerRadius;
125670
+ }
125671
+
125672
+ frame.ChartPaint.push(chart);
125673
+ }
125674
+
125388
125675
  this.CreateSimpleRadar=function(hqChart,windowIndex,varItem,id)
125389
125676
  {
125390
125677
  var overlayIndex=this.OverlayIndex;
@@ -126612,7 +126899,7 @@ function APIScriptIndex(name,script,args,option, isOverlay)
126612
126899
  outVarItem.Draw=drawItem;
126613
126900
  result.push(outVarItem);
126614
126901
  }
126615
- else if (draw.DrawType=="DRAW_SIMPLE_PIE")
126902
+ else if (draw.DrawType=="DRAW_SIMPLE_PIE" || draw.DrawType=="DRAW_SIMPLE_DOUGHNUT")
126616
126903
  {
126617
126904
  drawItem.Name=draw.Name;
126618
126905
  drawItem.Type=draw.Type;
@@ -128252,6 +128539,11 @@ function GetBlackStyle()
128252
128539
  BorderColor:"rgb(220,220,220)",
128253
128540
  },
128254
128541
 
128542
+ ChartSimpleDoughnut:
128543
+ {
128544
+ BorderColor:"rgb(220,220,220)",
128545
+ },
128546
+
128255
128547
  ChartSimpleRadar:
128256
128548
  {
128257
128549
  //TextFont:{ Family:'微软雅黑' , Size:12 },
@@ -148871,7 +149163,7 @@ function JSDialogTooltip()
148871
149163
 
148872
149164
 
148873
149165
  //换手率
148874
- if (MARKET_SUFFIX_NAME.IsSHSZStockA(upperSymbol) && data.FlowCapital>0)
149166
+ if (IFrameSplitOperator.IsNumber(data.FlowCapital))
148875
149167
  {
148876
149168
  aryText.push(this.FormatExchange(data.Vol,data.FlowCapital,'DialogTooltip-Exchange' ));
148877
149169
  }
@@ -149907,7 +150199,7 @@ function JSFloatTooltip()
149907
150199
  if (overlayItem) aryText.unshift(overlayItem);
149908
150200
 
149909
150201
  //换手率
149910
- if (MARKET_SUFFIX_NAME.IsSHSZStockA(upperSymbol) && data.FlowCapital>0)
150202
+ if (IFrameSplitOperator.IsNumber(data.FlowCapital))
149911
150203
  {
149912
150204
  aryText.push(this.FormatExchange(data.Vol,data.FlowCapital,'FloatTooltip-Exchange' ));
149913
150205
  }
@@ -152510,7 +152802,7 @@ function HQChartScriptWorker()
152510
152802
 
152511
152803
 
152512
152804
 
152513
- var HQCHART_VERSION="1.1.14362";
152805
+ var HQCHART_VERSION="1.1.14369";
152514
152806
 
152515
152807
  function PrintHQChartVersion()
152516
152808
  {