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.
@@ -34634,6 +34634,7 @@ function ChartLine()
34634
34634
  this.LineWidth; //线段宽度
34635
34635
  this.DrawType=0; //画图方式 0=无效数平滑 1=无效数不画断开
34636
34636
  this.IsDotLine=false; //虚线
34637
+ this.LineDash=g_JSChartResource.DOTLINE.LineDash;
34637
34638
  this.BreakPoint; //断开的点索引 Set();
34638
34639
 
34639
34640
 
@@ -34679,7 +34680,7 @@ function ChartLine()
34679
34680
 
34680
34681
  this.Canvas.save();
34681
34682
  if (this.LineWidth>0) this.Canvas.lineWidth=this.LineWidth * GetDevicePixelRatio();
34682
- if (this.IsDotLine) this.Canvas.setLineDash(g_JSChartResource.DOTLINE.LineDash); //画虚线
34683
+ if (this.IsDotLine) this.Canvas.setLineDash(this.LineDash); //画虚线
34683
34684
  var bFirstPoint=true;
34684
34685
  var drawCount=0;
34685
34686
  for(var i=this.Data.DataOffset,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j)
@@ -34746,7 +34747,7 @@ function ChartLine()
34746
34747
  this.ClipClient(bHScreen);
34747
34748
  if (this.LineWidth>0) this.Canvas.lineWidth=this.LineWidth * GetDevicePixelRatio();
34748
34749
  this.Canvas.strokeStyle=this.Color;
34749
- if (this.IsDotLine) this.Canvas.setLineDash(g_JSChartResource.DOTLINE.LineDash); //画虚线
34750
+ if (this.IsDotLine) this.Canvas.setLineDash(this.LineDash); //画虚线
34750
34751
 
34751
34752
  var bFirstPoint=true;
34752
34753
  var ptFirst=null;; //第1个点
@@ -34843,7 +34844,7 @@ function ChartLine()
34843
34844
  this.ClipClient(bHScreen);
34844
34845
  if (this.LineWidth>0) this.Canvas.lineWidth=this.LineWidth * GetDevicePixelRatio();
34845
34846
  this.Canvas.strokeStyle=this.Color;
34846
- if (this.IsDotLine) this.Canvas.setLineDash(g_JSChartResource.DOTLINE.LineDash); //画虚线
34847
+ if (this.IsDotLine) this.Canvas.setLineDash(this.LineDash); //画虚线
34847
34848
 
34848
34849
  var bFirstPoint=true;
34849
34850
  var ptFirst=null;; //第1个点
@@ -40015,16 +40016,38 @@ function ChartClipColorStick()
40015
40016
  this.UpColor=g_JSChartResource.UpBarColor;
40016
40017
  this.DownColor=g_JSChartResource.DownBarColor;
40017
40018
  this.LineWidth=1;
40019
+ this.Style=0; //1=同方向 0=上下两个方向
40020
+
40018
40021
  //差值线
40019
40022
  this.DownDiffColor=g_JSChartResource.DownBarColor;
40020
40023
  this.UpDiffColor=g_JSChartResource.UpBarColor;
40021
40024
 
40025
+ //文字
40026
+ this.TextLabelConfig=
40027
+ {
40028
+ Font:`${12*GetDevicePixelRatio()}px 微软雅黑`,
40029
+ TextMargin:{ Left:2, Right:2, Bottom:2, Top:2 },
40030
+ TextColor:"rgb(230,230,230)",
40031
+ UpColor:"rgb(137,16,19)",
40032
+ DownColor:"rgb(44,104,57)",
40033
+ UnchangeColor:"rgb(111,112,115)",
40034
+ BorderColor:"rgb(0,0,0)",
40035
+
40036
+ //缓存
40037
+ LabelWidth:0,
40038
+ TextHeight:0,
40039
+ MaxTextWidth:0,
40040
+ }
40041
+
40022
40042
  this.BaseLineColor; //基准线
40023
40043
 
40024
40044
  this.BaseValue=0;
