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

[Feature] Could I emphasis child without emphasizing its parent in returnItem of series-custom? #17674

Closed
jianqi-jin opened this issue Sep 20, 2022 · 2 comments
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature. stale Inactive for a long time. Will be closed in 7 days.

Comments

@jianqi-jin
Copy link

What problem does this feature solve?

  • I just want to emphasis a text only in a bunch of rect group.
  • And I also want to bind some event listener to the different child node.

How can I do this? Thanks!!!

This is a PR maybe related to this feature.

#12775

What does the proposed API look like?

renderItem(params, api) {
  return {
    type: 'group',
    children: [{
      type: 'rect',
      textContent: {
        // type: 'text' can be ignored
        style: {
          text: 'xxxx',
          fill: 'red'
        },
        emphasis: { // this rect emphasis
          style: {
            ...
          }
        }
      }
    }, {
      type: 'rect',
      textContent: {
        // type: 'text' can be ignored
        style: {
          text: 'xxxx',
          fill: 'red'
        },
        // emphasis: { // this rect NOT emphasis
        //   style: {
        //     ...
        //   }
        // }
      }
    }]
  }
}
@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. labels Sep 20, 2022
Copy link
Contributor

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

@github-actions github-actions bot added the stale Inactive for a long time. Will be closed in 7 days. label Sep 19, 2024
Copy link
Contributor

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature. stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

1 participant