G2Plot icon indicating copy to clipboard operation
G2Plot copied to clipboard

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

Open ryanuo opened this issue 1 year ago • 0 comments

🐛 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' },
        ],
      });
  • G2Plot Version: ^2.4.31
  • Platform: react

ryanuo avatar Apr 29 '24 03:04 ryanuo