40025
40045
  this.Super_GetMaxMin=this.GetMaxMin; //父类的方法
40026
40046
  this.ValueRange; //{ Max:, Min: } //固定最大最小值
40027
40047
 
40048
+ this.IsShowText=false;
40049
+
40050
+
40028
40051
  this.SetOption=function(option)
40029
40052
  {
40030
40053
  if (!option) return;
@@ -40035,11 +40058,18 @@ function ChartClipColorStick()
40035
40058
  if (option.UpDiffColor) this.UpDiffColor=option.UpDiffColor;
40036
40059
  if (option.BaseLineColor) this.BaseLineColor=option.BaseLineColor;
40037
40060
  if (IFrameSplitOperator.IsNumber(option.BaseValue)) this.BaseValue=option.BaseValue;
40061
+ if (IFrameSplitOperator.IsNumber(option.Style)) this.Style=option.Style;
40038
40062
  if (option.ValueRange) this.ValueRange=option.ValueRange;
40063
+
40039
40064
  }
40040
40065
 
40041
40066
  this.Draw=function()
40042
40067
  {
40068
+ this.IsShowText=false;
40069
+ this.TextLabelConfig.LabelWidth=0;
40070
+ this.TextLabelConfig.TextHeight=0;
40071
+ this.TextLabelConfig.MaxTextWidth=0;
40072
+
40043
40073
  if (!this.IsShow || this.ChartFrame.IsMinSize || !this.IsVisible) return;
40044
40074
  if (this.IsShowIndexTitleOnly()) return;
40045
40075
  if (this.IsHideScriptIndex()) return;
@@ -40050,23 +40080,44 @@ function ChartClipColorStick()
40050
40080
  return;
40051
40081
  }
40052
40082
 
40053
- this.Canvas.save();
40054
40083
  var dataWidth=this.ChartFrame.DataWidth;
40084
+ var distanceWidth=this.ChartFrame.DistanceWidth;
40085
+ var xPointCount=this.ChartFrame.XPointCount;
40086
+ var bHScreen=this.ChartFrame.IsHScreen===true;
40087
+
40055
40088
  var lineWidth=this.LineWidth*GetDevicePixelRatio();
40056
40089
  if (this.LineWidth==50) lineWidth=dataWidth;
40057
40090
  else if (lineWidth>dataWidth) lineWidth=dataWidth;
40058
-
40091
+
40092
+ if (!bHScreen)
40093
+ {
40094
+ var itemWidth=dataWidth+distanceWidth;
40095
+ var bMinute=this.IsMinuteFrame();
40096
+ if (bMinute)
40097
+ {
40098
+ var border=this.ChartBorder.GetBorder();
40099
+ itemWidth=(border.Right-border.Left)/(xPointCount-1);
40100
+ }
40101
+
40102
+ this.Canvas.font=this.TextLabelConfig.Font;
40103
+ this.TextLabelConfig.MaxTextWidth=this.Canvas.measureText("-888").width;
40104
+ this.TextLabelConfig.LabelWidth=this.TextLabelConfig.MaxTextWidth+this.TextLabelConfig.TextMargin.Left+this.TextLabelConfig.TextMargin.Right;
40105
+ this.IsShowText=itemWidth>this.TextLabelConfig.LabelWidth;
40106
+ this.TextLabelConfig.TextHeight=this.Canvas.measureText("擎").width;
40107
+ }
40108
+
40109
+ this.Canvas.save();
40059
40110
  if (IFrameSplitOperator.IsNumber(this.BaseValue) && this.BaseValue!=0)
40060
40111
  {
40061
40112
  this.DrawBaseLine();
40062
40113
 
40063
- if (this.BaseValue>0) this.DrawBars(lineWidth, true);
40064
- else this.DrawBars(lineWidth, false);
40114
+ if (this.BaseValue>0) this.DrawBars(lineWidth, true, true);
40115
+ else this.DrawBars(lineWidth, false, true);
40065
40116
  }
40066
40117
  else
