Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] LabelLine doesn't hide #16539

Closed
lealliang opened this issue Feb 18, 2022 · 0 comments · Fixed by #16542
Closed

[Bug] LabelLine doesn't hide #16539

lealliang opened this issue Feb 18, 2022 · 0 comments · Fixed by #16542
Labels
bug en This issue is in English

Comments

@lealliang
Copy link

Version

5.3.0

Link to Minimal Reproduction

https://codesandbox.io/s/practical-joliot-vt6glv?file=/src/components/Echarts.vue

Steps to Reproduce

1、Set option normally

      const option = {
        series: [
          {
            name: "Access From",
            type: "pie",
            radius: "50%",
            data: [
              { value: 1048, name: "Search Engine" },
              { value: 735, name: "Direct" },
              { value: 580, name: "Email" },
              { value: 484, name: "Union Ads" },
              { value: 300, name: "Video Ads" },
            ],
          },
        ],
      };
      this.myChart.setOption(option);

2、Set labelLine to hide

      setTimeout(() => {
        const option = {
          series: [
            {
              name: "Access From",
              type: "pie",
              radius: "50%",
              data: [
                { value: 1048, name: "Search Engine" },
                { value: 735, name: "Direct" },
                { value: 580, name: "Email" },
                { value: 484, name: "Union Ads" },
                { value: 300, name: "Video Ads" },
              ],
              labelLine: {
                show: false,
              },
              emphasis: {
                labelLine: {
                  show: false,
                },
              },
            },
          ],
        };
        this.myChart.setOption(option);
      }, 5000);

Current Behavior

LabelLine is not hidden when emphasis

Expected Behavior

LabelLine is hidden when emphasis

Environment

- OS: Windows 10
- Browser:Chrome 98
- Framework: Vue@2

Any additional comments?

No response

@lealliang lealliang added the bug label Feb 18, 2022
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Feb 18, 2022
@pissang pissang removed pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Feb 18, 2022
@pissang pissang added this to the 5.3.1 milestone Feb 18, 2022
@Ovilia Ovilia modified the milestones: 5.3.1, 5.3.2 Mar 1, 2022
@plainheart plainheart modified the milestone: 5.3.2 Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants