|
|
@ -445,9 +445,10 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
staticDataFn(val) {
|
|
|
|
staticDataFn(val) {
|
|
|
|
const title = this.options.title;
|
|
|
|
const title = this.options.title;
|
|
|
|
title.text = '{nums|' + val + '}{percent|%}';
|
|
|
|
const num = val[0]['num'];
|
|
|
|
this.options.series[6]['data'][0]['value'] = val;
|
|
|
|
title.text = '{nums|' + num + '}{percent|%}';
|
|
|
|
this.options.series[6]['data'][1]['value'] = 100 - val;
|
|
|
|
this.options.series[6]['data'][0]['value'] = num;
|
|
|
|
|
|
|
|
this.options.series[6]['data'][1]['value'] = 100 - num;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dynamicDataFn(val, refreshTime) {
|
|
|
|
dynamicDataFn(val, refreshTime) {
|
|
|
|
if (!val) return;
|
|
|
|
if (!val) return;
|
|
|
|