40067
40118
  {
40068
40119
  //上下分开画
40069
- this.DrawBars(lineWidth, true);
40120
+ this.DrawBars(lineWidth, true, true);
40070
40121
  this.DrawBars(lineWidth, false);
40071
40122
  }
40072
40123
 
@@ -40074,15 +40125,15 @@ function ChartClipColorStick()
40074
40125
  this.Canvas.restore();
40075
40126
  }
40076
40127
 
40077
- this.DrawBars=function(lineWidth, bUpBar)
40128
+ this.DrawBars=function(lineWidth, bUpBar, bDrawLabel)
40078
40129
  {
40079
40130
  var isMinute=this.IsMinuteFrame();
40080
40131
  var dataWidth=this.ChartFrame.DataWidth;
40081
40132
  var distanceWidth=this.ChartFrame.DistanceWidth;
40082
40133
  var xPointCount=this.ChartFrame.XPointCount;
40083
- var isHSCreen=this.ChartFrame.IsHScreen===true;
40134
+ var bHScreen=this.ChartFrame.IsHScreen===true;
40084
40135
 
40085
- if (isHSCreen)
40136
+ if (bHScreen)
40086
40137
  {
40087
40138
  var border=this.ChartBorder.GetHScreenBorder();
40088
40139
  var xOffset=border.TopEx+distanceWidth/2.0+g_JSChartResource.FrameLeftMargin;
@@ -40101,19 +40152,14 @@ function ChartClipColorStick()
40101
40152
  }
40102
40153
 
40103
40154
  var yBottom=this.ChartFrame.GetYFromData(this.BaseValue);
40104
- var aryBar=[], aryDiffBar=[];
40105
- for(var i=this.Data.DataOffset,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j,xOffset+=(dataWidth+distanceWidth))
40155
+ var aryBar=[], aryDiffBar=[], aryText=[];
40156
+ var preValue=null;
40157
+ var start=this.Data.DataOffset;
40158
+ if (start-1>0) preValue=this.Data.Data[start-1]; //上一个数值
40159
+ for(var i=start,j=0;i<this.Data.Data.length && j<xPointCount;++i,++j,xOffset+=(dataWidth+distanceWidth))
40106
40160
  {
40107
40161
  var value=this.Data.Data[i];
40108
40162
  if (value==null) continue;
40109
- if (bUpBar)
40110
- {
40111
- if (value<0) continue;
40112
- }
40113
- else
40114
- {
40115
- if (value>=0) continue;
40116
- }
40117
40163
 
40118
40164
  if (isMinute)
40119
40165
  {
@@ -40129,6 +40175,21 @@ function ChartClipColorStick()
40129
40175
 
40130
40176
  if (x>chartright) break;
40131
40177
 
40178
+ var textItem={ X:x, Value:value };
40179
+ if (IFrameSplitOperator.IsNumber(preValue)) textItem.DiffValue=value-preValue;
40180
+ aryText.push(textItem);
40181
+
40182
+ preValue=value;
40183
+
40184
+ if (bUpBar)
40185
+ {
40186
+ if (value<0) continue;
40187
+ }
40188
+ else
40189
+ {
40190
+ if (value>=0) continue;
40191
+ }
40192
+
40132
40193
  var bDiffBar=false;
40133
40194
  var diffValue=null;
40134
40195
  if (this.BaseValue>0)
@@ -40136,7 +40197,10 @@ function ChartClipColorStick()
40136
40197
  if (value<this.BaseValue)
40137
40198
  {
40138
40199
  bDiffBar=true;
40139
- diffValue=this.BaseValue-(this.BaseValue-value);
40200
+ if (this.Style==1)
40201
+ diffValue=this.BaseValue+(this.BaseValue-value);
40202
+ else
40203
+ diffValue=this.BaseValue-(this.BaseValue-value);
40140
40204
  }
40141
40205
  }
40142
40206
  else if (this.BaseValue<0)
@@ -40144,19 +40208,22 @@ function ChartClipColorStick()
40144
40208
  if (value>this.BaseValue)
40145
40209
  {
40146
40210
  bDiffBar=true;
40147
- diffValue=this.BaseValue+(value-this.BaseValue)
40211
+ if (this.Style==1)
40212
+ diffValue=this.BaseValue-(value-this.BaseValue);
40213
+ else
40214
+ diffValue=this.BaseValue+(value-this.BaseValue)
40148
40215
  }
40149
40216
  }
40150
40217
 
40151
40218
  if (!bDiffBar)
40152
40219
  {
40153
40220
  var y=this.ChartFrame.GetYFromData(value);
40154
- aryBar.push({X:x, Y:y});
40221
+ aryBar.push({X:x, Y:y });
40155
40222
  }
40156
40223
  else
40157
40224
  {
40158
40225
  var y=this.ChartFrame.GetYFromData(diffValue);
40159
- aryDiffBar.push({X:x, Y:y});
40226
+ aryDiffBar.push({X:x, Y:y });
40160
40227
  }
40161
40228
  }
40162
40229
 
@@ -40165,6 +40232,7 @@ function ChartClipColorStick()
40165
40232
  else this.Canvas.strokeStyle=this.DownColor;
40166
40233
 
40167
40234
  this.DrawStick(aryBar,lineWidth,yBottom);
40235
+
40168
40236
 
40169
40237
  if (this.BaseValue>0)
40170
40238
  {
@@ -40177,13 +40245,14 @@ function ChartClipColorStick()
40177
40245
  this.DrawStick(aryDiffBar,lineWidth,yBottom);
40178
40246
  }
40179
40247
 
40248
+ if (this.IsShowText && bDrawLabel) this.DrawStickText(aryText);
40180
40249
  }
40181
40250
 
40182
40251
  this.DrawStick=function(aryData, lineWidth, yBottom)
40183
40252
  {
40184
40253
  if (!IFrameSplitOperator.IsNonEmptyArray(aryData)) return;
40185
40254
 
40186
- var isHSCreen=this.ChartFrame.IsHScreen===true;
40255
+ var bHScreen=this.ChartFrame.IsHScreen===true;
40187
40256
  var drawCount=0;
40188
40257
  this.Canvas.beginPath();
40189
40258
  for(var i=0; i<aryData.length; ++i)
@@ -40192,7 +40261,7 @@ function ChartClipColorStick()
40192
40261
  var y=item.Y;
40193
40262
  var xFix=ToFixedPoint2(lineWidth, item.X); //毛边修正
40194
40263
 
40195
- if (isHSCreen)
40264
+ if (bHScreen)
40196
40265
  {
40197
40266
  this.Canvas.moveTo(yBottom,ToFixedPoint(x));
40198
40267
  this.Canvas.lineTo(y,ToFixedPoint(x));
@@ -40214,14 +40283,14 @@ function ChartClipColorStick()
40214
40283
  if (!IFrameSplitOperator.IsNumber(this.BaseValue) || this.BaseValue==0) return;
40215
40284
  if (!this.BaseLineColor) return;
40216
40285
 
40217
- var isHSCreen=this.ChartFrame.IsHScreen===true;
40286
+ var bHScreen=this.ChartFrame.IsHScreen===true;
40218
40287
  var border=this.ChartFrame.GetBorder();
40219
40288
  var y=this.ChartFrame.GetYFromData(this.BaseValue);
40220
40289
 
40221
40290
  this.Canvas.strokeStyle=this.BaseLineColor;
40222
40291
  this.Canvas.lineWidth=1*GetDevicePixelRatio();
40223
40292
 
40224
- if (isHSCreen)
40293
+ if (bHScreen)
40225
40294
  {
40226
40295
 
40227
40296
  }
@@ -40235,6 +40304,107 @@ function ChartClipColorStick()
40235
40304
  }
40236
40305
  }
40237
40306
 
