hqchart 1.1.13743 → 1.1.13754

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个点
@@ -39971,16 +39972,38 @@ function ChartClipColorStick()
39971
39972
  this.UpColor=g_JSChartResource.UpBarColor;
39972
39973
  this.DownColor=g_JSChartResource.DownBarColor;
39973
39974
  this.LineWidth=1;
39975
+ this.Style=0; //1=同方向 0=上下两个方向
39976
+
39974
39977
  //差值线
39975
39978
  this.DownDiffColor=g_JSChartResource.DownBarColor;
39976
39979
  this.UpDiffColor=g_JSChartResource.UpBarColor;
39977
39980
 
39981
+ //文字
39982
+ this.TextLabelConfig=
39983
+ {
39984
+ Font:`${12*GetDevicePixelRatio()}px 微软雅黑`,
39985
+ TextMargin:{ Left:2, Right:2, Bottom:2, Top:2 },
39986
+ TextColor:"rgb(230,230,230)",
39987
+ UpColor:"rgb(137,16,19)",
39988
+ DownColor:"rgb(44,104,57)",
39989
+ UnchangeColor:"rgb(111,112,115)",
39990
+ BorderColor:"rgb(0,0,0)",
39991
+
39992
+ //缓存
39993
+ LabelWidth:0,
39994
+ TextHeight:0,
39995
+ MaxTextWidth:0,
39996
+ }
39997
+
39978
39998
  this.BaseLineColor; //基准线
39979
39999
 
39980
40000
  this.BaseValue=0;
39981
40001
  this.Super_GetMaxMin=this.GetMaxMin; //父类的方法
39982
40002
  this.ValueRange; //{ Max:, Min: } //固定最大最小值
39983
40003
 
40004
+ this.IsShowText=false;
40005
+
40006
+
39984
40007
  this.SetOption=function(option)
39985
40008
  {
39986
40009
  if (!option) return;
@@ -39991,11 +40014,18 @@ function ChartClipColorStick()
39991
40014
  if (option.UpDiffColor) this.UpDiffColor=option.UpDiffColor;
39992
40015
  if (option.BaseLineColor) this.BaseLineColor=option.BaseLineColor;
39993
40016
  if (IFrameSplitOperator.IsNumber(option.BaseValue)) this.BaseValue=option.BaseValue;
40017
+ if (IFrameSplitOperator.IsNumber(option.Style)) this.Style=option.Style;
39994
40018
  if (option.ValueRange) this.ValueRange=option.ValueRange;
40019
+
39995
40020
  }
39996
40021
 
39997
40022
  this.Draw=function()
39998
40023
  {
40024
+ this.IsShowText=false;
40025
+ this.TextLabelConfig.LabelWidth=0;
40026
+ this.TextLabelConfig.TextHeight=0;
40027
+ this.TextLabelConfig.MaxTextWidth=0;
40028
+
39999
40029
  if (!this.IsShow || this.ChartFrame.IsMinSize || !this.IsVisible) return;
40000
40030
  if (this.IsShowIndexTitleOnly()) return;
40001
40031
  if (this.IsHideScriptIndex()) return;
@@ -40006,23 +40036,44 @@ function ChartClipColorStick()
40006
40036
  return;
40007
40037
  }
40008
40038
 
40009
- this.Canvas.save();
40010
40039
  var dataWidth=this.ChartFrame.DataWidth;
40040
+ var distanceWidth=this.ChartFrame.DistanceWidth;
40041
+ var xPointCount=this.ChartFrame.XPointCount;
40042
+ var bHScreen=this.ChartFrame.IsHScreen===true;
40043
+
40011
40044
  var lineWidth=this.LineWidth*GetDevicePixelRatio();
40012
40045
  if (this.LineWidth==50) lineWidth=dataWidth;
40013
40046
  else if (lineWidth>dataWidth) lineWidth=dataWidth;
40014
-
40047
+
40048
+ if (!bHScreen)
40049
+ {
40050
+ var itemWidth=dataWidth+distanceWidth;
40051
+ var bMinute=this.IsMinuteFrame();
40052
+ if (bMinute)
40053
+ {
40054
+ var border=this.ChartBorder.GetBorder();
40055
+ itemWidth=(border.Right-border.Left)/(xPointCount-1);
40056
+ }
40057
+
40058
+ this.Canvas.font=this.TextLabelConfig.Font;
40059
+ this.TextLabelConfig.MaxTextWidth=this.Canvas.measureText("-888").width;
40060
+ this.TextLabelConfig.LabelWidth=this.TextLabelConfig.MaxTextWidth+this.TextLabelConfig.TextMargin.Left+this.TextLabelConfig.TextMargin.Right;
40061
+ this.IsShowText=itemWidth>this.TextLabelConfig.LabelWidth;
40062
+ this.TextLabelConfig.TextHeight=this.Canvas.measureText("擎").width;
40063
+ }
40064
+
40065
+ this.Canvas.save();
40015
40066
  if (IFrameSplitOperator.IsNumber(this.BaseValue) && this.BaseValue!=0)
40016
40067
  {
40017
40068
  this.DrawBaseLine();
40018
40069
 
40019
- if (this.BaseValue>0) this.DrawBars(lineWidth, true);
40020
- else this.DrawBars(lineWidth, false);
40070
+ if (this.BaseValue>0) this.DrawBars(lineWidth, true, true);
40071
+ else this.DrawBars(lineWidth, false, true);
40021
40072
  }
40022
40073
  else
40023
40074
  {
40024
40075
  //上下分开画
40025
- this.DrawBars(lineWidth, true);
40076
+ this.DrawBars(lineWidth, true, true);
40026
40077
  this.DrawBars(lineWidth, false);
40027
40078
  }
40028
40079
 
@@ -40030,15 +40081,15 @@ function ChartClipColorStick()
40030
40081
  this.Canvas.restore();
40031
40082
  }
40032
40083
 
40033
- this.DrawBars=function(lineWidth, bUpBar)
40084
+ this.DrawBars=function(lineWidth, bUpBar, bDrawLabel)
40034
40085
  {
40035
40086
  var isMinute=this.IsMinuteFrame();
40036
40087
  var dataWidth=this.ChartFrame.DataWidth;
40037
40088
  var distanceWidth=this.ChartFrame.DistanceWidth;
40038
40089
  var xPointCount=this.ChartFrame.XPointCount;
40039
- var isHSCreen=this.ChartFrame.IsHScreen===true;
40090
+ var bHScreen=this.ChartFrame.IsHScreen===true;
40040
40091
 
40041
- if (isHSCreen)
40092
+ if (bHScreen)
40042
40093
  {
40043
40094
  var border=this.ChartBorder.GetHScreenBorder();
40044
40095
  var xOffset=border.TopEx+distanceWidth/2.0+g_JSChartResource.FrameLeftMargin;
@@ -40057,19 +40108,14 @@ function ChartClipColorStick()
40057
40108
  }
40058
40109
 
40059
40110
  var yBottom=this.ChartFrame.GetYFromData(this.BaseValue);
40060
- var aryBar=[], aryDiffBar=[];
40061
- for(var i=this.Data.DataOffset,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j,xOffset+=(dataWidth+distanceWidth))
40111
+ var aryBar=[], aryDiffBar=[], aryText=[];
40112
+ var preValue=null;
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))
40062
40116
  {
40063
40117
  var value=this.Data.Data[i];
40064
40118
  if (value==null) continue;
40065
- if (bUpBar)
40066
- {
40067
- if (value<0) continue;
40068
- }
40069
- else
40070
- {
40071
- if (value>=0) continue;
40072
- }
40073
40119
 
40074
40120
  if (isMinute)
40075
40121
  {
@@ -40085,6 +40131,21 @@ function ChartClipColorStick()
40085
40131
 
40086
40132
  if (x>chartright) break;
40087
40133
 
40134
+ var textItem={ X:x, Value:value };
40135
+ if (IFrameSplitOperator.IsNumber(preValue)) textItem.DiffValue=value-preValue;
40136
+ aryText.push(textItem);
40137
+
40138
+ preValue=value;
40139
+
40140
+ if (bUpBar)
40141
+ {
40142
+ if (value<0) continue;
40143
+ }
40144
+ else
40145
+ {
40146
+ if (value>=0) continue;
40147
+ }
40148
+
40088
40149
  var bDiffBar=false;
40089
40150
  var diffValue=null;
40090
40151
  if (this.BaseValue>0)
@@ -40092,7 +40153,10 @@ function ChartClipColorStick()
40092
40153
  if (value<this.BaseValue)
40093
40154
  {
40094
40155
  bDiffBar=true;
40095
- diffValue=this.BaseValue-(this.BaseValue-value);
40156
+ if (this.Style==1)
40157
+ diffValue=this.BaseValue+(this.BaseValue-value);
40158
+ else
40159
+ diffValue=this.BaseValue-(this.BaseValue-value);
40096
40160
  }
40097
40161
  }
40098
40162
  else if (this.BaseValue<0)
@@ -40100,19 +40164,22 @@ function ChartClipColorStick()
40100
40164
  if (value>this.BaseValue)
40101
40165
  {
40102
40166
  bDiffBar=true;
40103
- diffValue=this.BaseValue+(value-this.BaseValue)
40167
+ if (this.Style==1)
40168
+ diffValue=this.BaseValue-(value-this.BaseValue);
40169
+ else
40170
+ diffValue=this.BaseValue+(value-this.BaseValue)
40104
40171
  }
40105
40172
  }
40106
40173
 
40107
40174
  if (!bDiffBar)
40108
40175
  {
40109
40176
  var y=this.ChartFrame.GetYFromData(value);
40110
- aryBar.push({X:x, Y:y});
40177
+ aryBar.push({X:x, Y:y });
40111
40178
  }
40112
40179
  else
40113
40180
  {
40114
40181
  var y=this.ChartFrame.GetYFromData(diffValue);
40115
- aryDiffBar.push({X:x, Y:y});
40182
+ aryDiffBar.push({X:x, Y:y });
40116
40183
  }
40117
40184
  }
40118
40185
 
@@ -40121,6 +40188,7 @@ function ChartClipColorStick()
40121
40188
  else this.Canvas.strokeStyle=this.DownColor;
40122
40189
 
40123
40190
  this.DrawStick(aryBar,lineWidth,yBottom);
40191
+
40124
40192
 
40125
40193
  if (this.BaseValue>0)
40126
40194
  {
@@ -40133,13 +40201,14 @@ function ChartClipColorStick()
40133
40201
  this.DrawStick(aryDiffBar,lineWidth,yBottom);
40134
40202
  }
40135
40203
 
40204
+ if (this.IsShowText && bDrawLabel) this.DrawStickText(aryText);
40136
40205
  }
40137
40206
 
40138
40207
  this.DrawStick=function(aryData, lineWidth, yBottom)
40139
40208
  {
40140
40209
  if (!IFrameSplitOperator.IsNonEmptyArray(aryData)) return;
40141
40210
 
40142
- var isHSCreen=this.ChartFrame.IsHScreen===true;
40211
+ var bHScreen=this.ChartFrame.IsHScreen===true;
40143
40212
  var drawCount=0;
40144
40213
  this.Canvas.beginPath();
40145
40214
  for(var i=0; i<aryData.length; ++i)
@@ -40148,7 +40217,7 @@ function ChartClipColorStick()
40148
40217
  var y=item.Y;
40149
40218
  var xFix=ToFixedPoint2(lineWidth, item.X); //毛边修正
40150
40219
 
40151
- if (isHSCreen)
40220
+ if (bHScreen)
40152
40221
  {
40153
40222
  this.Canvas.moveTo(yBottom,ToFixedPoint(x));
40154
40223
  this.Canvas.lineTo(y,ToFixedPoint(x));
@@ -40170,14 +40239,14 @@ function ChartClipColorStick()
40170
40239
  if (!IFrameSplitOperator.IsNumber(this.BaseValue) || this.BaseValue==0) return;
40171
40240
  if (!this.BaseLineColor) return;
40172
40241
 
40173
- var isHSCreen=this.ChartFrame.IsHScreen===true;
40242
+ var bHScreen=this.ChartFrame.IsHScreen===true;
40174
40243
  var border=this.ChartFrame.GetBorder();
40175
40244
  var y=this.ChartFrame.GetYFromData(this.BaseValue);
40176
40245
 
40177
40246
  this.Canvas.strokeStyle=this.BaseLineColor;
40178
40247
  this.Canvas.lineWidth=1*GetDevicePixelRatio();
40179
40248
 
40180
- if (isHSCreen)
40249
+ if (bHScreen)
40181
40250
  {
40182
40251
 
40183
40252
  }
@@ -40191,6 +40260,107 @@ function ChartClipColorStick()
40191
40260
  }
40192
40261
  }
40193
40262
 
40263
+ this.DrawStickText=function(aryData)
40264
+ {
40265
+ var config=this.TextLabelConfig;
40266
+ this.Canvas.font=config.Font;
40267
+ var border=this.ChartBorder.GetBorder();
40268
+ var itemHeight=config.TextHeight*2+config.TextMargin.Bottom+config.TextMargin.Top;
40269
+ for(var i=0; i<aryData.length; ++i)
40270
+ {
40271
+ var item=aryData[i];
40272
+ var value=item.Value;
40273
+ var xCenter=item.X;
40274
+ var xLeft=xCenter-config.LabelWidth/2;
40275
+
40276
+ var rtDraw={ Left:xLeft, Width:config.LabelWidth, Top:border.BottomEx+1, Height:itemHeight };
40277
+ rtDraw.Right=rtDraw.Left+rtDraw.Width;
40278
+ rtDraw.Bottom=rtDraw.Top+rtDraw.Height;
40279
+ if (IFrameSplitOperator.IsNumber(value))
40280
+ {
40281
+ var bgColor=config.UnchangeColor;
40282
+ if (value>0) bgColor=config.UpColor;
40283
+ else if (value<0) bgColor=config.DownColor;
40284
+ this.DrawTextLabel(value, bgColor, config.BorderColor, config.TextColor, rtDraw, config.TextHeight, config.MaxTextWidth, config.TextMargin);
40285
+ }
40286
+
40287
+ var value=item.DiffValue;
40288
+ var rtDraw={ Left:xLeft, Width:config.LabelWidth, Bottom:border.TopEx-1, Height:itemHeight };
40289
+ rtDraw.Right=rtDraw.Left+rtDraw.Width;
40290
+ rtDraw.Top=rtDraw.Bottom-rtDraw.Height;
40291
+ if (IFrameSplitOperator.IsNumber(value))
40292
+ {
40293
+ var bgColor=config.UnchangeColor;
40294
+ if (value>0) bgColor=config.UpColor;
40295
+ else if (value<0) bgColor=config.DownColor;
40296
+ this.DrawTextLabel(value, bgColor, config.BorderColor, config.TextColor, rtDraw, config.TextHeight, config.MaxTextWidth, config.TextMargin);
40297
+ }
40298
+ }
40299
+ }
40300
+
40301
+ //数值标签
40302
+ this.DrawTextLabel=function(value, clrGB, clrBorder, clrText, rtDraw, textHeight, textWidth, textMargin)
40303
+ {
40304
+ if (clrGB)
40305
+ {
40306
+ this.Canvas.fillStyle=clrGB;
40307
+ this.Canvas.fillRect(rtDraw.Left ,rtDraw.Top, (rtDraw.Width), (rtDraw.Height));
40308
+ }
40309
+
40310
+ if (clrBorder)
40311
+ {
40312
+ this.Canvas.lineWidth=2;
40313
+ this.Canvas.strokeStyle=clrBorder;
40314
+ this.Canvas.strokeRect(rtDraw.Left, rtDraw.Top, rtDraw.Width, rtDraw.Height);
40315
+ }
40316
+ else
40317
+ {
40318
+ this.Canvas.lineWidth=1;
40319
+ this.Canvas.strokeStyle="rgb(0,0,0)";
40320
+ this.Canvas.strokeRect(rtDraw.Left, rtDraw.Top, rtDraw.Width, rtDraw.Height);
40321
+ }
40322
+
40323
+ var aryText=[null, null]; //大于3位数的 2行输出
40324
+ var sign=""; //负数
40325
+ if (value<0)
40326
+ {
40327
+ value=Math.abs(value);
40328
+ sign='-';
40329
+ }
40330
+
40331
+ if (value>999)
40332
+ {
40333
+ var thousand=parseInt(value/1000);
40334
+ var hundred=parseInt(value%1000);
40335
+
40336
+ aryText[0]=`${sign}${thousand}`;
40337
+ aryText[1]=`${hundred}`;
40338
+ if (hundred<10) aryText[1]=`00${hundred}`;
40339
+ else if (hundred<100) aryText[1]=`0${hundred}`;
40340
+ }
40341
+ else
40342
+ {
40343
+ aryText[1]=`${sign}${value.toFixed(0)}`;
40344
+ }
40345
+
40346
+ this.Canvas.textAlign="right";
40347
+ this.Canvas.textBaseline="top";
40348
+ var xRight=rtDraw.Right-(rtDraw.Right-rtDraw.Left-textWidth)/2;
40349
+
40350
+ this.Canvas.fillStyle=clrText;
40351
+ var yText=textMargin.Top+rtDraw.Top;
40352
+ for(var i=0;i<aryText.length;++i)
40353
+ {
40354
+ var text=aryText[i];
40355
+ if (text)
40356
+ {
40357
+ this.Canvas.fillText(text,xRight,yText);
40358
+ }
40359
+
40360
+ yText+=textHeight;
40361
+ }
40362
+ }
40363
+
40194
40364
  this.GetMaxMin=function()
40195
40365
  {
40196
40366
  if (!IFrameSplitOperator.IsNumber(this.BaseValue) || this.BaseValue==0)
@@ -40253,13 +40423,36 @@ function ChartClipColorStick()
40253
40423
 
40254
40424
  if (this.BaseValue>0)
40255
40425
  {
40256
- if (IFrameSplitOperator.IsNumber(maxDiffValue) && IFrameSplitOperator.IsNumber(range.Min))
40257
- range.Min-=maxDiffValue;
40426
+ if (this.Style==1)
40427
+ {
40428
+ if (IFrameSplitOperator.IsNumber(maxDiffValue))
40429
+ {
40430
+ var value=this.BaseValue+maxDiffValue;
40431
+ if (IFrameSplitOperator.IsNumber(range.Max) || range.Max<value) range.Max=value;
40432
+ }
40433
+ }
40434
+ else
40435
+ {
40436
+ if (IFrameSplitOperator.IsNumber(maxDiffValue) && IFrameSplitOperator.IsNumber(range.Min))
40437
+ range.Min-=maxDiffValue;
40438
+ }
40439
+
40258
40440
  }
40259
40441
  else
40260
40442
  {
40261
- if (IFrameSplitOperator.IsNumber(maxDiffValue) && IFrameSplitOperator.IsNumber(range.Max))
40262
- range.Max+=maxDiffValue;
40443
+ if (this.Style==1)
40444
+ {
40445
+ if (IFrameSplitOperator.IsNumber(maxDiffValue))
40446
+ {
40447
+ var value=this.BaseValue-maxDiffValue;
40448
+ if (IFrameSplitOperator.IsNumber(range.Min) || range.Min>value) range.Min=value;
40449
+ }
40450
+ }
40451
+ else
40452
+ {
40453
+ if (IFrameSplitOperator.IsNumber(maxDiffValue) && IFrameSplitOperator.IsNumber(range.Max))
40454
+ range.Max+=maxDiffValue;
40455
+ }
40263
40456
  }
40264
40457
 
40265
40458
  return range;
@@ -108900,6 +109093,12 @@ function JSDraw(errorHandler,symbolData)
108900
109093
  return offset;
108901
109094
  }
108902
109095
 
109096
+ this.LINEDASH=function(aryData)
109097
+ {
109098
+ if (IFrameSplitOperator.IsNonEmptyArray(aryData)) return aryData.slice();
109099
+ return [];
109100
+ }
109101
+
108903
109102
  this.KLINETYPE=function(type)
108904
109103
  {
108905
109104
  return type;
@@ -115771,6 +115970,7 @@ function JSExecute(ast,option)
115771
115970
  var isFirstDraw=null;
115772
115971
  let xOffset=null, yOffset=null;
115773
115972
  var klineType=null;
115973
+ var lineDash=null;
115774
115974
  for(let j=0; j<item.Expression.Expression.length; ++j)
115775
115975
  {
115776
115976
  let itemExpression=item.Expression.Expression[j];
@@ -115899,6 +116099,11 @@ function JSExecute(ast,option)
115899
116099
  {
115900
116100
  yOffset=itemExpression.Out;
115901
116101
  }
116102
+ else if (itemExpression.Callee.Name=="LINEDASH")
116103
+ {
116104
+ if (IFrameSplitOperator.IsNonEmptyArray(itemExpression.Out))
116105
+ lineDash=itemExpression.Out.slice();
116106
+ }
115902
116107
  else if (itemExpression.Callee.Name=="FIRSTDRAW")
115903
116108
  {
115904
116109
  if (itemExpression.Out===0) isFirstDraw=false;
@@ -116063,6 +116268,7 @@ function JSExecute(ast,option)
116063
116268
  if (isShow == false) value.IsShow = false;
116064
116269
  if (isExData==true) value.IsExData = true;
116065
116270
  if (isDotLine==true) value.IsDotLine=true;
116271
+ if (IFrameSplitOperator.IsNonEmptyArray(lineDash)) value.LineDash=lineDash;
116066
116272
  if (isOverlayLine==true) value.IsOverlayLine=true;
116067
116273
  if (isSingleLine==true) value.IsSingleLine=true;
116068
116274
  if (isNoneName==true) value.NoneName=true;
@@ -116075,6 +116281,7 @@ function JSExecute(ast,option)
116075
116281
  var outVar={Name:draw.Name, Draw:draw, Type:1};
116076
116282
  if (color) outVar.Color=color;
116077
116283
  if (isDotLine==true) outVar.IsDotLine=true;
116284
+ if (IFrameSplitOperator.IsNonEmptyArray(lineDash)) outVar.LineDash=lineDash;
116078
116285
  if (lineWidth) outVar.LineWidth=lineWidth;
116079
116286
  if (isDrawAbove) outVar.IsDrawAbove=true;
116080
116287
  if (isDrawCenter) outVar.IsDrawCenter=true;
@@ -116099,6 +116306,7 @@ function JSExecute(ast,option)
116099
116306
  if (isShow==false) value.IsShow=false;
116100
116307
  if (isExData==true) value.IsExData = true;
116101
116308
  if (isDotLine==true) value.IsDotLine=true;
116309
+ if (IFrameSplitOperator.IsNonEmptyArray(lineDash)) value.LineDash=lineDash;
116102
116310
  if (isOverlayLine==true) value.IsOverlayLine=true;
116103
116311
  if (isSingleLine==true) value.IsSingleLine=true;
116104
116312
  if (isShowTitle==false) value.IsShowTitle=false;
@@ -116586,6 +116794,9 @@ function JSExecute(ast,option)
116586
116794
  case "YMOVE":
116587
116795
  node.Out=this.Draw.YMOVE(args[0]);
116588
116796
  break;
116797
+ case "LINEDASH":
116798
+ node.Out=this.Draw.LINEDASH(args);
116799
+ break;
116589
116800
  case "FIRSTDRAW":
116590
116801
  node.Out=this.Draw.FIRSTDRAW(args[0]);
116591
116802
  break;
@@ -118845,7 +119056,15 @@ function ScriptIndex(name,script,args,option)
118845
119056
  if (!isNaN(width) && width>0) line.LineWidth=width;
118846
119057
  }
118847
119058
 
118848
- if (varItem.IsDotLine) line.IsDotLine=true; //虚线
119059
+ if (varItem.IsDotLine)
119060
+ {
119061
+ line.IsDotLine=true; //虚线
119062
+ line.LineDash=g_JSChartResource.DOTLINE.LineDash.slice();
119063
+ }
119064
+
119065
+ //虚线设置
119066
+ if (IFrameSplitOperator.IsNonEmptyArray(varItem.LineDash)) line.LineDash=varItem.LineDash;
119067
+
118849
119068
  if (varItem.IsShow==false) line.IsShow=false;
118850
119069
 
118851
119070
  let titleIndex=windowIndex+1;
@@ -138395,7 +138614,7 @@ function ScrollBarBGChart()
138395
138614
 
138396
138615
 
138397
138616
 
138398
- var HQCHART_VERSION="1.1.13742";
138617
+ var HQCHART_VERSION="1.1.13753";
138399
138618
 
138400
138619
  function PrintHQChartVersion()
138401
138620
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.13742";
8
+ var HQCHART_VERSION="1.1.13753";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {