Skip to content

feat(echarts): extend peer dependency support for ECharts 6#2580

Merged
danielleroux merged 11 commits into
mainfrom
fix/ix-4318
Jun 30, 2026
Merged

feat(echarts): extend peer dependency support for ECharts 6#2580
danielleroux merged 11 commits into
mainfrom
fix/ix-4318

Conversation

@varun-srinivasa

@varun-srinivasa varun-srinivasa commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

💡 What is the current behavior?

GitHub Issue Number: #2561

🆕 What is the new behavior?

  • Updated the supported echarts peer dependency to have v6
  • Ensuring the compatibility with both echarts 5 and 6

🏁 Checklist

A pull request can only be merged if all of these conditions are met (where applicable):

  • 🦮 Accessibility (a11y) features were implemented
  • 🗺️ Internationalization (i18n) - no hard coded strings
  • 📲 Responsiveness - components handle viewport changes and content overflow gracefully
  • 📕 Add or update a Storybook story
  • 📄 Documentation was reviewed/updated siemens/ix-docs
  • 🧪 Unit tests were added/updated and pass (pnpm test)
  • 📸 Visual regression tests were added/updated and pass (Guide)
  • 🧐 Static code analysis passes (pnpm lint)
  • 🏗️ Successful compilation (pnpm build, changes pushed)

👨‍💻 Help & support

Summary by CodeRabbit

Release Notes

  • Dependency Updates

    • Major release of @siemens/ix-echarts, with echarts version constraints expanded to support 5.x and 6.x.
  • Testing & Compatibility

    • Updated ECharts demo/test pages to use ES module-based initialization (no inline CDN/global setup).
    • Added ECharts v5 fixtures plus Playwright screenshot regression coverage.
  • Demo/Layout Updates

    • Refreshed chart layout in framework preview examples (legend/grid spacing adjustments, including updated bottom/padding positioning).

@netlify

netlify Bot commented Jun 2, 2026

Copy link
Copy Markdown

Deploy Preview for ix-storybook canceled.

Name Link
🔨 Latest commit 90d0c36
🔍 Latest deploy log https://app.netlify.com/projects/ix-storybook/deploys/6a3e267772cce20008e89c61

@changeset-bot

changeset-bot Bot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 90d0c36

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@siemens/ix-echarts Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request upgrades the echarts dependency and peer dependency to ^6.0.0 and updates the test files to use the new version. Feedback on these changes includes requiring a major changeset to document this breaking change, removing commented-out code in basic.html instead of leaving it in the codebase, and pinning the CDN script tags in the test files to a specific version (e.g., 6.0.0) rather than using the major version tag @6 to ensure reproducible test runs.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/echarts/package.json Outdated
Comment thread packages/echarts/tests/basic.html Outdated
Comment thread packages/echarts/tests/basic.html Outdated
Comment thread packages/echarts/tests/more-colors.html Outdated
@varun-srinivasa varun-srinivasa marked this pull request as ready for review June 4, 2026 09:44
Comment thread packages/echarts/package.json
Comment thread packages/echarts/tests/basic.html
Comment thread packages/echarts/tests/more-colors.html
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The echarts dependency ranges in packages/echarts are updated for v6, the test pages now load module-based setup scripts, new v5 test pages and setup files are added, Playwright gains v5 screenshot regressions, and preview examples adjust chart layout options.

Changes

ECharts v6 dependency upgrade

Layer / File(s) Summary
Version ranges and release note
.changeset/afraid-mammals-send.md, packages/echarts/package.json
echarts dev and peer dependency ranges are updated, and the changeset marks @siemens/ix-echarts as a major release.
Shared test page module setup
packages/echarts/tests/basic.html, packages/echarts/tests/more-colors.html, packages/echarts/tests/setup-basic.ts, packages/echarts/tests/setup-more-colors.ts
The existing HTML harnesses load module setup scripts, and the setup scripts register themes, resolve query-driven theme state, initialize charts, and apply chart options.
v5 pages and screenshot coverage
packages/echarts/tests/v5/basic.html, packages/echarts/tests/v5/more-colors.html, packages/echarts/tests/v5/setup-basic.ts, packages/echarts/tests/v5/setup-more-colors.ts, packages/echarts/tests/echarts.e2e.ts
New v5 HTML harnesses and setup files are added, and the Playwright suite adds screenshot regressions for the v5 basic and more-colors pages.
Preview chart layout updates
packages/angular-standalone-test-app/src/preview-examples/*, packages/angular-test-app/src/preview-examples/*, packages/html-test-app/src/preview-examples/*, packages/react-test-app/src/preview-examples/*, packages/vue-test-app/src/preview-examples/*
The preview examples adjust legend spacing, grid padding, and pie series positioning in the chart options.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Poem

🐇 I hopped through v6 with a twitchy nose,
New pages, new scripts, and screenshot shows.
I nudged the legends, grids, and pies in line,
Then bounded off happy — the charts look fine!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding ECharts 6 support while keeping peer dependency compatibility.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ix-4318

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.changeset/afraid-mammals-send.md (1)

1-6: 📐 Maintainability & Code Quality | 🟠 Major | 🏗️ Heavy lift

Add migration guidance and GitHub issue reference to the changeset.

This changeset declares a major breaking change but is missing critical information required by the Siemens IX review rules:

  1. Migration guidance: As per path instructions, major changes require migration guidance in the changeset summary. Users need clear instructions that they must upgrade their echarts dependency to ^6.0.0 and any breaking API changes they need to handle.

  2. GitHub issue reference: The PR description mentions this addresses GitHub Issue #2561. As per path instructions, include "Fixes #2561" in the changeset summary to close the issue on release.

  3. Breaking change explanation: Explain that the peerDependencies constraint now requires echarts v6, which is a breaking change for consumers still on v5.

📝 Suggested changeset content
 ---
 '`@siemens/ix-echarts`': major
 ---
 
-Updated dependencies of `echarts` to support `^6.0.0`
+**Breaking Change**: Updated echarts to version 6
+
+The `@siemens/ix-echarts` package now requires echarts v6 as a peer dependency.
+
+**Migration required**:
+- Update your echarts dependency to `^6.0.0` in your project
+- Review the [echarts v6 migration guide](https://echarts.apache.org/handbook/en/basics/release-note/v6-upgrade-guide/) for any breaking API changes
+- Test your charts to ensure compatibility with echarts v6
+
+Fixes `#2561`
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.changeset/afraid-mammals-send.md around lines 1 - 6, In the changeset file
for `@siemens/ix-echarts` major version, add migration guidance explaining that
users must upgrade their echarts dependency to ^6.0.0 and handle any resulting
breaking API changes. Include "Fixes `#2561`" in the changeset summary to
automatically close the GitHub issue on release. Also add a clear explanation
that the peerDependencies constraint now requires echarts v6, which is a
breaking change for consumers still using v5.

Source: Path instructions

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In @.changeset/afraid-mammals-send.md:
- Around line 1-6: In the changeset file for `@siemens/ix-echarts` major version,
add migration guidance explaining that users must upgrade their echarts
dependency to ^6.0.0 and handle any resulting breaking API changes. Include
"Fixes `#2561`" in the changeset summary to automatically close the GitHub issue
on release. Also add a clear explanation that the peerDependencies constraint
now requires echarts v6, which is a breaking change for consumers still using
v5.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 882c1742-4182-4340-a363-52c3bade5a67

📥 Commits

Reviewing files that changed from the base of the PR and between d1cfb47 and d867b4a.

⛔ Files ignored due to path filters (9)
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-1-chromium---theme-brand-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-1-chromium---theme-brand-light-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-1-chromium---theme-classic-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-1-chromium---theme-classic-light-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-1-chromium---theme-brand-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-1-chromium---theme-brand-light-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-1-chromium---theme-classic-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-1-chromium---theme-classic-light-linux.png is excluded by !**/*.png
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (4)
  • .changeset/afraid-mammals-send.md
  • packages/echarts/package.json
  • packages/echarts/tests/basic.html
  • packages/echarts/tests/more-colors.html

