hqchart 1.1.13569 → 1.1.13577

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.
@@ -3150,7 +3150,7 @@ function JSReportChartContainer(uielement)
3150
3150
  switch(cmdID)
3151
3151
  {
3152
3152
  case JSCHART_MENU_ID.CMD_REPORT_CHANGE_BLOCK_ID:
3153
- if (srcParam) this.ChangeSymbol(param);
3153
+ if (srcParam) this.ChangeSymbol(srcParam);
3154
3154
  break;
3155
3155
  }
3156
3156
  }
@@ -3681,6 +3681,7 @@ var REPORT_COLUMN_ID=
3681
3681
  CUSTOM_ICON_ID:103, //自定义图标
3682
3682
  CUSTOM_CHECKBOX_ID:104, //自定义checkbox
3683
3683
  CUSTOM_BUTTON_ID:105, //自定义按钮
3684
+ CUSTOM_PROGRESS_ID:106, //进度条
3684
3685
  }
3685
3686
 
3686
3687
  var MAP_COLUMN_FIELD=new Map([
@@ -4064,6 +4065,13 @@ function ChartReport()
4064
4065
  if (IFrameSplitOperator.IsNumber(item.BlockIndex)) colItem.BlockIndex=item.BlockIndex;
4065
4066
  if (item.Button) colItem.Button=CloneData(item.Button);
4066
4067
  }
4068
+ else if (item.Type==REPORT_COLUMN_ID.CUSTOM_PROGRESS_ID)
4069
+ {
4070
+ if (!IFrameSplitOperator.IsNumber(item.DataIndex) && !IFrameSplitOperator.IsNumber(item.BlockIndex)) continue;
4071
+ if (IFrameSplitOperator.IsNumber(item.DataIndex)) colItem.DataIndex=item.DataIndex; //数据在扩展数据索引列
4072
+ if (IFrameSplitOperator.IsNumber(item.BlockIndex)) colItem.BlockIndex=item.BlockIndex;
4073
+ if (item.ProgressBar) colItem.ProgressBar=CloneData(item.ProgressBar);
4074
+ }
4067
4075
  else if (item.Type==REPORT_COLUMN_ID.CUSTOM_ICON_ID)
4068
4076
  {
4069
4077
 
@@ -4181,7 +4189,8 @@ function ChartReport()
4181
4189
 
4182
4190
  { Type:REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID, Title:"", TextAlign:"center", FixedWidth:20*GetDevicePixelRatio() },
4183
4191
 
4184
- { Type:REPORT_COLUMN_ID.CUSTOM_BUTTON_ID, Title:"", TextAlign:"center", FixedWidth:50*GetDevicePixelRatio() }
4192
+ { Type:REPORT_COLUMN_ID.CUSTOM_BUTTON_ID, Title:"", TextAlign:"center", FixedWidth:50*GetDevicePixelRatio() },
4193
+ { Type:REPORT_COLUMN_ID.CUSTOM_PROGRESS_ID, Title:"进度条", TextAlign:"center", FixedWidth:100*GetDevicePixelRatio() }
4185
4194
  ];
4186
4195
 
4187
4196
  for(var i=0;i<DEFAULT_COLUMN.length;++i)
@@ -5154,6 +5163,15 @@ function ChartReport()
5154
5163
 
5155
5164
  this.GetCustomButtonDrawInfo(data, column, drawInfo);
5156
5165
  }
5166
+ else if (column.Type==REPORT_COLUMN_ID.CUSTOM_PROGRESS_ID)
5167
+ {
5168
+ rtItem={ Left:left, Top:top, Width:column.Width, Height:this.RowHeight };
5169
+ rtItem.Right=rtItem.Left+rtItem.Width;
5170
+ rtItem.Bottom=rtItem.Top+rtItem.Height;
5171
+ drawInfo.Rect=rtItem;
5172
+
5173
+ this.GetCustomProgressBarDrawInfo(data, column, drawInfo);
5174
+ }
5157
5175
 