40307
+ this.DrawStickText=function(aryData)
40308
+ {
40309
+ var config=this.TextLabelConfig;
40310
+ this.Canvas.font=config.Font;
40311
+ var border=this.ChartBorder.GetBorder();
40312
+ var itemHeight=config.TextHeight*2+config.TextMargin.Bottom+config.TextMargin.Top;
40313
+ for(var i=0; i<aryData.length; ++i)
40314
+ {
40315
+ var item=aryData[i];
40316
+ var value=item.Value;
40317
+ var xCenter=item.X;
40318
+ var xLeft=xCenter-config.LabelWidth/2;
40319
+
40320
+ var rtDraw={ Left:xLeft, Width:config.LabelWidth, Top:border.BottomEx+1, Height:itemHeight };
40321
+ rtDraw.Right=rtDraw.Left+rtDraw.Width;
40322
+ rtDraw.Bottom=rtDraw.Top+rtDraw.Height;
40323
+ if (IFrameSplitOperator.IsNumber(value))
40324
+ {
40325
+ var bgColor=config.UnchangeColor;
40326
+ if (value>0) bgColor=config.UpColor;
40327
+ else if (value<0) bgColor=config.DownColor;
40328
+ this.DrawTextLabel(value, bgColor, config.BorderColor, config.TextColor, rtDraw, config.TextHeight, config.MaxTextWidth, config.TextMargin);
40329
+ }
40330
+
40331
+ var value=item.DiffValue;
40332
+ var rtDraw={ Left:xLeft, Width:config.LabelWidth, Bottom:border.TopEx-1, Height:itemHeight };
40333
+ rtDraw.Right=rtDraw.Left+rtDraw.Width;
40334
+ rtDraw.Top=rtDraw.Bottom-rtDraw.Height;
40335
+ if (IFrameSplitOperator.IsNumber(value))
40336
+ {
40337
+ var bgColor=config.UnchangeColor;
40338
+ if (value>0) bgColor=config.UpColor;
40339
+ else if (value<0) bgColor=config.DownColor;
40340
+ this.DrawTextLabel(value, bgColor, config.BorderColor, config.TextColor, rtDraw, config.TextHeight, config.MaxTextWidth, config.TextMargin);
40341
+ }
40342
+ }
40343
+ }
40344
+
40345
+ //数值标签
40346
+ this.DrawTextLabel=function(value, clrGB, clrBorder, clrText, rtDraw, textHeight, textWidth, textMargin)
40347
+ {
40348
+ if (clrGB)
40349
+ {
40350
+ this.Canvas.fillStyle=clrGB;
40351
+ this.Canvas.fillRect(rtDraw.Left ,rtDraw.Top, (rtDraw.Width), (rtDraw.Height));
40352
+ }
40353
+
40354
+ if (clrBorder)
40355
+ {
40356
+ this.Canvas.lineWidth=2;
40357
+ this.Canvas.strokeStyle=clrBorder;
40358
+ this.Canvas.strokeRect(rtDraw.Left, rtDraw.Top, rtDraw.Width, rtDraw.Height);
40359
+ }
40360
+ else
40361
+ {
40362
+ this.Canvas.lineWidth=1;
40363
+ this.Canvas.strokeStyle="rgb(0,0,0)";
40364
+ this.Canvas.strokeRect(rtDraw.Left, rtDraw.Top, rtDraw.Width, rtDraw.Height);
40365
+ }
40366
+
40367
+ var aryText=[null, null]; //大于3位数的 2行输出
40368
+ var sign=""; //负数
40369
+ if (value<0)
40370
+ {
40371
+ value=Math.abs(value);
40372
+ sign='-';
40373
+ }
40374
+
40375
+ if (value>999)
40376
+ {
40377
+ var thousand=parseInt(value/1000);
40378
+ var hundred=parseInt(value%1000);
40379
+
40380
+ aryText[0]=`${sign}${thousand}`;
40381
+ aryText[1]=`${hundred}`;
40382
+ if (hundred<10) aryText[1]=`00${hundred}`;
40383
+ else if (hundred<100) aryText[1]=`0${hundred}`;
40384
+ }
40385
+ else
40386
+ {
40387
+ aryText[1]=`${sign}${value.toFixed(0)}`;
40388
+ }
40389
+
40390
+ this.Canvas.textAlign="right";
40391
+ this.Canvas.textBaseline="top";
40392
+ var xRight=rtDraw.Right-(rtDraw.Right-rtDraw.Left-textWidth)/2;
40393
+
40394
+ this.Canvas.fillStyle=clrText;
40395
+ var yText=textMargin.Top+rtDraw.Top;
40396
+ for(var i=0;i<aryText.length;++i)
40397
+ {
40398
+ var text=aryText[i];
40399
+ if (text)
40400
+ {
40401
+ this.Canvas.fillText(text,xRight,yText);
40402
+ }
40403
+
40404
+ yText+=textHeight;
40405
+ }
40406
+ }
40407
+
40238
40408
  this.GetMaxMin=function()
40239
40409
  {
40240
40410
  if (!IFrameSplitOperator.IsNumber(this.BaseValue) || this.BaseValue==0)
@@ -40297,13 +40467,36 @@ function ChartClipColorStick()
40297
40467
 
40298
40468
  if (this.BaseValue>0)
40299
40469
  {
40300
- if (IFrameSplitOperator.IsNumber(maxDiffValue) && IFrameSplitOperator.IsNumber(range.Min))
40301
- range.Min-=maxDiffValue;
40470
+ if (this.Style==1)
40471
+ {
40472
+ if (IFrameSplitOperator.IsNumber(maxDiffValue))
40473
+ {
40474
+ var value=this.BaseValue+maxDiffValue;
40475
+ if (IFrameSplitOperator.IsNumber(range.Max) || range.Max<value) range.Max=value;
40476
+ }
40477
+ }
40478
+ else
40479
+ {
40480
+ if (IFrameSplitOperator.IsNumber(maxDiffValue) && IFrameSplitOperator.IsNumber(range.Min))
40481
+ range.Min-=maxDiffValue;
40482
+ }
40483
+
40302
40484
  }
40303
40485
  else
40304
40486
  {
40305
- if (IFrameSplitOperator.IsNumber(maxDiffValue) && IFrameSplitOperator.IsNumber(range.Max))
40306
- range.Max+=maxDiffValue;
40487
+ if (this.Style==1)
40488
+ {
40489
+ if (IFrameSplitOperator.IsNumber(maxDiffValue))
40490
+ {
40491
+ var value=this.BaseValue-maxDiffValue;
40492
+ if (IFrameSplitOperator.IsNumber(range.Min) || range.Min>value) range.Min=value;
40493
+ }
40494
+ }
40495
+ else
40496
+ {
40497
+ if (IFrameSplitOperator.IsNumber(maxDiffValue) && IFrameSplitOperator.IsNumber(range.Max))
40498
+ range.Max+=maxDiffValue;
40499
+ }
40307
40500
  }
40308
40501
 
40309
40502
  return range;
@@ -108944,6 +109137,12 @@ function JSDraw(errorHandler,symbolData)
108944
109137
  return offset;
108945
109138
  }
108946
109139
 
109140
+ this.LINEDASH=function(aryData)
109141
+ {
109142
+ if (IFrameSplitOperator.IsNonEmptyArray(aryData)) return aryData.slice();
109143
+ return [];
109144
+ }
109145
+
108947
109146
  this.KLINETYPE=function(type)
