hqchart 1.1.14128 → 1.1.14135
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.
- package/lib/umychart.vue.js +49 -371
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogTooltip.js +8 -4
- package/src/jscommon/umychart.complier.js +3 -9
- package/src/jscommon/umychart.js +74 -369
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +78 -379
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +86 -383
package/package.json
CHANGED
|
@@ -488,6 +488,7 @@ function JSDialogTooltip()
|
|
|
488
488
|
{
|
|
489
489
|
var defaultfloatPrecision=GetfloatPrecision(this.HQChart.Symbol);//价格小数位数
|
|
490
490
|
var upperSymbol=this.HQChart.Symbol.toUpperCase();
|
|
491
|
+
var unit=MARKET_SUFFIX_NAME.GetVolUnit(upperSymbol);
|
|
491
492
|
var priceFormat=0;
|
|
492
493
|
if (this.Style==1) priceFormat=1;
|
|
493
494
|
|
|
@@ -505,7 +506,7 @@ function JSDialogTooltip()
|
|
|
505
506
|
this.ForamtPrice(data.High,yClose, defaultfloatPrecision,'DialogTooltip-High',priceFormat),
|
|
506
507
|
this.ForamtPrice(data.Low,yClose, defaultfloatPrecision,'DialogTooltip-Low',priceFormat),
|
|
507
508
|
this.ForamtPrice(data.Close,yClose, defaultfloatPrecision,'DialogTooltip-Close',priceFormat),
|
|
508
|
-
this.FormatVol(data.Vol,'DialogTooltip-Vol' ),
|
|
509
|
+
this.FormatVol(data.Vol/unit,'DialogTooltip-Vol' ),
|
|
509
510
|
this.FormatAmount(data.Amount,'DialogTooltip-Amount' ),
|
|
510
511
|
this.FormatIncrease(data.Close,yClose,defaultfloatPrecision,'DialogTooltip-Increase',priceFormat),
|
|
511
512
|
this.FormatAmplitude(data.High,data.Low,yClose,defaultfloatPrecision,'DialogTooltip-Amplitude',priceFormat),
|
|
@@ -567,6 +568,8 @@ function JSDialogTooltip()
|
|
|
567
568
|
this.GetFormatMinuteTooltipText=function(data)
|
|
568
569
|
{
|
|
569
570
|
var defaultfloatPrecision=GetfloatPrecision(this.HQChart.Symbol);//价格小数位数
|
|
571
|
+
var upperSymbol=this.HQChart.Symbol.toUpperCase();
|
|
572
|
+
var unit=MARKET_SUFFIX_NAME.GetVolUnit(upperSymbol);
|
|
570
573
|
var aryText=[];
|
|
571
574
|
if (data.Type==0) //连续交易
|
|
572
575
|
{
|
|
@@ -581,7 +584,7 @@ function JSDialogTooltip()
|
|
|
581
584
|
this.ForamtPrice(item.AvPrice,item.YClose, defaultfloatPrecision,'DialogTooltip-AvPrice', 1),
|
|
582
585
|
this.FormatRisefall(item.Close,item.YClose, defaultfloatPrecision,'DialogTooltip-Risefall'),
|
|
583
586
|
this.FormatIncrease(item.Close,item.YClose,defaultfloatPrecision,'DialogTooltip-Increase', 1),
|
|
584
|
-
this.FormatVol(item.Vol,'DialogTooltip-Vol' ),
|
|
587
|
+
this.FormatVol(item.Vol/unit,'DialogTooltip-Vol' ),
|
|
585
588
|
this.FormatAmount(item.Amount,'DialogTooltip-Amount' ),
|
|
586
589
|
];
|
|
587
590
|
|
|
@@ -614,7 +617,7 @@ function JSDialogTooltip()
|
|
|
614
617
|
this.FormatTime(item.Time, null, timeForamt, 'DialogTooltip-Time'),
|
|
615
618
|
this.ForamtPrice(item.Price,item.YClose, defaultfloatPrecision,'DialogTooltip-AC-Price',1),
|
|
616
619
|
this.FormatIncrease(item.Price,item.YClose,defaultfloatPrecision,'DialogTooltip-AC-Increase',1),
|
|
617
|
-
this.FormatVol(item.Vol[0],'DialogTooltip-AC-Vol' ),
|
|
620
|
+
this.FormatVol(item.Vol[0]/unit,'DialogTooltip-AC-Vol' ),
|
|
618
621
|
];
|
|
619
622
|
}
|
|
620
623
|
else
|
|
@@ -1479,6 +1482,7 @@ function JSFloatTooltip()
|
|
|
1479
1482
|
var symbol=kItem.Symbol;
|
|
1480
1483
|
var upperSymbol=symbol.toUpperCase();
|
|
1481
1484
|
var defaultfloatPrecision=GetfloatPrecision(symbol);//价格小数位数
|
|
1485
|
+
var unit=MARKET_SUFFIX_NAME.GetVolUnit(upperSymbol);
|
|
1482
1486
|
|
|
1483
1487
|
//日期
|
|
1484
1488
|
var dateItem=this.ForamtDate(data.Date,"YYYY/MM/DD/W",'FloatTooltip-Date' );
|
|
@@ -1500,7 +1504,7 @@ function JSFloatTooltip()
|
|
|
1500
1504
|
this.ForamtPrice(data.Low,yClose, defaultfloatPrecision,'FloatTooltip-Low'),
|
|
1501
1505
|
this.ForamtPrice(data.Close,yClose, defaultfloatPrecision,'FloatTooltip-Close'),
|
|
1502
1506
|
this.ForamtPrice(data.YClose,data.YClose, defaultfloatPrecision,'FloatTooltip-YClose'),
|
|
1503
|
-
this.FormatVol(data.Vol,'FloatTooltip-Vol' ),
|
|
1507
|
+
this.FormatVol(data.Vol/unit,'FloatTooltip-Vol' ),
|
|
1504
1508
|
this.FormatAmount(data.Amount,'FloatTooltip-Amount' ),
|
|
1505
1509
|
this.FormatIncrease(data.Close,yClose,defaultfloatPrecision,'FloatTooltip-Increase'),
|
|
1506
1510
|
this.FormatAmplitude(data.High,data.Low,yClose,defaultfloatPrecision,'FloatTooltip-Amplitude'),
|
|
@@ -12481,9 +12481,7 @@ function JSSymbolData(ast,option,jsExecute)
|
|
|
12481
12481
|
return kData.GetClose();
|
|
12482
12482
|
case 'VOL':
|
|
12483
12483
|
case 'V':
|
|
12484
|
-
|
|
12485
|
-
return kData.GetVol(100); //A股的 把股转成手
|
|
12486
|
-
return kData.GetVol();
|
|
12484
|
+
return kData.GetVol(MARKET_SUFFIX_NAME.GetVolUnit(upperSymbol));
|
|
12487
12485
|
case 'OPEN':
|
|
12488
12486
|
case 'O':
|
|
12489
12487
|
return kData.GetOpen();
|
|
@@ -13112,9 +13110,7 @@ function JSSymbolData(ast,option,jsExecute)
|
|
|
13112
13110
|
return this.Data.GetClose();
|
|
13113
13111
|
case 'VOL':
|
|
13114
13112
|
case 'V':
|
|
13115
|
-
|
|
13116
|
-
return this.Data.GetVol(100); //A股的 把股转成手
|
|
13117
|
-
return this.Data.GetVol();
|
|
13113
|
+
return this.Data.GetVol(MARKET_SUFFIX_NAME.GetVolUnit(upperSymbol));
|
|
13118
13114
|
case 'OPEN':
|
|
13119
13115
|
case 'O':
|
|
13120
13116
|
return this.Data.GetOpen();
|
|
@@ -13360,9 +13356,7 @@ function JSSymbolData(ast,option,jsExecute)
|
|
|
13360
13356
|
return result.GetAmount();
|
|
13361
13357
|
case 'V':
|
|
13362
13358
|
case "VOL":
|
|
13363
|
-
|
|
13364
|
-
return result.GetVol(100);
|
|
13365
|
-
return result.GetVol();
|
|
13359
|
+
return result.GetVol(MARKET_SUFFIX_NAME.GetVolUnit(upperSymbol));
|
|
13366
13360
|
case "VOLINSTK":
|
|
13367
13361
|
return result.GetPosition();
|
|
13368
13362
|
default:
|