This commit is contained in:
lnn19986213 2024-05-27 15:48:31 +08:00
parent 1f601682f3
commit c553d7ba68
1 changed files with 12 additions and 8 deletions

View File

@ -215,11 +215,11 @@ const getOption = () => {
]),
},
},
label:{
show:true,
position:'right',
color:'#ffffff',
formatter:function(data){
label: {
show: true,
position: 'right',
color: '#ffffff',
formatter: function (data) {
return data.value
}
},
@ -261,6 +261,10 @@ const setChart = () => {
var myChart = echarts.init(chart.value);
// 使
myChart.setOption(data.option);
myChart.on('click', function (params) {
console.log('params',params)
})
};
// 使
onBeforeMount(() => {