5158
5176
 
5159
5177
  //拖拽行颜色
@@ -5176,6 +5194,10 @@ function ChartReport()
5176
5194
  {
5177
5195
  this.DrawButton(drawInfo, left, top, itemWidth);
5178
5196
  }
5197
+ else if (column.Type==REPORT_COLUMN_ID.CUSTOM_PROGRESS_ID)
5198
+ {
5199
+ this.DrawProgressBar(drawInfo, left, top, itemWidth);
5200
+ }
5179
5201
  else
5180
5202
  {
5181
5203
  if (data.FlashBG && data.FlashBG.Data && column.ID!=undefined)
@@ -5491,6 +5513,22 @@ function ChartReport()
5491
5513
  if (IFrameSplitOperator.IsBool(buttonData.Enable)) drawInfo.Enable=buttonData.Enable;
5492
5514
  }
5493
5515
 
5516
+ this.GetCustomProgressBarDrawInfo=function(data, column, drawInfo)
5517
+ {
5518
+ var barData=this.GetExtendData(data, column);
5519
+ if (!barData) return;
5520
+
5521
+ drawInfo.Text=barData.Title;
5522
+ drawInfo.ProgressBar=column.ProgressBar;
5523
+ drawInfo.Enable=true;
5524
+ drawInfo.Value=barData.Value; //占比
5525
+ drawInfo.Data=barData;
5526
+ if (IFrameSplitOperator.IsBool(barData.Enable)) drawInfo.Enable=barData.Enable;
5527
+ if (barData.TextColor) drawInfo.TextColor=barData.TextColor;
5528
+ if (barData.BarColor) drawInfo.BarColor=barData.BarColor;
5529
+ if (barData.BGColor) drawInfo.BGColor=barData.BGColor;
5530
+ }
5531
+
5494
5532
  this.FormaTimeDrawInfo=function(column, stock, drawInfo, data)
5495
5533
  {
5496
5534
  if (!IFrameSplitOperator.IsNumber(stock.Time)) return;
@@ -5833,6 +5871,67 @@ function ChartReport()
5833
5871
  }
5834
5872
  }
5835
5873
 
5874
+ this.DrawProgressBar=function(drawInfo, left, top, width)
5875
+ {
5876
+ if (!drawInfo.ProgressBar) return;
5877
+
5878
+ var config=drawInfo.ProgressBar;
5879
+ var rtBG=
5880
+ {
5881
+ Left:left+config.Margin.Left, Top:top+config.Margin.Top,
5882
+ Height:this.RowHeight-config.Margin.Top-config.Margin.Bottom,
5883
+ Width:width-config.Margin.Left-config.Margin.Right
5884
+ }
5885
+ rtBG.Right=rtBG.Left+rtBG.Width;
5886
+ rtBG.Bottom=rtBG.Top+rtBG.Height;
5887
+
5888
+ var bgColor=config.BGColor;
5889
+ var barColor=config.BarColor;
5890
+ var textColor=config.TextColor;
5891
+ if (drawInfo.Enable===false)
5892
+ {
5893
+ bgColor=config.Disable.BGColor;
5894
+ barColor=config.Disable.BarColor;
5895
+ textColor=config.Disable.TextColor;
5896
+ }
5897
+
5898
+ if (drawInfo.BGColor) bgColor=drawInfo.BGColor;
5899
+ if (drawInfo.TextColor) textColor=drawInfo.TextColor;
5900
+ if (drawInfo.BarColor) barColor=drawInfo.BarColor;
5901
+
5902
+ if (bgColor)
5903
+ {
5904
+ this.Canvas.fillStyle=bgColor;
5905
+ this.Canvas.fillRect(rtBG.Left, rtBG.Top,rtBG.Width,rtBG.Height);
5906
+ }
5907
+
5908
+ var fullBarWidth=rtBG.Width-config.BarMargin.Left-config.BarMargin.Right;
5909
+ var value=drawInfo.Value; // 0-1 进度条
5910
+ var rtBar={ Left:rtBG.Left+config.BarMargin.Left, Top:rtBG.Top+config.BarMargin.Top, Bottom:rtBG.Bottom-config.BarMargin.Bottom, Width:0 };
5911
+ if (value>0)
5912
+ {
5913
+ if (value>1) value=1;
5914
+ rtBar.Width=fullBarWidth*value;
5915
+ rtBar.Height=rtBar.Bottom-rtBar.Top;
5916
+ if (rtBar.Width<1) rtBG.Width=1;
5917
+
5918
+ this.Canvas.fillStyle=barColor;
5919
+ this.Canvas.fillRect(rtBar.Left, rtBar.Top,rtBar.Width,rtBar.Height);
5920
+ }
5921
+
5922
+ if (textColor && drawInfo.Text)
5923
+ {
5924
+ this.Canvas.font=config.Font;
5925
+ this.Canvas.textBaseline="bottom";
5926
+ this.Canvas.textAlign="left";
5927
+
5928
+ this.Canvas.fillStyle=textColor;
5929
+ var xText=rtBar.Left+config.TextMargin.Left;
5930
+ var yText=rtBar.Bottom-config.TextMargin.Bottom;
5931
+ this.Canvas.fillText(drawInfo.Text, xText, yText);
5932
+ }
5933
+ }
5934
+
5836
5935
  //字体由外面设置
