Skip to content

Conversation

@dilipkumar6306316-art
Copy link

Problem

Custom series elements with large datasets (~3000+ points) were being marked as silent / ignore
by ECharts for performance reasons. As a result, hover and emphasis (highlighting) did not work
even when emphasis was explicitly defined in renderItem. This is tracked in issue #21442.

Solution

This PR ensures that any custom element with an emphasis state is not marked as silent or ignored.
The fix is applied in src/chart/custom/CustomView.ts just before toggleHoverEmphasis is called.

  • Only elements with emphasis are affected
  • emphasisDisabled is respected
  • Large dataset performance remains unaffected

How to Test

  1. Open the custom series example (CodeSandbox or http://localhost:9001)
  2. Set dataCount to ~3000-4000
  3. Hover over the rectangles
  4. Observe that emphasis (highlight) works correctly

Related Issue

Closes #21442

@echarts-bot
Copy link

echarts-bot bot commented Jan 9, 2026

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

Please DO NOT commit the files in dist, i18n, and ssr/client/dist folders in a non-release pull request. These folders are for release use only.

To reviewers: If this PR is going to be described in the changelog in the future release, please make sure this PR has one of the following labels: PR: doc ready, PR: awaiting doc, PR: doc unchanged

This message is shown because the PR description doesn't contain the document related template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

emphasis fails to work properly for custom series with more then 2970 data points

1 participant