This commit is contained in:
parent
1f601682f3
commit
c553d7ba68
|
@ -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(() => {
|
||||
|
|
Loading…
Reference in New Issue