| | |
| | | const getNormalBar = (data)=>{ |
| | | const defaultOption = { |
| | | minRatio: 0, |
| | | maxRatio: 1.2, |
| | | maxRatio: 1.1, |
| | | grid: { |
| | | top: '15%', |
| | | right: '3%', |
| | |
| | | if(isNaN(min)) { |
| | | return 0; |
| | | }else { |
| | | return min * option.minRatio; |
| | | return (min * option.minRatio).toHold(3); |
| | | } |
| | | }, |
| | | max(data) { |
| | |
| | | if(isNaN(max)) { |
| | | return 1; |
| | | }else { |
| | | return (max * option.maxRatio).toHold(0); |
| | | return (max * option.maxRatio).toHold(3); |
| | | } |
| | | }, |
| | | axisLabel: { |
| | |
| | | data: [], |
| | | type: 'bar', |
| | | showBackground: true, |
| | | symbolSize: 0, |
| | | backgroundStyle: { |
| | | color: 'rgba(180, 180, 180, 0.2)' |
| | | }, |