tvcharts 0.6.64 → 0.6.65
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/dist/echarts.js +10 -16
- package/dist/echarts.js.map +2 -2
- package/lib/chart/barPlot/BarPlotSeries.js +0 -5
- package/lib/chart/barPlot/BarPlotView.js +0 -4
- package/lib/chart/barPlot/barPlotLayout.js +8 -7
- package/lib/chart/candlePlot/CandlePlotView.js +0 -55
- package/lib/chart/candlePlot/NormalBoxPath.js +0 -5
- package/lib/core/echarts.js +0 -4
- package/lib/model/Global.js +1 -1
- package/lib/model/Series.js +7 -1
- package/package.json +1 -1
- package/types/src/chart/barPlot/BarPlotSeries.d.ts +0 -6
package/dist/echarts.js
CHANGED
|
@@ -16393,7 +16393,7 @@ var GlobalModel = class extends Model_default {
|
|
|
16393
16393
|
return;
|
|
16394
16394
|
}
|
|
16395
16395
|
if (!Component_default.hasClass(mainType)) {
|
|
16396
|
-
option[mainType] = option[mainType] == null ? clone(componentOption) : merge(option[mainType], componentOption, true);
|
|
16396
|
+
option[mainType] = option[mainType] == null && ~mainType.indexOf("custom") ? clone(componentOption) : merge(option[mainType], componentOption, true);
|
|
16397
16397
|
} else if (mainType) {
|
|
16398
16398
|
newCmptTypes.push(mainType);
|
|
16399
16399
|
newCmptTypeMap.set(mainType, true);
|
|
@@ -57768,11 +57768,6 @@ BarPlotSeriesModel.defaultOption = {
|
|
|
57768
57768
|
itemStyle: {
|
|
57769
57769
|
color: "#eb5454",
|
|
57770
57770
|
color0: "#47b262",
|
|
57771
|
-
borderColor: "#eb5454",
|
|
57772
|
-
borderColor0: "#47b262",
|
|
57773
|
-
wickColor: "#eb5454",
|
|
57774
|
-
wickColor0: "#47b262",
|
|
57775
|
-
borderColorDoji: null,
|
|
57776
57771
|
borderWidth: 1
|
|
57777
57772
|
},
|
|
57778
57773
|
emphasis: {
|
|
@@ -57844,12 +57839,13 @@ var barPlotLayout = {
|
|
|
57844
57839
|
const lowestPoint = getPoint(lowestVal, axisDimVal);
|
|
57845
57840
|
const highestPoint = getPoint(highestVal, axisDimVal);
|
|
57846
57841
|
const itemModel = data2.getItemModel(dataIndex);
|
|
57847
|
-
const
|
|
57848
|
-
const
|
|
57849
|
-
|
|
57850
|
-
|
|
57851
|
-
|
|
57852
|
-
|
|
57842
|
+
const sign = getSign3(store, dataIndex, openVal, closeVal, closeDimI);
|
|
57843
|
+
const key = getColor2(sign, itemModel);
|
|
57844
|
+
if (key) {
|
|
57845
|
+
const bodyPoints = bodyPointsByColor[key] || [];
|
|
57846
|
+
bodyPoints.push(ocLowPoint, ocHighPoint, lowestPoint, highestPoint);
|
|
57847
|
+
bodyPointsByColor[key] = bodyPoints;
|
|
57848
|
+
}
|
|
57853
57849
|
}
|
|
57854
57850
|
data2.setLayout({
|
|
57855
57851
|
candleWidth,
|
|
@@ -57872,14 +57868,12 @@ var barPlotLayout = {
|
|
|
57872
57868
|
}
|
|
57873
57869
|
}
|
|
57874
57870
|
};
|
|
57875
|
-
function getSign3(store, dataIndex, openVal, closeVal, closeDimI
|
|
57871
|
+
function getSign3(store, dataIndex, openVal, closeVal, closeDimI) {
|
|
57876
57872
|
let sign;
|
|
57877
57873
|
if (openVal > closeVal) {
|
|
57878
57874
|
sign = -1;
|
|
57879
|
-
} else if (openVal < closeVal) {
|
|
57880
|
-
sign = 1;
|
|
57881
57875
|
} else {
|
|
57882
|
-
sign =
|
|
57876
|
+
sign = 1;
|
|
57883
57877
|
}
|
|
57884
57878
|
return sign;
|
|
57885
57879
|
}
|