@ -200,7 +200,7 @@ const getOption = () => {
};
onMounted(() => {
chart = echarts.init(chartRef.value, 'macarons', {
renderer: 'svg' // 使用 SVG 渲染器
renderer: 'svg'
});
chart.setOption(getOption(), true);
@ -207,7 +207,7 @@ const getOption = () => {
@ -84,7 +84,7 @@ const getOption = () => {
@ -209,7 +209,7 @@ const getOption = () => {
chart && chart.setOption(getOption(), true);
@ -216,7 +216,7 @@ const getOption = () => {
@ -103,7 +103,7 @@ const getOption = () => {
radius: '50%',
label: {
formatter: '{b}: {d}%'
},
}
]
@ -130,7 +130,7 @@ const getOption = () => {
@ -7,7 +7,7 @@
<div class="custom-node"
:style="{textAlign:props.data.options.align,width:props.dimensions.width+'px',lineHeight:props.dimensions.height+'px',height:props.dimensions.height+'px',pointerEvents:props.isView?'auto': 'none'}">
<span
:style="{color:props.data.options.color}">{{ props.inputData?.text || props.data.options.text
:style="{color:props.data.options.color,fontSize:props.dimensions.height+'px'}">{{ props.inputData?.text || props.data.options.text
}}</span>
</div>
<Handle v-if="!props.isView" :id="`${props.id}.-t`" type="target" :position="Position.Left" />