@nuke-ellington nuke-ellington added this to the 5.1.0 milestone Jun 24, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/echarts/package.json`:
- Line 48: The major-release changeset is missing the required migration
guidance for the new ECharts v6 peer contract. Update the changeset summary
associated with the package.json peer dependency change for echarts to include
concrete upgrade/migration notes, and add “Fixes `#2561`” in the summary if this
release should close that issue automatically.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 6a5e4a84-5c6c-453f-9e52-7e18abfa1cd5

📥 Commits

Reviewing files that changed from the base of the PR and between d867b4a and 038dca7.

📒 Files selected for processing (1)
  • packages/echarts/package.json

Comment thread packages/echarts/package.json

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/echarts/tests/v5/basic.html`:
- Around line 1-13: The basic.html test harness is missing required document
metadata, so update the HTML document used by the v5 ECharts tests to include a
DOCTYPE, a lang attribute on the root element, and a title in the head. Make the
change in the basic.html fixture itself, alongside the existing head markup, and
keep it consistent with the metadata pattern used by more-colors.html so the
screenshot tests driven through echarts.e2e.ts render in standards mode.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 1c03f4f0-dd3b-40ab-b0fe-51c90e573f0e

📥 Commits

Reviewing files that changed from the base of the PR and between 038dca7 and 32d8e2b.

⛔ Files ignored due to path filters (17)
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-1-chromium---theme-brand-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-1-chromium---theme-brand-light-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-1-chromium---theme-classic-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-1-chromium---theme-classic-light-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-v5-1-chromium---theme-brand-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-v5-1-chromium---theme-brand-light-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-v5-1-chromium---theme-classic-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-basic-v5-1-chromium---theme-classic-light-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-1-chromium---theme-brand-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-1-chromium---theme-brand-light-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-1-chromium---theme-classic-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-1-chromium---theme-classic-light-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-v5-1-chromium---theme-brand-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-v5-1-chromium---theme-brand-light-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-v5-1-chromium---theme-classic-dark-linux.png is excluded by !**/*.png
  • packages/echarts/tests/echarts.e2e.ts-snapshots/echarts-more-colors-v5-1-chromium---theme-classic-light-linux.png is excluded by !**/*.png
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (9)
  • packages/echarts/tests/basic.html
  • packages/echarts/tests/echarts.e2e.ts
  • packages/echarts/tests/more-colors.html
  • packages/echarts/tests/setup-basic.ts
  • packages/echarts/tests/setup-more-colors.ts
  • packages/echarts/tests/v5/basic.html
  • packages/echarts/tests/v5/more-colors.html
  • packages/echarts/tests/v5/setup-basic.ts
  • packages/echarts/tests/v5/setup-more-colors.ts

Comment thread packages/echarts/tests/v5/basic.html
Comment thread .changeset/afraid-mammals-send.md

@danielleroux danielleroux left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Please also adapt PR title and description
  • Addressing open sonar issue

@varun-srinivasa varun-srinivasa changed the title updated ix/echarts version to 6 feat(ix-echarts): extend peer dependency support for ECharts 6 Jun 26, 2026
@danielleroux danielleroux changed the title feat(ix-echarts): extend peer dependency support for ECharts 6 feat(echarts): extend peer dependency support for ECharts 6 Jun 26, 2026
@danielleroux danielleroux merged commit 64ea4f6 into main Jun 30, 2026
16 checks passed
@danielleroux danielleroux deleted the fix/ix-4318 branch June 30, 2026 06:30
@sonarqubecloud

Copy link
Copy Markdown

@github-actions github-actions Bot mentioned this pull request Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants