hqchart 1.1.13746 → 1.1.13758

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.
@@ -34590,6 +34590,7 @@ function ChartLine()
34590
34590
  this.LineWidth; //线段宽度
34591
34591
  this.DrawType=0; //画图方式 0=无效数平滑 1=无效数不画断开
34592
34592
  this.IsDotLine=false; //虚线
34593
+ this.LineDash=g_JSChartResource.DOTLINE.LineDash;
34593
34594
  this.BreakPoint; //断开的点索引 Set();
34594
34595
 
34595
34596
 
@@ -34635,7 +34636,7 @@ function ChartLine()
34635
34636
 
34636
34637
  this.Canvas.save();
34637
34638
  if (this.LineWidth>0) this.Canvas.lineWidth=this.LineWidth * GetDevicePixelRatio();
34638
- if (this.IsDotLine) this.Canvas.setLineDash(g_JSChartResource.DOTLINE.LineDash); //画虚线
34639
+ if (this.IsDotLine) this.Canvas.setLineDash(this.LineDash); //画虚线
34639
34640
  var bFirstPoint=true;
34640
34641
  var drawCount=0;
34641
34642
  for(var i=this.Data.DataOffset,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j)
@@ -34702,7 +34703,7 @@ function ChartLine()
34702
34703
  this.ClipClient(bHScreen);
34703
34704
  if (this.LineWidth>0) this.Canvas.lineWidth=this.LineWidth * GetDevicePixelRatio();
34704
34705
  this.Canvas.strokeStyle=this.Color;
34705
- if (this.IsDotLine) this.Canvas.setLineDash(g_JSChartResource.DOTLINE.LineDash); //画虚线
34706
+ if (this.IsDotLine) this.Canvas.setLineDash(this.LineDash); //画虚线
34706
34707
 
34707
34708
  var bFirstPoint=true;
34708
34709
  var ptFirst=null;; //第1个点
@@ -34799,7 +34800,7 @@ function ChartLine()
34799
34800
  this.ClipClient(bHScreen);
34800
34801
  if (this.LineWidth>0) this.Canvas.lineWidth=this.LineWidth * GetDevicePixelRatio();
34801
34802
  this.Canvas.strokeStyle=this.Color;
34802
- if (this.IsDotLine) this.Canvas.setLineDash(g_JSChartResource.DOTLINE.LineDash); //画虚线
34803
+ if (this.IsDotLine) this.Canvas.setLineDash(this.LineDash); //画虚线
34803
34804
 
34804
34805
  var bFirstPoint=true;
34805
34806
  var ptFirst=null;; //第1个点
@@ -40109,7 +40110,9 @@ function ChartClipColorStick()
40109
40110
  var yBottom=this.ChartFrame.GetYFromData(this.BaseValue);
40110
40111
  var aryBar=[], aryDiffBar=[], aryText=[];
40111
40112
  var preValue=null;
40112
- for(var i=this.Data.DataOffset,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j,xOffset+=(dataWidth+distanceWidth))
40113
+ var start=this.Data.DataOffset;
40114
+ if (start-1>0) preValue=this.Data.Data[start-1]; //上一个数值
40115
+ for(var i=start,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j,xOffset+=(dataWidth+distanceWidth))
40113
40116
  {
40114
40117
  var value=this.Data.Data[i];
40115
40118
  if (value==null) continue;
@@ -62473,7 +62476,7 @@ function ChartDrawHLine()
62473
62476
  this.ButtonBGColor='rgb(190,190,190)';
62474
62477
  this.ButtonSpace=3;
62475
62478
 
62476
- this.TextMargin={ Left:0, Right:0 };
62479
+ this.TextMargin={ Left:0, Right:0, Top:0, Bottom:0, YOffset:4*GetDevicePixelRatio() };
62477
62480
 
62478
62481
  this.AlwaysShowLab=false; //总是显示标签
62479
62482
 
@@ -62497,7 +62500,9 @@ function ChartDrawHLine()
62497
62500
  `${12*GetDevicePixelRatio()}px 微软雅黑`,
62498
62501
  `${12*GetDevicePixelRatio()}px 微软雅黑`,
62499
62502
  ],
62500
- };
62503
+ };
62504
+
62505
+ this.LableInfo; //{ Position:2=右侧外部 }
62501
62506
 
62502
62507
  //内部变量
62503
62508
  this.ColseButtonSize=0;
@@ -62505,7 +62510,7 @@ function ChartDrawHLine()
62505
62510
  this.ButtonBGWidth=0;
62506
62511
  this.VerticalButtonInfo={ Width:0, Height:0 }; //垂直按钮信息
62507
62512
 
62508
-
62513
+ this.IsPointIn=this.IsPointIn_XYValue_Line;
62509
62514
 
62510
62515
  this.SetOption=function(option)
62511
62516
  {
@@ -62566,6 +62571,9 @@ function ChartDrawHLine()
62566
62571
  var item=option.TextMargin;
62567
62572
  if (IFrameSplitOperator.IsNumber(item.Left)) this.TextMargin.Left=item.Left;
62568
62573
  if (IFrameSplitOperator.IsNumber(item.Right)) this.TextMargin.Right=item.Right;
62574
+ if (IFrameSplitOperator.IsNumber(item.Top)) this.TextMargin.Top=item.Top;
62575
+ if (IFrameSplitOperator.IsNumber(item.Bottom)) this.TextMargin.Bottom=item.Bottom;
62576
+ if (IFrameSplitOperator.IsNumber(item.YOffset)) this.TextMargin.YOffset=item.YOffset;
62569
62577
  }
62570
62578
  }
62571
62579
  }
@@ -62582,10 +62590,6 @@ function ChartDrawHLine()
62582
62590
  return storageData;
62583
62591
  }
62584
62592
 
