|
@ -11,6 +11,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import echarts from 'echarts' |
|
|
import echarts from 'echarts' |
|
|
|
|
|
import { toRaw } from 'vue' |
|
|
import 'echarts/theme/macarons' |
|
|
import 'echarts/theme/macarons' |
|
|
|
|
|
|
|
|
var dataAxis = [] |
|
|
var dataAxis = [] |
|
@ -64,7 +65,7 @@ export default { |
|
|
this.setOptions() |
|
|
this.setOptions() |
|
|
}, |
|
|
}, |
|
|
setOptions() { |
|
|
setOptions() { |
|
|
this.chart.setOption({ |
|
|
|
|
|
|
|
|
toRaw(this.chart).setOption({ |
|
|
grid: { |
|
|
grid: { |
|
|
left: '40', |
|
|
left: '40', |
|
|
right: '20', |
|
|
right: '20', |
|
|