antvis / G2Plot

:dango: An interactive and responsive charting library based on G2.
https://g2plot.antv.antgroup.com
MIT License
2.55k stars 605 forks source link

🐛 [BUG] 饼图label 线条覆盖问题 #3774

Open ryanuo opened 5 months ago

ryanuo commented 5 months ago

🐛 Bug description [Please make everyone to understand it]

image
      const pieChart = new Pie('pie-container', {
        data,
        theme: 'custom',
        angleField: 'value',
        colorField: 'type',
        radius: 0.75,
        color: colorArray,
        pieStyle: {
          lineWidth: 0, // 边框宽度
        },
        legend: false,
        label: {
          type: 'spider',
          labelHeight: 65,
          formatter: (data, mappingData) =>
            createCustomGroup(data, mappingData),
        },
        tooltip: false,
        interactions: [
          { type: 'element-selected' },
          { type: 'element-active' },
        ],
      });