UPDATE

上级 dc68fad7
......@@ -11,7 +11,9 @@ import { onMounted, reactive } from 'vue';
let config = reactive({
color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de"],//颜色
sfShowLabel:true //是否显示文本标线
sfShowLabel:true, //是否显示文本标线
legendOrient:'horizontal', //图例,横向、纵向
legendType:'plain', //图例类型,普通图例plain还是 scroll翻页图例
})
//基础数据
const salesData = [
......@@ -21,8 +23,8 @@ const salesData = [
{label: "2023-05-04", value: 21, DWMC:''},
{label: "2023-05-05", value: 23, DWMC:''},
{label: "2023-05-06", value: 82, DWMC:''},
{label: "2023-05-06", value: 26, DWMC:''},
{label: "2023-05-06", value: 57, DWMC:''}
{label: "2023-05-07", value: 26, DWMC:''},
{label: "2023-05-08", value: 57, DWMC:''}
];
onMounted(() => {
pie('#abc', 700, 400, salesData, 250, 200, 150, 100, 30, config)
......
......@@ -152,4 +152,5 @@ export default function pie(id, width, height, data, x, y, rx, ry, h, config,ir=
})
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册