Browse Source

优化

master
blank 10 months ago
parent
commit
18096d05ca
  1. 4
      src/components/ChartTimeLineBar/index.vue

4
src/components/ChartTimeLineBar/index.vue

@ -178,11 +178,11 @@ export default {
yAxis : [ yAxis : [
{ {
max: function (value) { max: function (value) {
return (value.max + (value.max - value.min) * 0.3).toFixed(2) return (value.max + (value.max - value.min==0?0.5:value.max - value.min) * 0.3).toFixed(2)
}, },
min: function (value) { min: function (value) {
if(type == 'line'){ if(type == 'line'){
return (value.min - (value.max - value.min) * 0.3).toFixed(2) return (value.min - (value.max - value.min==0?0.5:value.max - value.min) * 0.3).toFixed(2)
} }
return 0 return 0
}, },

Loading…
Cancel
Save