Skip to content

[Bug] When the sunburst is anticlockwise, the leaf node text displays the problem externally #19050

@dmcisgood

Description

@dmcisgood

Version

5.4.3

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=sunburst-drink&edit=1&reset=1

Steps to Reproduce

Use official case
https://echarts.apache.org/examples/zh/editor.html?c=sunburst-drink&edit=1&reset=1

Current Behavior

set clockwise=false
set levels:{
{},{},{},
//叶子层,最外层
{
label:{
position:'outside'
}
}
}

As a result, the text of the leaf nodes is half on the outside and half on the inside

Expected Behavior

The text of the leaf node can be displayed outside the leaf node

I don't know if there is a way to solve this problem, I don't see it, or it is a problem

Environment

- OS:windows10
- Browser: chrome 114.0.5735.248

Any additional comments?

When learning sunburst, I set clockwise=false first, but after testing the label, because it is not changed before, I found this problem right now

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdifficulty: easyIssues that can be fixed more easily than the average.enThis issue is in Englishtopic: sunburst

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions