apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.48k stars 19.62k forks source link

[Bug] LabelLine doesn't hide #16537

Closed lealliang closed 2 years ago

lealliang commented 2 years ago

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 hidden when emphasis

Expected Behavior

LabelLine is not hidden when emphasis

Environment

- OS:Chrome 98
- Browser: Windows10
- Framework:Vue

Any additional comments?

No response

echarts-bot[bot] commented 2 years ago

I'm sorry to close this issue for it lacks the necessary title. Please provide a descriptive and as concise as possible title to describe your problems or requests and then the maintainers or I will reopen this issue.

Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.

A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.

Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.