hqchart 1.1.14843 → 1.1.14846

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.
@@ -45600,6 +45600,7 @@ function ChartBaseLineBar()
45600
45600
  this.LineWidth=1;
45601
45601
  this.IsDrawFirst=true;
45602
45602
  this.AryData=[]; //{ Date, Time, Up, Down }
45603
+ this.DefaultMax; //默认最大值
45603
45604
 
45604
45605
  this.MaxValue;
45605
45606
  this.YBaseLine;
@@ -45771,6 +45772,7 @@ function ChartBaseLineBar()
45771
45772
  if (max && min)
45772
45773
  {
45773
45774
  this.MaxValue=Math.max(Math.abs(max.Value),Math.abs(min.Value));
45775
+ if (IFrameSplitOperator.IsNumber(this.DefaultMax)) this.MaxValue=Math.max(this.DefaultMax,this.MaxValue);
45774
45776
  }
45775
45777
  }
45776
45778
 
@@ -82476,6 +82478,7 @@ function JSChartLocalization()
82476
82478
  ['DialogTooltip-AC-AvPrice', {CN:'匹配均价', EN:'AVPrice', TC:'匹配均價'}],
82477
82479
  ['DialogTooltip-AC-Increase', {CN:'竞价涨幅', EN:'Increase', TC:'競價漲幅'}],
82478
82480
  ['DialogTooltip-AC-Vol', {CN:'匹配量', EN:'Vol', TC:'匹配量'}],
82481
+ ['DialogTooltip-AC-NotMatchVol', {CN:'未匹配量:', EN:'NV:', TC:'未匹配量'}],
82479
82482
  ['DialogTooltip-Value', {CN:'数值', EN:'Value', TC:'数值'}],
82480
82483
 
82481
82484
  ['FloatTooltip-Date', {CN:'日期', EN:'Date', TC:'日期'}],
@@ -129257,6 +129260,7 @@ function ScriptIndex(name,script,args,option)
129257
129260
  {
129258
129261
  if (config.UpColor) chart.UpColor=config.UpColor;
129259
129262
  if (config.DownColor) chart.DownColor=config.DownColor;
129263
+ if (IFrameSplitOperator.IsNumber(config.DefaultMax)) chart.DefaultMax=config.DefaultMax;
129260
129264
  }
129261
129265
 
129262
129266
  chart.BuildCacheData();
@@ -130827,6 +130831,7 @@ function OverlayScriptIndex(name,script,args,option)
130827
130831
  {
130828
130832
  if (config.UpColor) chart.UpColor=config.UpColor;
130829
130833
  if (config.DownColor) chart.DownColor=config.DownColor;
130834
+ if (IFrameSplitOperator.IsNumber(config.DefaultMax)) chart.DefaultMax=config.DefaultMax;
130830
130835
  }
130831
130836
 
130832
130837
  chart.BuildCacheData();
@@ -157267,17 +157272,31 @@ function JSDialogTooltip()
157267
157272
  {
157268
157273
  var item=data.Data.Data;
157269
157274
  if (!item) item={ Vol:[] };
157270
-
157271
- var timeForamt="HH:MM:SS";
157272
- if (item.Ver===1) timeForamt="HH:MM"
157273
- aryText=
157274
- [
157275
- this.ForamtDate(item.Date,this.Style==1?"MM/DD/W":"YYYY/MM/DD/W",'DialogTooltip-Date' ),
157276
- this.FormatTime(item.Time, null, timeForamt, 'DialogTooltip-Time'),
157277
- this.ForamtPrice(item.Price,item.YClose, defaultfloatPrecision,'DialogTooltip-AC-Price',1),
157278
- this.FormatIncrease(item.Price,item.YClose,defaultfloatPrecision,'DialogTooltip-AC-Increase',1),
157279
- this.FormatVol(item.Vol[0]/unit,'DialogTooltip-AC-Vol' ),
157280
- ];
157275
+ if (data.Data.Ver===1)
157276
+ {
157277
+ var timeForamt="HH:MM"
157278
+ aryText=
157279
+ [
157280
+ this.ForamtDate(item.Date,this.Style==1?"MM/DD/W":"YYYY/MM/DD/W",'DialogTooltip-Date' ),
157281
+ this.FormatTime(item.Time, null, timeForamt, 'DialogTooltip-Time'),
157282
+ this.ForamtPrice(item.Price,item.YClose, defaultfloatPrecision,'DialogTooltip-AC-Price',1),
157283
+ this.FormatIncrease(item.Price,item.YClose,defaultfloatPrecision,'DialogTooltip-AC-Increase',1),
157284
+ this.FormatVol(item.Vol[0]/unit,'DialogTooltip-AC-Vol'),
157285
+ ];
157286
+ }
157287
+ else
157288
+ {
157289
+ var timeForamt="HH:MM:SS";
157290
+ aryText=
157291
+ [
157292
+ this.ForamtDate(item.Date,this.Style==1?"MM/DD/W":"YYYY/MM/DD/W",'DialogTooltip-Date' ),
157293
+ this.FormatTime(item.Time, null, timeForamt, 'DialogTooltip-Time'),
157294
+ this.ForamtPrice(item.Price,item.YClose, defaultfloatPrecision,'DialogTooltip-AC-Price',1),
157295
+ this.FormatIncrease(item.Price,item.YClose,defaultfloatPrecision,'DialogTooltip-AC-Increase',1),
157296
+ this.FormatVol(item.Vol[0]/unit,'DialogTooltip-AC-Vol', 2),
157297
+ this.FormatVol(item.Vol[1]/unit,'DialogTooltip-AC-NotMatchVol', 2),
157298
+ ];
157299
+ }
157281
157300
  }
157282
157301
  else
157283
157302
  {
@@ -157398,7 +157417,7 @@ function JSDialogTooltip()
157398
157417
  return item;
157399
157418
  }
157400
157419
 
157401
- this.FormatVol=function(vol, TitleID)
157420
+ this.FormatVol=function(vol, TitleID, floatPrecision)
157402
157421
  {
157403
157422
  var item=
157404
157423
  {
@@ -157409,7 +157428,10 @@ function JSDialogTooltip()
157409
157428
 
157410
157429
  if (!IFrameSplitOperator.IsNumber(vol)) return item;
157411
157430
 
157412
- item.Text=IFrameSplitOperator.FormatValueStringV2(vol,0,2,this.LanguageID);
157431
+ var decimal=0; //小数位数
157432
+ if (IFrameSplitOperator.IsNumber(floatPrecision)) decimal=floatPrecision;
157433
+
157434
+ item.Text=IFrameSplitOperator.FormatValueStringV2(vol,decimal,2,this.LanguageID);
157413
157435
 
157414
157436
  return item;
157415
157437
  }
@@ -161087,7 +161109,7 @@ function HQChartScriptWorker()
161087
161109
 
161088
161110
 
161089
161111
 
161090
- var HQCHART_VERSION="1.1.14842";
161112
+ var HQCHART_VERSION="1.1.14845";
161091
161113
 
161092
161114
  function PrintHQChartVersion()
161093
161115
  {