已解决
echart绘制环形进度条
来自网友在路上 165865提问 提问时间:2023-10-26 11:53:43阅读次数: 65
最佳答案 问答题库658位专家为你答疑解惑
原型:
<template><div class="chart"><div ref="chartRef" class="chart-bar" :style="{ width, height }"></div><div class="num">{{ sideText }}</div></div>
</template>
<script lang="ts" setup>
import { ref, nextTick, watch } from 'vue';
import * as echarts from 'echarts/core';
import {TooltipComponent,LegendComponent,TitleComponent,PolarComponent,
} from 'echarts/components';
import { BarChart } from 'echarts/charts';
import { LabelLayout } from 'echarts/features';
import { CanvasRenderer } from 'echarts/renderers';echarts.use([TooltipComponent,LegendComponent,BarChart,CanvasRenderer,LabelLayout,TitleComponent,PolarComponent,
]);const props = withDefaults(defineProps<{data: object;}>(),{}
);
const showText = ref('20/20'
查看全文
99%的人还看了
猜你感兴趣
版权申明
本文"echart绘制环形进度条":http://eshow365.cn/6-25079-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!