108948
109147
  {
108949
109148
  return type;
@@ -115815,6 +116014,7 @@ function JSExecute(ast,option)
115815
116014
  var isFirstDraw=null;
115816
116015
  let xOffset=null, yOffset=null;
115817
116016
  var klineType=null;
116017
+ var lineDash=null;
115818
116018
  for(let j=0; j<item.Expression.Expression.length; ++j)
115819
116019
  {
115820
116020
  let itemExpression=item.Expression.Expression[j];
@@ -115943,6 +116143,11 @@ function JSExecute(ast,option)
115943
116143
  {
115944
116144
  yOffset=itemExpression.Out;
115945
116145
  }
116146
+ else if (itemExpression.Callee.Name=="LINEDASH")
116147
+ {
116148
+ if (IFrameSplitOperator.IsNonEmptyArray(itemExpression.Out))
116149
+ lineDash=itemExpression.Out.slice();
116150
+ }
115946
116151
  else if (itemExpression.Callee.Name=="FIRSTDRAW")
115947
116152
  {
115948
116153
  if (itemExpression.Out===0) isFirstDraw=false;
@@ -116107,6 +116312,7 @@ function JSExecute(ast,option)
116107
116312
  if (isShow == false) value.IsShow = false;
116108
116313
  if (isExData==true) value.IsExData = true;
116109
116314
  if (isDotLine==true) value.IsDotLine=true;
116315
+ if (IFrameSplitOperator.IsNonEmptyArray(lineDash)) value.LineDash=lineDash;
116110
116316
  if (isOverlayLine==true) value.IsOverlayLine=true;
116111
116317
  if (isSingleLine==true) value.IsSingleLine=true;
116112
116318
  if (isNoneName==true) value.NoneName=true;
@@ -116119,6 +116325,7 @@ function JSExecute(ast,option)
116119
116325
  var outVar={Name:draw.Name, Draw:draw, Type:1};
116120
116326
  if (color) outVar.Color=color;
116121
116327
  if (isDotLine==true) outVar.IsDotLine=true;
116328
+ if (IFrameSplitOperator.IsNonEmptyArray(lineDash)) outVar.LineDash=lineDash;
116122
116329
  if (lineWidth) outVar.LineWidth=lineWidth;
116123
116330
  if (isDrawAbove) outVar.IsDrawAbove=true;
116124
116331
  if (isDrawCenter) outVar.IsDrawCenter=true;
@@ -116143,6 +116350,7 @@ function JSExecute(ast,option)
116143
116350
  if (isShow==false) value.IsShow=false;
116144
116351
  if (isExData==true) value.IsExData = true;
116145
116352
  if (isDotLine==true) value.IsDotLine=true;
116353
+ if (IFrameSplitOperator.IsNonEmptyArray(lineDash)) value.LineDash=lineDash;
116146
116354
  if (isOverlayLine==true) value.IsOverlayLine=true;
116147
116355
  if (isSingleLine==true) value.IsSingleLine=true;
116148
116356
  if (isShowTitle==false) value.IsShowTitle=false;
@@ -116630,6 +116838,9 @@ function JSExecute(ast,option)
116630
116838
  case "YMOVE":
116631
116839
  node.Out=this.Draw.YMOVE(args[0]);
116632
116840
  break;
116841
+ case "LINEDASH":
116842
+ node.Out=this.Draw.LINEDASH(args);
116843
+ break;
116633
116844
  case "FIRSTDRAW":
116634
116845
  node.Out=this.Draw.FIRSTDRAW(args[0]);
116635
116846
  break;
@@ -118889,7 +119100,15 @@ function ScriptIndex(name,script,args,option)
118889
119100
  if (!isNaN(width) && width>0) line.LineWidth=width;
118890
119101
  }
118891
119102
 
118892
- if (varItem.IsDotLine) line.IsDotLine=true; //虚线
119103
+ if (varItem.IsDotLine)
119104
+ {
119105
+ line.IsDotLine=true; //虚线
119106
+ line.LineDash=g_JSChartResource.DOTLINE.LineDash.slice();
119107
+ }
119108
+
119109
+ //虚线设置
119110
+ if (IFrameSplitOperator.IsNonEmptyArray(varItem.LineDash)) line.LineDash=varItem.LineDash;
119111
+
118893
119112
  if (varItem.IsShow==false) line.IsShow=false;
118894
119113
 
118895
119114
  let titleIndex=windowIndex+1;
@@ -142951,7 +143170,7 @@ function HQChartScriptWorker()
142951
143170
 
142952
143171
 
142953
143172
 
142954
- var HQCHART_VERSION="1.1.13742";
143173
+ var HQCHART_VERSION="1.1.13753";
142955
143174
 
142956
143175
  function PrintHQChartVersion()
142957
143176
  {