|
|
@@ -388,6 +388,12 @@ export function drawColumnDataPoints(
|
|
|
: [];
|
|
|
const minRange = ranges.pop();
|
|
|
const maxRange = ranges.shift();
|
|
|
+
|
|
|
+ // 计算0轴坐标
|
|
|
+ const spacingValid = opts.height! - opts.area![0] - opts.area![2];
|
|
|
+ const zeroHeight = (spacingValid * (0 - (minRange || 0))) / ((maxRange || 0) - (minRange || 0));
|
|
|
+ const zeroPoints = opts.height! - Math.round(zeroHeight) - opts.area![2];
|
|
|
+
|
|
|
const data = eachSeries.data;
|
|
|
|
|
|
switch (columnOption.type) {
|