62585
-
62586
- this.IsPointIn=this.IsPointIn_XYValue_Line;
62587
-
62588
-
62589
62593
  /*
62590
62594
  this.GetXYCoordinate=function()
62591
62595
  {
@@ -62642,7 +62646,7 @@ function ChartDrawHLine()
62642
62646
  this.ColseButtonSize=0;
62643
62647
  this.SettingButtonSize=0;
62644
62648
  this.ButtonBGWidth=0;
62645
-
62649
+ this.LableInfo=null;
62646
62650
  this.VerticalButtonInfo.Width=0;
62647
62651
  this.VerticalButtonInfo.Height=0;
62648
62652
 
@@ -62705,7 +62709,7 @@ function ChartDrawHLine()
62705
62709
  }
62706
62710
  this.LinePoint.push(line);
62707
62711
 
62708
- if (bVisibleRange)
62712
+ if (bVisibleRange) //在可视范围内
62709
62713
  {
62710
62714
  var yValue=this.Frame.GetYData(drawPoint[0].Y, false);
62711
62715
  var strPrice=yValue.toFixed(this.Precision);
@@ -62719,15 +62723,11 @@ function ChartDrawHLine()
62719
62723
  this.DrawPriceText(strPrice, line.Start, line.End, 1);
62720
62724
  }
62721
62725
  }
62722
-
62723
- var labInfo;
62724
- if (this.GetLabelCallback) labInfo=this.GetLabelCallback(this);
62726
+
62727
+ if (this.GetLabelCallback) this.LableInfo=this.GetLabelCallback(this);
62725
62728
 
62726
62729
  this.AryShowButton=this.GetShowButton(); //获取按钮
62727
-
62728
- //框架内的描述信息
62729
- if (labInfo && bVisibleRange)
62730
- this.DrawLab(labInfo, drawPoint[0].Y);
62730
+ if (bVisibleRange) this.DrawInternalLabel(drawPoint[0].Y); //内部价格标签
62731
62731
 
62732
62732
  //画中心点
62733
62733
  if (bVisibleRange)
@@ -62744,11 +62744,12 @@ function ChartDrawHLine()
62744
62744
  {
62745
62745
  var rtDraw={ };
62746
62746
  this.CalculateButtonSize();
62747
- this.DrawValueText(drawPoint[0].Y, rtDraw, labInfo);
62748
- if (labInfo) this.DrawRightLab(labInfo, rtDraw);
62749
- if (labInfo && bVisibleRange) this.DrawCustomHLine(labInfo, drawPoint[0].Y);
62747
+ this.DrawValueText(drawPoint[0].Y, rtDraw);
62748
+ this.DrawRightLabel(rtDraw);
62749
+ if (bVisibleRange) this.DrawCustomHLine(drawPoint[0].Y);
62750
62750
  }
62751
62751
 
62752
+
62752
62753
  //鼠标是否在按钮上
62753
62754
  if (moveonPoint && mouseStatus)
62754
62755
  {
@@ -62796,113 +62797,130 @@ function ChartDrawHLine()
62796
62797
  ++lineCount;
62797
62798
  }
62798
62799
 
62799
- var size={ Width:maxWidth, Height: lineCount*(lineHeight+lineSpace)+lineSpace, NameWidth:maxNameWidth, TextWidth:maxTextWidth, LineHeight:lineHeight };
62800
+ var size={ Width:maxWidth, Height:lineCount*lineHeight+(lineCount-1)*lineSpace, NameWidth:maxNameWidth, TextWidth:maxTextWidth, LineHeight:lineHeight };
62801
+ if (labInfo.LabelMargin)
62802
+ {
62803
+ var item=labInfo.LabelMargin;
62804
+ if (IFrameSplitOperator.IsNumber(item.Left)) size.Width+=item.Left;
62805
+ if (IFrameSplitOperator.IsNumber(item.Right)) size.Width+=item.Right;
62806
+ if (IFrameSplitOperator.IsNumber(item.Top)) size.Height+=item.Top;
62807
+ if (IFrameSplitOperator.IsNumber(item.Bottom)) size.Height+=item.Bottom;
62808
+ }
62800
62809
 
62801
62810
  return size;
62802
62811
  }
62803
62812
 
62804
- this.DrawLab=function(labInfo, y)
62813
+ //绘制窗口内部标签
62814
+ this.DrawInternalLabel=function(y)
62805
62815
  {
62806
- if (!labInfo) return;
62807
- if (!IFrameSplitOperator.IsNonEmptyArray(labInfo.AryText)) return;
62808
- if (labInfo.Position===2) return;
62816
+ if (!this.LableInfo || !IFrameSplitOperator.IsNonEmptyArray(this.LableInfo.AryText)) return;
62817
+ if (this.LableInfo.Position==2) return;
62809
62818
 
62810
- var left=this.Frame.ChartBorder.GetLeft();
62811
- var right=this.Frame.ChartBorder.GetRight();
62812
- var labSize=this.CalculateLabSize(labInfo);
62819
+ var border=this.Frame.GetBorder();
62820
+ var left=border.Left;
62821
+ var right=border.Right;
62822
+ var labSize=this.CalculateLabSize(this.LableInfo);
62813
62823
  var drawLeft=right-labSize.Width;
62824
+ var drawRight=drawLeft+labSize.Width;
62814
62825
  var drawTop=y-labSize.Height-1;
62826
+ if (drawTop<=border.TopEx) drawTop=y+1;
62827
+
62828
+ var rtLabel={ Left:drawLeft, Right:drawRight, Top:drawTop, Width:labSize.Width, Height:labSize.Height };
62829
+ rtLabel.Bottom=rtLabel.Top+rtLabel.Height;
62815
62830
 
62831
+ this.DrawLabel(this.LableInfo, labSize, rtLabel);
62832
+ }
62833
+
62834
+ //绘制标签页
62835
+ this.DrawLabel=function(labelInfo, labelSize, rtLabel)
62836
+ {
62816
62837
  //背景色
62817
- if (labInfo.BGColor)
62838
+ if (labelInfo.BGColor)
62818
62839
  {
62819
- this.Canvas.fillStyle=labInfo.BGColor;
62820
- var rtTop=y-labSize.Height-4;
62821
- this.Canvas.fillRect(ToFixedRect(drawLeft),ToFixedRect(rtTop),ToFixedRect(right+drawLeft),ToFixedRect(y-rtTop));
62840
+ this.Canvas.fillStyle=labelInfo.BGColor;
62841
+ this.Canvas.fillRect(ToFixedRect(rtLabel.Left),ToFixedRect(rtLabel.Top),ToFixedRect(rtLabel.Width),ToFixedRect(rtLabel.Height));
62822
62842
  }
62823
62843
 
62824
- var yText=drawTop;
62825
- for(var i=0;i<labInfo.AryText.length;++i)
62844
+ var labelMargin=labelInfo.LabelMargin;
62845
+ var lineSpace=0;
62846
+ if (IFrameSplitOperator.IsNumber(labelInfo.LineSpace)) lineSpace=labelInfo.LineSpace;
62847
+
62848
+ var yText=rtLabel.Top;
62849
+ var xText=rtLabel.Left;
62850
+ var yRightText=rtLabel.Right;
62851
+
62852
+ if (labelMargin)
62826
62853
  {
62827
- var item=labInfo.AryText[i];
62854
+ if (IFrameSplitOperator.IsNumber(labelMargin.Left)) xText+=labelMargin.Left;
62855
+ if (IFrameSplitOperator.IsNumber(labelMargin.Right)) yRightText-=labelMargin.Right;
62856
+ if (IFrameSplitOperator.IsNumber(labelMargin.Top)) yText+=labelMargin.Top;
62857
+
62858
+ }
62859
+
62860
+ this.Canvas.font=this.TextFont;
62861
+ this.Canvas.textBaseline="top";
62862
+ for(var i=0;i<labelInfo.AryText.length;++i)
62863
+ {
62864
+ if (i>0) yText+=lineSpace;
62865
+ var item=labelInfo.AryText[i];
62828
62866
  if (item.Name)
62829
62867
  {
62868
+ this.Canvas.textAlign="left";
62830
62869
  this.Canvas.fillStyle=item.NameColor;
62831
- this.Canvas.fillText(item.Name,drawLeft+1,yText+1);
62870
+ this.Canvas.fillText(item.Name,xText,yText);
62832
62871
  }
62833
62872
 
62834
62873
  if (item.Text)
62835
62874
  {
62875
+ this.Canvas.textAlign="right";
62836
62876
  this.Canvas.fillStyle=item.TextColor;
62837
- this.Canvas.fillText(item.Text,drawLeft+labSize.NameWidth+1,yText+1);
62877
+ this.Canvas.fillText(item.Text,yRightText,yText);
62838
62878
  }
62839
62879
 
62840
- yText+=labSize.LineHeight;
62880
+ yText+=labelSize.LineHeight;
62841
62881
  }
62842
62882
  }
62843
62883
 
62844
- this.DrawRightLab=function(labInfo, rtLeftDraw)
62884
+ this.DrawRightLabel=function(rtLeftDraw)
62845
62885
  {
62846
- if (!labInfo) return;
62847
- if (!IFrameSplitOperator.IsNonEmptyArray(labInfo.AryText)) return;
62848
- if (labInfo.Position!=2) return;
62849
- var labSize=this.CalculateLabSize(labInfo);
62886
+ if (!this.LableInfo || !IFrameSplitOperator.IsNonEmptyArray(this.LableInfo.AryText)) return;
62887
+ if (this.LableInfo.Position!=2) return;
62888
+
62889
+ var labSize=this.CalculateLabSize(this.LableInfo);
62890
+ var border=this.Frame.GetBorder();
62850
62891
 
62851
62892
  var drawLeft=rtLeftDraw.Right-labSize.Width;
62852
62893
  if (drawLeft<rtLeftDraw.Left) drawLeft=rtLeftDraw.Left;
62853
62894
  var drawRight=drawLeft+labSize.Width;
62895
+
62854
62896
  var drawTop=rtLeftDraw.Bottom;
62855
- var lineSpace=0;
62856
- if (IFrameSplitOperator.IsNumber(labInfo.LineSpace)) lineSpace=labInfo.LineSpace;
62857
62897
 
62858
- //背景色
62859
- var rtLab={ Left:drawLeft, Top:drawTop, Width:labSize.Width, Height:labSize.Height }
62860
- rtLab.Right=rtLab.Left+rtLab.Width;
62861
- rtLab.Bottom=rtLab.Top+rtLab.Height;
62862
- if (labInfo.BGColor)
62898
+ var rtLabel={ Left:drawLeft, Right:drawRight, Top:drawTop, Width:labSize.Width, Height:labSize.Height };
62899
+ rtLabel.Bottom=rtLabel.Top+rtLabel.Height;
62900
+ if (rtLabel.Bottom>border.Bottom) //标签页超过窗口底部 绘制到价格标签上面
62863
62901
  {
62864
- this.Canvas.fillStyle=labInfo.BGColor;
62865
- this.Canvas.fillRect(ToFixedRect(rtLab.Left),ToFixedRect(rtLab.Top),ToFixedRect(rtLab.Width),ToFixedRect(rtLab.Height));
62866
- }
62867
-
62868
- var yText=drawTop+1+lineSpace;
62869
- this.Canvas.textBaseline="top";
62870
- for(var i=0;i<labInfo.AryText.length;++i)
62871
- {
62872
- var item=labInfo.AryText[i];
62873
- if (item.Name)
62874
- {
62875
- this.Canvas.textAlign="left";
62876
- this.Canvas.fillStyle=item.NameColor;
62877
- this.Canvas.fillText(item.Name,drawLeft+1,yText+1);
62878
- }
62879
-
62880
- if (item.Text)
62881
- {
62882
- this.Canvas.textAlign="right";
62883
- this.Canvas.fillStyle=item.TextColor;
62884
- this.Canvas.fillText(item.Text,drawRight-1,yText+1);
62885
- }
62886
-
62887
- yText+=labSize.LineHeight+lineSpace;
62902
+ rtLabel.Bottom=rtLeftDraw.Top;
62903
+ rtLabel.Top=rtLabel.Bottom-rtLabel.Height;
62888
62904
  }
62889
62905
 
62890
- this.DrawVerticalButton(rtLab);
62906
+ this.DrawLabel(this.LableInfo, labSize, rtLabel);
62907
+
62908
+ this.DrawVerticalButton(rtLabel);
62891
62909
  }
62892
62910
 
62893
- this.DrawCustomHLine=function(labInfo, yLine)
62911
+ this.DrawCustomHLine=function(yLine)
62894
62912
  {
62895
- if (!labInfo) return;
62896
- if (!IFrameSplitOperator.IsNonEmptyArray(labInfo.AryLine)) return;
62913
+ if (!this.LableInfo) return;
62914
+ if (!IFrameSplitOperator.IsNonEmptyArray(this.LableInfo.AryLine)) return;
62897
62915
 
62898
62916
  var left=this.Frame.ChartBorder.GetLeft();
62899
62917
  var right=this.Frame.ChartBorder.GetRight();
62900
62918
  var pixelRatio=GetDevicePixelRatio();
62901
62919
 
62902
62920
  var yMax=yLine, yMin=yLine;
62903
- for(var i=0;i<labInfo.AryLine.length;++i)
62921
+ for(var i=0;i<this.LableInfo.AryLine.length;++i)
62904
62922
  {
62905
- var item=labInfo.AryLine[i];
62923
+ var item=this.LableInfo.AryLine[i];
62906
62924
  if (!IFrameSplitOperator.IsNumber(item.Value)) continue;
62907
62925
  if (item.Width<0) continue;
62908
62926
 
@@ -62927,9 +62945,9 @@ function ChartDrawHLine()
62927
62945
  if (yMin>yFixed) yMin=yFixed;
62928
62946
  }
62929
62947
 
62930
- if (yMax!=yMin && labInfo.VLine)
62948
+ if (yMax!=yMin && this.LableInfo.VLine)
62931
62949
  {
62932
- var item=labInfo.VLine;
62950
+ var item=this.LableInfo.VLine;
62933
62951
  var x=left+20*pixelRatio;
62934
62952
  if (IFrameSplitOperator.IsNumber(item.XOffset)) x=left+item.XOffset*pixelRatio;
62935
62953
  x=ToFixedPoint(x);
@@ -62943,14 +62961,14 @@ function ChartDrawHLine()
62943
62961
  }
62944
62962
  }
62945
62963
 
62946
- this.DrawValueText=function(y, rtDraw, labInfo)
62964
+ this.DrawValueText=function(y, rtDraw)
62947
62965
  {
62948
62966
  var left=this.Frame.ChartBorder.GetLeft();
62949
62967
  var right=this.Frame.ChartBorder.GetRight();
62950
62968
  var top=this.Frame.ChartBorder.GetTopEx();
62951
62969
  var bottom=this.Frame.ChartBorder.GetBottomEx();
62952
62970
  var pixelTatio = GetDevicePixelRatio();
62953
-
62971
+ var labInfo=this.LabelInfo;
62954
62972
  if (labInfo && IFrameSplitOperator.IsNumber(labInfo.TopOffset)) top-=labInfo.TopOffset;
62955
62973
  if (labInfo && IFrameSplitOperator.IsNumber(labInfo.BottomOffset)) bottom+=labInfo.BottomOffset;
62956
62974
 
@@ -62985,12 +63003,15 @@ function ChartDrawHLine()
62985
63003
  this.Canvas.font=this.Font;
62986
63004
  var textWidth=this.Canvas.measureText(strValue).width;
62987
63005
  var lineHeight=this.GetFontHeight();
62988
- var rtBG={ Left:right+this.RightSpaceWidth, Top:y- lineHeight/2, Width:textWidth+4, Height:lineHeight };
62989
- //rtBG.Right=rtBG.Left+rtBG.Width;
62990
- rtBG.Bottom=rtBG.Top+rtBG.Height;
63006
+ var rtBG={ Left:right+this.RightSpaceWidth, YCenter:y, Width:textWidth, Height:lineHeight };
63007
+ rtBG.Height+=(this.TextMargin.Top+this.TextMargin.Bottom);
62991
63008
  rtBG.Width+=(this.TextMargin.Left+this.TextMargin.Right);
62992
63009
  rtBG.Right=rtBG.Left+rtBG.Width;
62993
- var xText=rtBG.Left+this.TextMargin.Left+2;
63010
+ rtBG.Top=rtBG.YCenter-rtBG.Height/2;
63011
+ rtBG.Bottom=rtBG.Top+rtBG.Height;
63012
+
63013
+ var xText=rtBG.Left+this.TextMargin.Left;
63014
+ var yText=rtBG.Top+this.TextMargin.Top+this.TextMargin.YOffset;
62994
63015
 
62995
63016
  if (this.ButtonPosition==1)
62996
63017
  {
@@ -63003,8 +63024,8 @@ function ChartDrawHLine()
63003
63024
 
63004
63025
  this.Canvas.fillStyle=this.ValueTextColor
63005
63026
  this.Canvas.textAlign="left";
63006
- this.Canvas.textBaseline="middle";
63007
- this.Canvas.fillText(strValue,xText,y);
63027
+ this.Canvas.textBaseline="top";
63028
+ this.Canvas.fillText(strValue,xText,yText);
63008
63029
 
63009
63030
  rtDraw.Left=rtBG.Left;
63010
63031
  rtDraw.Top=rtBG.Top;
@@ -109090,6 +109111,12 @@ function JSDraw(errorHandler,symbolData)
109090
109111
  return offset;
109091
109112
  }
109092
109113
 
109114
+ this.LINEDASH=function(aryData)
109115
+ {
109116
+ if (IFrameSplitOperator.IsNonEmptyArray(aryData)) return aryData.slice();
109117
+ return [];
109118
+ }
109119
+
109093
109120
  this.KLINETYPE=function(type)
109094
109121
  {
109095
109122
  return type;
@@ -115961,6 +115988,7 @@ function JSExecute(ast,option)
115961
115988
  var isFirstDraw=null;
115962
115989
  let xOffset=null, yOffset=null;
115963
115990
  var klineType=null;
115991
+ var lineDash=null;
115964
115992
  for(let j=0; j<item.Expression.Expression.length; ++j)
115965
115993
  {
115966
115994
  let itemExpression=item.Expression.Expression[j];
@@ -116089,6 +116117,11 @@ function JSExecute(ast,option)
116089
116117
  {
116090
116118
  yOffset=itemExpression.Out;
116091
116119
  }
116120
+ else if (itemExpression.Callee.Name=="LINEDASH")
116121
+ {
116122
+ if (IFrameSplitOperator.IsNonEmptyArray(itemExpression.Out))
116123
+ lineDash=itemExpression.Out.slice();
116124
+ }
116092
116125
  else if (itemExpression.Callee.Name=="FIRSTDRAW")
116093
116126
  {
116094
116127
  if (itemExpression.Out===0) isFirstDraw=false;
@@ -116253,6 +116286,7 @@ function JSExecute(ast,option)
116253
116286
  if (isShow == false) value.IsShow = false;
116254
116287
  if (isExData==true) value.IsExData = true;
116255
116288
  if (isDotLine==true) value.IsDotLine=true;
116289
+ if (IFrameSplitOperator.IsNonEmptyArray(lineDash)) value.LineDash=lineDash;
116256
116290
  if (isOverlayLine==true) value.IsOverlayLine=true;
116257
116291
  if (isSingleLine==true) value.IsSingleLine=true;
116258
116292
  if (isNoneName==true) value.NoneName=true;
@@ -116265,6 +116299,7 @@ function JSExecute(ast,option)
116265
116299
  var outVar={Name:draw.Name, Draw:draw, Type:1};
116266
116300
  if (color) outVar.Color=color;
116267
116301
  if (isDotLine==true) outVar.IsDotLine=true;
116302
+ if (IFrameSplitOperator.IsNonEmptyArray(lineDash)) outVar.LineDash=lineDash;
116268
116303
  if (lineWidth) outVar.LineWidth=lineWidth;
116269
116304
  if (isDrawAbove) outVar.IsDrawAbove=true;
116270
116305
  if (isDrawCenter) outVar.IsDrawCenter=true;
@@ -116289,6 +116324,7 @@ function JSExecute(ast,option)
116289
116324
  if (isShow==false) value.IsShow=false;
116290
116325
  if (isExData==true) value.IsExData = true;
116291
116326
  if (isDotLine==true) value.IsDotLine=true;
116327
+ if (IFrameSplitOperator.IsNonEmptyArray(lineDash)) value.LineDash=lineDash;
116292
116328
  if (isOverlayLine==true) value.IsOverlayLine=true;
116293
116329
  if (isSingleLine==true) value.IsSingleLine=true;
116294
116330
  if (isShowTitle==false) value.IsShowTitle=false;
@@ -116776,6 +116812,9 @@ function JSExecute(ast,option)
116776
116812
  case "YMOVE":
116777
116813
  node.Out=this.Draw.YMOVE(args[0]);
116778
116814
  break;
116815
+ case "LINEDASH":
116816
+ node.Out=this.Draw.LINEDASH(args);
116817
+ break;
116779
116818
  case "FIRSTDRAW":
116780
116819
  node.Out=this.Draw.FIRSTDRAW(args[0]);
116781
116820
  break;
@@ -119035,7 +119074,15 @@ function ScriptIndex(name,script,args,option)
119035
119074
  if (!isNaN(width) && width>0) line.LineWidth=width;
119036
119075
  }
119037
119076
 
119038
- if (varItem.IsDotLine) line.IsDotLine=true; //虚线
119077
+ if (varItem.IsDotLine)
119078
+ {
119079
+ line.IsDotLine=true; //虚线
119080
+ line.LineDash=g_JSChartResource.DOTLINE.LineDash.slice();
119081
+ }
119082
+
119083
+ //虚线设置
119084
+ if (IFrameSplitOperator.IsNonEmptyArray(varItem.LineDash)) line.LineDash=varItem.LineDash;
119085
+
119039
119086
  if (varItem.IsShow==false) line.IsShow=false;
119040
119087
 
119041
119088
  let titleIndex=windowIndex+1;
@@ -138585,7 +138632,7 @@ function ScrollBarBGChart()
138585
138632
 
138586
138633
 
138587
138634
 
138588
- var HQCHART_VERSION="1.1.13745";
138635
+ var HQCHART_VERSION="1.1.13757";
138589
138636
 
138590
138637
  function PrintHQChartVersion()
138591
138638
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.13745";
8
+ var HQCHART_VERSION="1.1.13757";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {