feat:修改chart-bar-statistics 的X轴显示
This commit is contained in:
@@ -611,6 +611,7 @@ export default {
|
||||
const copies = maxValueCopies.copies
|
||||
const unit = maxValueCopies.unit
|
||||
const oldDot = maxValueCopies.oldDot
|
||||
console.log(copies,maxValue,unit, chartDataFormat.Interval(maxValue, copies, unit.type, 'max') * Math.ceil(dataArg.length / 5))
|
||||
let option = {
|
||||
title: {
|
||||
show: false
|
||||
@@ -1898,6 +1899,7 @@ export default {
|
||||
}
|
||||
const chartUnit = chartInfo.unit ? chartInfo.unit : 2
|
||||
const unit = chartDataFormat.getUnit(chartUnit)
|
||||
console.log(unit);
|
||||
minValue = minValue > 0 ? 0 : minValue
|
||||
maxValue = maxValue - minValue
|
||||
maxValue = chartDataFormat.formatDatas(maxValue, unit.type, 'ceil', unit.ascii)
|
||||
|
||||
Reference in New Issue
Block a user