This commit is contained in:
parent
1f601682f3
commit
c553d7ba68
|
@ -215,11 +215,11 @@ const getOption = () => {
|
||||||
]),
|
]),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
label:{
|
label: {
|
||||||
show:true,
|
show: true,
|
||||||
position:'right',
|
position: 'right',
|
||||||
color:'#ffffff',
|
color: '#ffffff',
|
||||||
formatter:function(data){
|
formatter: function (data) {
|
||||||
return data.value
|
return data.value
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -261,6 +261,10 @@ const setChart = () => {
|
||||||
var myChart = echarts.init(chart.value);
|
var myChart = echarts.init(chart.value);
|
||||||
// 使用刚指定的配置项和数据显示图表。
|
// 使用刚指定的配置项和数据显示图表。
|
||||||
myChart.setOption(data.option);
|
myChart.setOption(data.option);
|
||||||
|
myChart.on('click', function (params) {
|
||||||
|
console.log('params',params)
|
||||||
|
})
|
||||||
|
|
||||||
};
|
};
|
||||||
// 使用生命钩子
|
// 使用生命钩子
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
|
|
Loading…
Reference in New Issue