5837
5936
  this.TextEllipsis=function(text, maxWidth, maxText)
5838
5937
  {
@@ -60283,6 +60283,7 @@ IChartDrawPicture.ArrayDrawPricture=
60283
60283
  { Name:"价格通道线", ClassName:'ChartDrawPicturePriceChannel', Create:function() { return new ChartDrawPicturePriceChannel(); }},
60284
60284
  { Name:"文本", ClassName:'ChartDrawPictureText', Create:function() { return new ChartDrawPictureText(); }},
60285
60285
  { Name:"江恩角度线", ClassName:'ChartDrawPictureGannFan', Create:function() { return new ChartDrawPictureGannFan(); }},
60286
+ { Name:"江恩角度线2", ClassName:'ChartDrawPictureGannFan', Create:function() { return new ChartDrawPictureGannFanV2(); }},
60286
60287
  { Name:"阻速线", ClassName:'ChartDrawPictureResistanceLine', Create:function() { return new ChartDrawPictureResistanceLine(); }},
60287
60288
  { Name:"阻速线2", ClassName:'ChartDrawPictureResistanceLineV2', Create:function() { return new ChartDrawPictureResistanceLineV2(); }},
60288
60289
  { Name:"黄金分割", ClassName:'ChartDrawPictureGoldenSection', Create:function() { return new ChartDrawPictureGoldenSection(); }},
@@ -63681,6 +63682,7 @@ function ChartDrawPictureGannFan()
63681
63682
  this.LineDash=[5,10];
63682
63683
  this.EnableDottedLine=false; //辅助线是否使用虚线
63683
63684
  this.EnableArea=true; //是否绘制面积图
63685
+ this.IsShowTitle=true;
63684
63686
 
63685
63687
  this.Super_SetOption=this.SetOption; //父类函数
63686
63688
 
@@ -63693,10 +63695,10 @@ function ChartDrawPictureGannFan()
63693
63695
  if (Array.isArray(option.LineDash)) this.LineDash=option.LineDash;
63694
63696
  if (IFrameSplitOperator.IsBool(option.EnableDottedLine)) this.EnableDottedLine=option.EnableDottedLine;
63695
63697
  if (IFrameSplitOperator.IsBool(option.EnableArea)) this.EnableArea=option.EnableArea;
63698
+ if (IFrameSplitOperator.IsBool(option.IsShowTitle)) this.IsShowTitle=option.IsShowTitle;
63696
63699
  }
63697
63700
  }
63698
63701
 
63699
-
63700
63702
  this.Draw=function()
63701
63703
  {
63702
63704
  this.LinePoint=[];
@@ -63717,16 +63719,19 @@ function ChartDrawPictureGannFan()
63717
63719
  this.CalculateLines(drawPoint[0],drawPoint[1],quadrant);
63718
63720
  if (this.EnableArea) this.DrawArea();
63719
63721
 
63720
- for(var i in this.LinePoint)
63722
+ for(var i=0; i<this.LinePoint.length; ++i)
63721
63723
  {
63722
63724
  var item=this.LinePoint[i];
63723
63725
  this.DrawLine(item.Start,item.End,item.IsDottedLine);
63724
63726
  }
63725
63727
 
63726
- for(var i in this.LinePoint)
63728
+ if (this.IsShowTitle)
63727
63729
  {
63728
- var item =this.LinePoint[i];
63729
- if (item.Text && item.PtEnd) this.DrawTitle(item.PtEnd,item.Text);
63730
+ for(var i=0; i<this.LinePoint.length; ++i)
63731
+ {
63732
+ var item =this.LinePoint[i];
63733
+ if (item.Text && item.PtEnd) this.DrawTitle(item.PtEnd,item.Text);
63734
+ }
63730
63735
  }
63731
63736
  }
63732
63737
  else
@@ -63938,13 +63943,68 @@ function ChartDrawPictureGannFan()
63938
63943
  }
63939
63944
  }
63940
63945
 
63946
+
63947
+ //江恩角度线(Gann Fan) 通达信版本
63948
+ function ChartDrawPictureGannFanV2()
63949
+ {
63950
+ this.newMethod=ChartDrawPictureGannFan; //派生
63951
+ this.newMethod();
63952
+ delete this.newMethod;
63953
+
63954
+ this.ClassName='ChartDrawPictureGannFanV2';
63955
+ this.EnableDottedLine=true; //辅助线是否使用虚线
63956
+ this.LineDash=[4,8];
63957
+ this.EnableArea=false;
63958
+
63959
+ this.Super_CalculateLines=this.CalculateLines;
63960
+
63961
+ this.CalculateLines=function(ptStart,ptEnd,quadrant)
63962
+ {
63963
+ if (!this.Super_CalculateLines(ptStart,ptEnd,quadrant)) return false;
63964
+
63965
+ var border=this.Frame.ChartBorder.GetBorder();
63966
+ if (quadrant==1)
63967
+ {
63968
+ var line={ Start:ptStart, End:{ X:border.Right, Y:ptStart.Y}, IsDottedLine:false, PtEnd:null, Text:null };
63969
+ this.LinePoint.push(line);
63970
+
63971
+ var line={ Start:ptStart, End:{ X:ptStart.X, Y:border.TopEx }, IsDottedLine:false, PtEnd:null, Text:null };
63972
+ this.LinePoint.push(line);
63973
+ }
63974
+ else if (quadrant==2)
63975
+ {
63976
+ var line={ Start:ptStart, End:{ X:ptStart.X, Y:border.TopEx }, IsDottedLine:false, PtEnd:null, Text:null };
63977
+ this.LinePoint.push(line);
63978
+
63979
+ var line={ Start:ptStart, End:{ X:border.Left, Y:ptStart.Y}, IsDottedLine:false, PtEnd:null, Text:null };
63980
+ this.LinePoint.push(line);
63981
+ }
63982
+ else if (quadrant==3)
63983
+ {
63984
+ var line={ Start:ptStart, End:{ X:border.Left, Y:ptStart.Y}, IsDottedLine:false, PtEnd:null, Text:null };
63985
+ this.LinePoint.push(line);
63986
+
63987
+ var line={ Start:ptStart, End:{ X:ptStart.X, Y:border.BottomEx }, IsDottedLine:false, PtEnd:null, Text:null };
63988
+ this.LinePoint.push(line);
63989
+ }
63990
+ else if (quadrant==4)
63991
+ {
63992
+ var line={ Start:ptStart, End:{ X:ptStart.X, Y:border.BottomEx }, IsDottedLine:false, PtEnd:null, Text:null };
63993
+ this.LinePoint.push(line);
63994
+
63995
+ var line={ Start:ptStart, End:{ X:border.Right, Y:ptStart.Y}, IsDottedLine:false, PtEnd:null, Text:null };
63996
+ this.LinePoint.push(line);
63997
+ }
63998
+ }
63999
+ }
64000
+
63941
64001
  //阻速线 (高 3等份)
63942
64002
  function ChartDrawPictureResistanceLine()
63943
64003
  {
63944
64004
  this.newMethod=ChartDrawPictureGannFan; //派生
63945
64005
  this.newMethod();
63946
64006
  delete this.newMethod;
63947
-
64007
+
63948
64008
  this.ClassName='ChartDrawPictureResistanceLine';
63949
64009
 
63950
64010
  //计算线段
@@ -64083,6 +64143,7 @@ function ChartDrawPictureResistanceLineV2()
64083
64143
  this.EnableDottedLine=true; //辅助线是否使用虚线
64084
64144
  this.LineDash=[4,8];
64085
64145
  this.EnableArea=false;
64146
+ this.IsShowTitle=false;
64086
64147
  }
64087
64148
 
64088
64149
 
@@ -128501,7 +128562,7 @@ function JSReportChartContainer(uielement)
128501
128562
  switch(cmdID)
128502
128563
  {
128503
128564
  case JSCHART_MENU_ID.CMD_REPORT_CHANGE_BLOCK_ID:
128504
- if (srcParam) this.ChangeSymbol(param);
128565
+ if (srcParam) this.ChangeSymbol(srcParam);
128505
128566
  break;
128506
128567
  }
128507
128568
  }
@@ -129032,6 +129093,7 @@ var REPORT_COLUMN_ID=
129032
129093
  CUSTOM_ICON_ID:103, //自定义图标
129033
129094
  CUSTOM_CHECKBOX_ID:104, //自定义checkbox
129034
129095
  CUSTOM_BUTTON_ID:105, //自定义按钮
129096
+ CUSTOM_PROGRESS_ID:106, //进度条
129035
129097
  }
129036
129098
 
129037
129099
  var MAP_COLUMN_FIELD=new Map([
@@ -129415,6 +129477,13 @@ function ChartReport()
129415
129477
  if (IFrameSplitOperator.IsNumber(item.BlockIndex)) colItem.BlockIndex=item.BlockIndex;
129416
129478
  if (item.Button) colItem.Button=CloneData(item.Button);
129417
129479
  }
129480
+ else if (item.Type==REPORT_COLUMN_ID.CUSTOM_PROGRESS_ID)
129481
+ {
129482
+ if (!IFrameSplitOperator.IsNumber(item.DataIndex) && !IFrameSplitOperator.IsNumber(item.BlockIndex)) continue;
129483
+ if (IFrameSplitOperator.IsNumber(item.DataIndex)) colItem.DataIndex=item.DataIndex; //数据在扩展数据索引列
129484
+ if (IFrameSplitOperator.IsNumber(item.BlockIndex)) colItem.BlockIndex=item.BlockIndex;
129485
+ if (item.ProgressBar) colItem.ProgressBar=CloneData(item.ProgressBar);
129486
+ }
129418
129487
  else if (item.Type==REPORT_COLUMN_ID.CUSTOM_ICON_ID)
129419
129488
  {
129420
129489
 
@@ -129532,7 +129601,8 @@ function ChartReport()
129532
129601
 
129533
129602
  { Type:REPORT_COLUMN_ID.CUSTOM_CHECKBOX_ID, Title:"", TextAlign:"center", FixedWidth:20*GetDevicePixelRatio() },
129534
129603
 
129535
- { Type:REPORT_COLUMN_ID.CUSTOM_BUTTON_ID, Title:"", TextAlign:"center", FixedWidth:50*GetDevicePixelRatio() }
129604
+ { Type:REPORT_COLUMN_ID.CUSTOM_BUTTON_ID, Title:"", TextAlign:"center", FixedWidth:50*GetDevicePixelRatio() },
129605
+ { Type:REPORT_COLUMN_ID.CUSTOM_PROGRESS_ID, Title:"进度条", TextAlign:"center", FixedWidth:100*GetDevicePixelRatio() }
129536
129606
  ];
129537
129607
 
129538
129608
  for(var i=0;i<DEFAULT_COLUMN.length;++i)
@@ -130505,6 +130575,15 @@ function ChartReport()
130505
130575
 
130506
130576
  this.GetCustomButtonDrawInfo(data, column, drawInfo);
130507
130577
  }
130578
+ else if (column.Type==REPORT_COLUMN_ID.CUSTOM_PROGRESS_ID)
130579
+ {
130580
+ rtItem={ Left:left, Top:top, Width:column.Width, Height:this.RowHeight };
130581
+ rtItem.Right=rtItem.Left+rtItem.Width;
130582
+ rtItem.Bottom=rtItem.Top+rtItem.Height;
130583
+ drawInfo.Rect=rtItem;
130584
+
130585
+ this.GetCustomProgressBarDrawInfo(data, column, drawInfo);
130586
+ }
130508
130587
 
130509
130588
 
130510
130589
  //拖拽行颜色
@@ -130527,6 +130606,10 @@ function ChartReport()
130527
130606
  {
130528
130607
  this.DrawButton(drawInfo, left, top, itemWidth);
130529
130608
  }
130609
+ else if (column.Type==REPORT_COLUMN_ID.CUSTOM_PROGRESS_ID)
130610
+ {
130611
+ this.DrawProgressBar(drawInfo, left, top, itemWidth);
130612
+ }
130530
130613
  else
130531
130614
  {
130532
130615
  if (data.FlashBG && data.FlashBG.Data && column.ID!=undefined)
@@ -130842,6 +130925,22 @@ function ChartReport()
130842
130925
  if (IFrameSplitOperator.IsBool(buttonData.Enable)) drawInfo.Enable=buttonData.Enable;
130843
130926
  }
130844
130927
 
130928
+ this.GetCustomProgressBarDrawInfo=function(data, column, drawInfo)
130929
+ {
130930
+ var barData=this.GetExtendData(data, column);
130931
+ if (!barData) return;
130932
+
130933
+ drawInfo.Text=barData.Title;
130934
+ drawInfo.ProgressBar=column.ProgressBar;
130935
+ drawInfo.Enable=true;
130936
+ drawInfo.Value=barData.Value; //占比
130937
+ drawInfo.Data=barData;
130938
+ if (IFrameSplitOperator.IsBool(barData.Enable)) drawInfo.Enable=barData.Enable;
130939
+ if (barData.TextColor) drawInfo.TextColor=barData.TextColor;
130940
+ if (barData.BarColor) drawInfo.BarColor=barData.BarColor;
130941
+ if (barData.BGColor) drawInfo.BGColor=barData.BGColor;
130942
+ }
130943
+
130845
130944
  this.FormaTimeDrawInfo=function(column, stock, drawInfo, data)
130846
130945
  {
130847
130946
  if (!IFrameSplitOperator.IsNumber(stock.Time)) return;
@@ -131184,6 +131283,67 @@ function ChartReport()
131184
131283
  }
131185
131284
  }
131186
131285
 
131286
+ this.DrawProgressBar=function(drawInfo, left, top, width)
131287
+ {
131288
+ if (!drawInfo.ProgressBar) return;
131289
+
131290
+ var config=drawInfo.ProgressBar;
131291
+ var rtBG=
131292
+ {
131293
+ Left:left+config.Margin.Left, Top:top+config.Margin.Top,
131294
+ Height:this.RowHeight-config.Margin.Top-config.Margin.Bottom,
131295
+ Width:width-config.Margin.Left-config.Margin.Right
131296
+ }
131297
+ rtBG.Right=rtBG.Left+rtBG.Width;
131298
+ rtBG.Bottom=rtBG.Top+rtBG.Height;
131299
+
131300
+ var bgColor=config.BGColor;
131301
+ var barColor=config.BarColor;
131302
+ var textColor=config.TextColor;
131303
+ if (drawInfo.Enable===false)
131304
+ {
131305
+ bgColor=config.Disable.BGColor;
131306
+ barColor=config.Disable.BarColor;
131307
+ textColor=config.Disable.TextColor;
131308
+ }
131309
+
131310
+ if (drawInfo.BGColor) bgColor=drawInfo.BGColor;
131311
+ if (drawInfo.TextColor) textColor=drawInfo.TextColor;
131312
+ if (drawInfo.BarColor) barColor=drawInfo.BarColor;
131313
+
131314
+ if (bgColor)
131315
+ {
131316
+ this.Canvas.fillStyle=bgColor;
131317
+ this.Canvas.fillRect(rtBG.Left, rtBG.Top,rtBG.Width,rtBG.Height);
131318
+ }
131319
+
131320
+ var fullBarWidth=rtBG.Width-config.BarMargin.Left-config.BarMargin.Right;
131321
+ var value=drawInfo.Value; // 0-1 进度条
131322
+ var rtBar={ Left:rtBG.Left+config.BarMargin.Left, Top:rtBG.Top+config.BarMargin.Top, Bottom:rtBG.Bottom-config.BarMargin.Bottom, Width:0 };
131323
+ if (value>0)
131324
+ {
131325
+ if (value>1) value=1;
131326
+ rtBar.Width=fullBarWidth*value;
131327
+ rtBar.Height=rtBar.Bottom-rtBar.Top;
131328
+ if (rtBar.Width<1) rtBG.Width=1;
131329
+
131330
+ this.Canvas.fillStyle=barColor;
131331
+ this.Canvas.fillRect(rtBar.Left, rtBar.Top,rtBar.Width,rtBar.Height);
131332
+ }
131333
+
131334
+ if (textColor && drawInfo.Text)
131335
+ {
131336
+ this.Canvas.font=config.Font;
131337
+ this.Canvas.textBaseline="bottom";
131338
+ this.Canvas.textAlign="left";
131339
+
131340
+ this.Canvas.fillStyle=textColor;
131341
+ var xText=rtBar.Left+config.TextMargin.Left;
131342
+ var yText=rtBar.Bottom-config.TextMargin.Bottom;
131343
+ this.Canvas.fillText(drawInfo.Text, xText, yText);
131344
+ }
131345
+ }
131346
+
131187
131347
  //字体由外面设置
131188
131348
  this.TextEllipsis=function(text, maxWidth, maxText)
131189
131349
  {
@@ -135985,7 +136145,7 @@ function ScrollBarBGChart()
135985
136145
 
135986
136146
 
135987
136147
 
135988
- var HQCHART_VERSION="1.1.13568";
136148
+ var HQCHART_VERSION="1.1.13576";
135989
136149
 
135990
136150
  function PrintHQChartVersion()
135991
136151
  {
@@ -5,7 +5,7 @@
5
5
 
6
6
 
7
7
 
8
- var HQCHART_VERSION="1.1.13568";
8
+ var HQCHART_VERSION="1.1.13576";
9
9
 
10
10
  function PrintHQChartVersion()
11
11
  {