Skip to content

[Feature] 饼图各部分之间提供间隙支持 #19066

@zhouzhili

Description

@zhouzhili

What problem does this feature solve?

给饼图的itemStyle 增加gap属性支持,使其可以配置间隙,这种设计目前很常见,但是官方没有支持直接配置间隙的方法。

目前看到2种解决方案都有缺陷,
一是使用borderColor和borderWidth,但是配置透明色时不会渲染,当背景面板是渐变色或者图片时,这种方法不能满足需求

二是使用示例中的,itemStyle: { color: 'transparent' },但是当点击图例关闭某一项时,间隔依然存在,会越来越大,体验也不满足需求。

image

我的示例:间隙饼图

What does the proposed API look like?

提供官方支持的间隔配置,例如增加gap属性来支持饼图间隔,可以是弧度或者像素宽度等

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions