vue3实现chart水球图

编程入门 行业动态 更新时间:2024-10-23 03:24:05

vue3实现chart<a href=https://www.elefans.com/category/jswz/34/1746258.html style=水球图"/>

vue3实现chart水球图

代码如下

<template>
<div>
<div ref="test" style="width:400px";height="400px"></div>
</div>
</template>
<script>
import * as echarts from 'echarts';
import 'echarts-liquidfill';
export default{
setup(props,content){
let echart = echarts;const test = ref(null);function initChart(){let chart = echart.init(test.value)chart.setOption({title:{text:'',subtext:'',itemGap:10,textStyle:{fontSize:'20',fontWeight:'800',color:'black',},subtextStyle:{fontSize:'20',fontWeight:'800',color:'black',},},series:[{type:'liquidFill',name:'',data:[0.7],radius:'70%',color:'#73',backgroundStyle:{color:'rgba(255,255,255)',},outline:{show:true},}],// 鼠标进入是否给出提示tooltip:{show:true,formatter: function(params){let tooltipe='<div>123</div>';return tooltipe;},}})}return{test};}
}
</script>

更多推荐

vue3实现chart水球图

本文发布于:2023-12-03 20:32:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1657348.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:水球   chart

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!