Skip to content

[Omnidoc] [bugfix] Scatter and ErrorBar doc comments, and fix Scatter lineJointType=monotone#6771

Merged
ckifer merged 6 commits into
mainfrom
omnidoc
Dec 15, 2025
Merged

[Omnidoc] [bugfix] Scatter and ErrorBar doc comments, and fix Scatter lineJointType=monotone#6771
ckifer merged 6 commits into
mainfrom
omnidoc

Conversation

@PavelVanecek

@PavelVanecek PavelVanecek commented Dec 14, 2025

Copy link
Copy Markdown
Collaborator

Description

Also I fixed the bug with double pointy brackets in the type, and fixed a bug where Scatter lineJointType=monotone was still rendering linear line.

Related Issue

#6069

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a storybook story or VR test, or extended an existing story or VR test to show my changes

Summary by CodeRabbit

  • New Features

    • Expanded Line and Scatter props (animation, styling, axis and line options); ErrorBar better integrated.
    • Added zIndex control to Area and Bar for layering.
  • Documentation

    • Reorganized and expanded API docs (Line, Scatter, ErrorBar, Area, Label, Text) with clearer prop descriptions, defaults and examples.
  • Refactor

    • Improved type processing and layout resolution used for API generation and rendering.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Dec 14, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

Refactors omnidoc type-processing to return arrays of type names, adds processType, updates tests, converts ErrorBar to a function component, expands cartesian component props (Area, Bar, Line, Scatter), and migrates/updates many API-doc data files and Storybook metadata.

Changes

Cohort / File(s) Summary
omnidoc type-processing & tests
omnidoc/generateApiDoc.ts, omnidoc/readProject.ts, omnidoc/processType.spec.ts, omnidoc/simplifyType.spec.ts
Reworked type pipeline: getTypeOf now returns { names: string[]; isInline: boolean }; introduced processType and simplifyOneType; added tests for processType and removed old simplifyType tests.
omnidoc configuration & consistency tests
omnidoc/componentsWithInconsistentCommentsInApiDoc.ts, omnidoc/cross-component-prop-comments.spec.ts, omnidoc/omnidoc.spec.ts
Removed Line/Scatter from inconsistent list; added exceptions for ErrorBar and Scatter props; API-doc consistency test now excludes automated components.
Cartesian components — props & refactors
src/cartesian/ErrorBar.tsx, src/cartesian/Area.tsx, src/cartesian/Bar.tsx, src/cartesian/Line.tsx, src/cartesian/Scatter.tsx
Converted ErrorBar from class to function and made dataKey explicit; added/expanded public props: Area (hide?, zIndex?), Bar (zIndex?), Line (many props added/annotated), Scatter (many props, children?, adjusted omitted SVG props).
Docs/API metadata migration & updates
www/src/docs/api/Line.ts, www/src/docs/api/LineAPI.tsx, www/src/docs/api/Scatter.ts, www/src/docs/api/ScatterAPI.tsx, www/src/docs/api/ErrorBar.ts, www/src/docs/api/ErrorBarAPI.tsx, www/src/docs/api/AreaAPI.tsx, www/src/docs/api/LabelAPI.tsx, www/src/docs/api/TextAPI.tsx, www/src/docs/api/index.ts, www/src/docs/api/BarStackAPI.tsx, www/src/docs/api/ZIndexLayerAPI.tsx, www/src/docs/api/ErrorBarAPI.tsx
Removed older API objects and added new .tsx API doc objects (LineAPI, ScatterAPI, ErrorBarAPI); updated multiple prop signatures and import paths; adjusted index mapping to new API exports.
Curve layout & small doc tweaks
src/shape/Curve.tsx, src/component/Cell.tsx, src/zIndex/ZIndexLayer.tsx
Curve uses chartLayoutContext as fallback for layout when computing paths; added JSDoc to Cell for CellReader consumption and a @see link in ZIndexLayer docs.
Storybook & examples
storybook/stories/API/cartesian/Line.stories.tsx, www/src/docs/exampleComponents/ScatterChart/JointLineScatterChart.tsx
Added stroke argType/color control to Line story; set lineJointType="monotone" in a Scatter example.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~60 minutes

Areas to focus during review:

  • omnidoc/readProject.ts — change of getTypeOf return shape and union extraction logic.
  • omnidoc/generateApiDoc.tsprocessType / simplifyOneType behavior for nested/union types.
  • src/cartesian/ErrorBar.tsx — class→function refactor and context providers/props forwarding.
  • src/cartesian/Line.tsx / src/cartesian/Scatter.tsx — many new public props and typing adjustments.
  • API docs index/import changes — ensure all imports and exported names resolve.

Possibly related PRs

Suggested reviewers

  • ckifer

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Description check ❓ Inconclusive The description covers bug fixes and mentions related issues, but lacks detail on motivation/context and testing procedures as outlined in the template. Add more context about why these documentation changes were needed, describe testing approach, and clarify which documentation sections were updated.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title '[Omnidoc] [bugfix] Scatter and ErrorBar doc comments' clearly identifies the main changes: bug fixes related to documentation comments for Scatter and ErrorBar components, which aligns with the changeset.
Docstring Coverage ✅ Passed Docstring coverage is 80.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch omnidoc

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 and usage tips.

@coderabbitai coderabbitai 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.

Actionable comments posted: 8

🧹 Nitpick comments (4)
src/zIndex/ZIndexLayer.tsx (1)

15-25: Nice doc improvement; consider JSDoc {@link ...} for better tooling support.

Many TS/IDE doc renderers link better with @see {@link https://...} (optional).

storybook/stories/API/cartesian/Line.stories.tsx (1)

14-33: stroke control is good; consider moving the default to args or table.defaultValue.

Right now the “default” is split (argTypes.defaultValue vs args.stroke = 'red'), which can confuse the Docs panel.

omnidoc/readProject.ts (1)

515-624: LGTM on the type resolution refactor.

The change to return names: string[] instead of a single name properly handles union types and allows downstream consumers to process type information more flexibly. The filtering of undefined and boolean coalescing logic (lines 613-618) is clean.

One minor observation: the inline comments at lines 576-594 read like development notes/thinking rather than documentation. Consider removing or condensing them for production code.

www/src/docs/api/AreaAPI.tsx (1)

156-171: Consider using boolean instead of 'false | true | "auto"' for clarity.

The type 'false | true | "auto"' could be simplified to 'boolean | "auto"' for better readability. The processType function in generateApiDoc.ts coalesces true | false to boolean, so auto-generated docs should produce this. If this is a manually maintained file, consider aligning the format.

     {
       name: 'isAnimationActive',
-      type: 'false | true | "auto"',
+      type: 'boolean | "auto"',
       isOptional: true,
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 25e24bb and e5588a7.

⛔ Files ignored due to path filters (4)
  • package-lock.json is excluded by !**/package-lock.json
  • test-vr/__snapshots__/tests/www/ScatterChartApiExamples.spec-vr.tsx-snapshots/JointLineScatterChart-1-chromium-linux.png is excluded by !**/*.png
  • test-vr/__snapshots__/tests/www/ScatterChartApiExamples.spec-vr.tsx-snapshots/JointLineScatterChart-1-firefox-linux.png is excluded by !**/*.png
  • test-vr/__snapshots__/tests/www/ScatterChartApiExamples.spec-vr.tsx-snapshots/JointLineScatterChart-1-webkit-linux.png is excluded by !**/*.png
📒 Files selected for processing (28)
  • omnidoc/componentsWithInconsistentCommentsInApiDoc.ts (0 hunks)
  • omnidoc/cross-component-prop-comments.spec.ts (1 hunks)
  • omnidoc/generateApiDoc.ts (4 hunks)
  • omnidoc/omnidoc.spec.ts (1 hunks)
  • omnidoc/processType.spec.ts (1 hunks)
  • omnidoc/readProject.spec.ts (3 hunks)
  • omnidoc/readProject.ts (3 hunks)
  • omnidoc/simplifyType.spec.ts (0 hunks)
  • src/cartesian/Area.tsx (6 hunks)
  • src/cartesian/Bar.tsx (2 hunks)
  • src/cartesian/ErrorBar.tsx (6 hunks)
  • src/cartesian/Line.tsx (3 hunks)
  • src/cartesian/Scatter.tsx (3 hunks)
  • src/component/Cell.tsx (1 hunks)
  • src/shape/Curve.tsx (2 hunks)
  • src/zIndex/ZIndexLayer.tsx (1 hunks)
  • storybook/stories/API/cartesian/Line.stories.tsx (1 hunks)
  • www/src/docs/api/AreaAPI.tsx (7 hunks)
  • www/src/docs/api/ErrorBar.ts (0 hunks)
  • www/src/docs/api/ErrorBarAPI.tsx (1 hunks)
  • www/src/docs/api/LabelAPI.tsx (3 hunks)
  • www/src/docs/api/Line.ts (0 hunks)
  • www/src/docs/api/LineAPI.tsx (1 hunks)
  • www/src/docs/api/Scatter.ts (0 hunks)
  • www/src/docs/api/ScatterAPI.tsx (1 hunks)
  • www/src/docs/api/TextAPI.tsx (2 hunks)
  • www/src/docs/api/index.ts (4 hunks)
  • www/src/docs/exampleComponents/ScatterChart/JointLineScatterChart.tsx (1 hunks)
💤 Files with no reviewable changes (5)
  • www/src/docs/api/Line.ts
  • omnidoc/componentsWithInconsistentCommentsInApiDoc.ts
  • www/src/docs/api/Scatter.ts
  • www/src/docs/api/ErrorBar.ts
  • omnidoc/simplifyType.spec.ts
🧰 Additional context used
📓 Path-based instructions (7)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

**/*.{ts,tsx}: Never use any type (implicit or explicit) in TypeScript code
Prefer unknown over any and refine the type in TypeScript
Type function parameters and return values explicitly in TypeScript, do not rely on implicit any or inference; exceptions are React components and trivial functions
Do not use as type assertions in TypeScript; the only exception is as const

Files:

  • src/zIndex/ZIndexLayer.tsx
  • www/src/docs/exampleComponents/ScatterChart/JointLineScatterChart.tsx
  • omnidoc/readProject.spec.ts
  • omnidoc/readProject.ts
  • omnidoc/cross-component-prop-comments.spec.ts
  • www/src/docs/api/ScatterAPI.tsx
  • src/component/Cell.tsx
  • src/cartesian/Bar.tsx
  • omnidoc/processType.spec.ts
  • www/src/docs/api/ErrorBarAPI.tsx
  • storybook/stories/API/cartesian/Line.stories.tsx
  • src/shape/Curve.tsx
  • www/src/docs/api/LineAPI.tsx
  • www/src/docs/api/TextAPI.tsx
  • www/src/docs/api/index.ts
  • omnidoc/omnidoc.spec.ts
  • www/src/docs/api/LabelAPI.tsx
  • src/cartesian/Area.tsx
  • src/cartesian/ErrorBar.tsx
  • www/src/docs/api/AreaAPI.tsx
  • omnidoc/generateApiDoc.ts
  • src/cartesian/Line.tsx
  • src/cartesian/Scatter.tsx
**/*.{js,ts,tsx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Ensure code lints by running npm run lint and follows Airbnb's Style Guide

Files:

  • src/zIndex/ZIndexLayer.tsx
  • www/src/docs/exampleComponents/ScatterChart/JointLineScatterChart.tsx
  • omnidoc/readProject.spec.ts
  • omnidoc/readProject.ts
  • omnidoc/cross-component-prop-comments.spec.ts
  • www/src/docs/api/ScatterAPI.tsx
  • src/component/Cell.tsx
  • src/cartesian/Bar.tsx
  • omnidoc/processType.spec.ts
  • www/src/docs/api/ErrorBarAPI.tsx
  • storybook/stories/API/cartesian/Line.stories.tsx
  • src/shape/Curve.tsx
  • www/src/docs/api/LineAPI.tsx
  • www/src/docs/api/TextAPI.tsx
  • www/src/docs/api/index.ts
  • omnidoc/omnidoc.spec.ts
  • www/src/docs/api/LabelAPI.tsx
  • src/cartesian/Area.tsx
  • src/cartesian/ErrorBar.tsx
  • www/src/docs/api/AreaAPI.tsx
  • omnidoc/generateApiDoc.ts
  • src/cartesian/Line.tsx
  • src/cartesian/Scatter.tsx
src/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Do not hardcode any strings or formatting choices in library code; users should provide localized strings as desired

Files:

  • src/zIndex/ZIndexLayer.tsx
  • src/component/Cell.tsx
  • src/cartesian/Bar.tsx
  • src/shape/Curve.tsx
  • src/cartesian/Area.tsx
  • src/cartesian/ErrorBar.tsx
  • src/cartesian/Line.tsx
  • src/cartesian/Scatter.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (DEVELOPING.md)

All imports from recharts must use the public API entry point; imports from internal paths like recharts/types/* or recharts/src/* are not allowed

Files:

  • src/zIndex/ZIndexLayer.tsx
  • www/src/docs/exampleComponents/ScatterChart/JointLineScatterChart.tsx
  • omnidoc/readProject.spec.ts
  • omnidoc/readProject.ts
  • omnidoc/cross-component-prop-comments.spec.ts
  • www/src/docs/api/ScatterAPI.tsx
  • src/component/Cell.tsx
  • src/cartesian/Bar.tsx
  • omnidoc/processType.spec.ts
  • www/src/docs/api/ErrorBarAPI.tsx
  • storybook/stories/API/cartesian/Line.stories.tsx
  • src/shape/Curve.tsx
  • www/src/docs/api/LineAPI.tsx
  • www/src/docs/api/TextAPI.tsx
  • www/src/docs/api/index.ts
  • omnidoc/omnidoc.spec.ts
  • www/src/docs/api/LabelAPI.tsx
  • src/cartesian/Area.tsx
  • src/cartesian/ErrorBar.tsx
  • www/src/docs/api/AreaAPI.tsx
  • omnidoc/generateApiDoc.ts
  • src/cartesian/Line.tsx
  • src/cartesian/Scatter.tsx
**/*.spec.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

When running unit tests, prefer to run a single test file using npm run test -- path/to/TestFile.spec.tsx rather than running all tests with npm test

Files:

  • omnidoc/readProject.spec.ts
  • omnidoc/cross-component-prop-comments.spec.ts
  • omnidoc/processType.spec.ts
  • omnidoc/omnidoc.spec.ts
storybook/stories/**/*.stories.tsx

📄 CodeRabbit inference engine (CONTRIBUTING.md)

storybook/stories/**/*.stories.tsx: Use Storybook for smoke tests and add play functions with assertions for actual tests
Update Storybook stories when APIs have been changed to ensure they work as expected

Files:

  • storybook/stories/API/cartesian/Line.stories.tsx
**/storybook/**/*.stories.{ts,tsx}

📄 CodeRabbit inference engine (DEVELOPING.md)

When adding new Storybook stories, prioritize high fidelity examples intended for publication on the website and in Storybook UI; use unit tests or VR tests for low fidelity tests

Files:

  • storybook/stories/API/cartesian/Line.stories.tsx
🧠 Learnings (9)
📚 Learning: 2025-11-23T13:30:10.395Z
Learnt from: PavelVanecek
Repo: recharts/recharts PR: 6669
File: www/src/docs/exampleComponents/ScatterChart/ScatterChartWithLabels.tsx:2-2
Timestamp: 2025-11-23T13:30:10.395Z
Learning: The `TooltipIndex` type from recharts is defined in `src/state/tooltipSlice.ts` but is not currently exported from the public API entry points. It should not be imported from `recharts/types/state/tooltipSlice` as this is an internal implementation path. An ESLint rule is needed to prevent regressions.

Applied to files:

  • src/zIndex/ZIndexLayer.tsx
  • src/cartesian/Line.tsx
📚 Learning: 2025-12-06T03:36:59.377Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: DEVELOPING.md:0-0
Timestamp: 2025-12-06T03:36:59.377Z
Learning: Applies to **/*.{ts,tsx,js,jsx} : All imports from `recharts` must use the public API entry point; imports from internal paths like `recharts/types/*` or `recharts/src/*` are not allowed

Applied to files:

  • omnidoc/readProject.spec.ts
  • www/src/docs/api/index.ts
  • src/cartesian/ErrorBar.tsx
  • src/cartesian/Line.tsx
📚 Learning: 2025-11-25T01:22:59.729Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: CONTRIBUTING.md:0-0
Timestamp: 2025-11-25T01:22:59.729Z
Learning: Applies to **/*.{ts,tsx} : Type function parameters and return values explicitly in TypeScript, do not rely on implicit any or inference; exceptions are React components and trivial functions

Applied to files:

  • omnidoc/readProject.spec.ts
  • omnidoc/readProject.ts
📚 Learning: 2025-12-06T03:36:59.377Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: DEVELOPING.md:0-0
Timestamp: 2025-12-06T03:36:59.377Z
Learning: Run type checking with `npm run check-types` to verify TypeScript types

Applied to files:

  • omnidoc/readProject.spec.ts
📚 Learning: 2025-11-25T01:22:59.729Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: CONTRIBUTING.md:0-0
Timestamp: 2025-11-25T01:22:59.729Z
Learning: Applies to test/component/**/*.spec.tsx : Use React Testing Library for testing component interactions and behavior upon rendering

Applied to files:

  • omnidoc/readProject.spec.ts
📚 Learning: 2025-11-19T14:08:01.728Z
Learnt from: PavelVanecek
Repo: recharts/recharts PR: 6659
File: www/src/components/GuideView/Performance/index.tsx:232-250
Timestamp: 2025-11-19T14:08:01.728Z
Learning: In Recharts version 3.4.2, object-as-prop optimizations were introduced to reduce unnecessary re-renders when new object references are passed as props. This affects the recommendation for the `react-perf/jsx-no-new-object-as-prop` ESLint rule.

Applied to files:

  • omnidoc/cross-component-prop-comments.spec.ts
  • src/cartesian/ErrorBar.tsx
  • src/cartesian/Line.tsx
  • src/cartesian/Scatter.tsx
📚 Learning: 2025-11-25T01:22:59.729Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: CONTRIBUTING.md:0-0
Timestamp: 2025-11-25T01:22:59.729Z
Learning: Applies to storybook/stories/**/*.stories.tsx : Update Storybook stories when APIs have been changed to ensure they work as expected

Applied to files:

  • storybook/stories/API/cartesian/Line.stories.tsx
  • www/src/docs/api/index.ts
  • omnidoc/omnidoc.spec.ts
📚 Learning: 2025-11-25T01:22:59.729Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: CONTRIBUTING.md:0-0
Timestamp: 2025-11-25T01:22:59.729Z
Learning: Applies to storybook/stories/**/*.stories.tsx : Use Storybook for smoke tests and add play functions with assertions for actual tests

Applied to files:

  • omnidoc/omnidoc.spec.ts
📚 Learning: 2025-11-16T09:14:24.918Z
Learnt from: PavelVanecek
Repo: recharts/recharts PR: 6640
File: src/cartesian/Bar.tsx:156-159
Timestamp: 2025-11-16T09:14:24.918Z
Learning: In recharts, SSR (Server-Side Rendering) is not yet supported—charts don't render at all in SSR environments. The `isAnimationActive: 'auto'` mode is preparatory work for future SSR support, so testing of this mode should be deferred until SSR support is actually implemented.

Applied to files:

  • src/cartesian/Area.tsx
🧬 Code graph analysis (12)
www/src/docs/exampleComponents/ScatterChart/JointLineScatterChart.tsx (1)
src/index.ts (1)
  • Scatter (89-89)
omnidoc/readProject.spec.ts (2)
test/helper/assertNotNull.ts (1)
  • assertNotNull (1-5)
omnidoc/generateApiDoc.ts (1)
  • processType (84-102)
www/src/docs/api/ScatterAPI.tsx (1)
www/src/docs/api/types.ts (1)
  • ApiDoc (21-27)
omnidoc/processType.spec.ts (1)
omnidoc/generateApiDoc.ts (1)
  • processType (84-102)
www/src/docs/api/ErrorBarAPI.tsx (1)
www/src/docs/api/types.ts (1)
  • ApiDoc (21-27)
src/shape/Curve.tsx (2)
storybook/stories/API/props/CartesianComponentShared.ts (1)
  • layout (67-75)
src/context/chartLayoutContext.tsx (1)
  • useChartLayout (135-135)
www/src/docs/api/LineAPI.tsx (1)
www/src/docs/api/types.ts (1)
  • ApiDoc (21-27)
omnidoc/omnidoc.spec.ts (1)
omnidoc/generateApiDoc.ts (1)
  • OMNIDOC_AUTOMATED_API_DOCS_COMPONENTS (24-34)
src/cartesian/Area.tsx (2)
src/util/types.ts (3)
  • DataKey (65-65)
  • DotType (1073-1100)
  • LegendType (81-92)
src/index.ts (2)
  • DataKey (120-120)
  • LegendType (120-120)
src/cartesian/ErrorBar.tsx (1)
src/util/resolveDefaultProps.tsx (1)
  • resolveDefaultProps (16-53)
src/cartesian/Line.tsx (7)
src/util/types.ts (7)
  • ActiveDotType (1027-1051)
  • AnimationDuration (642-642)
  • AnimationTiming (640-640)
  • DataKey (65-65)
  • DotType (1073-1100)
  • LegendType (81-92)
  • TooltipType (93-93)
src/state/chartDataSlice.ts (1)
  • ChartData (14-14)
src/index.ts (2)
  • DataKey (120-120)
  • LegendType (120-120)
src/component/LabelList.tsx (1)
  • ImplicitLabelListType (131-131)
src/component/DefaultTooltipContent.tsx (1)
  • TooltipType (16-16)
src/shape/Curve.tsx (1)
  • CurveType (64-80)
src/state/cartesianAxisSlice.ts (1)
  • AxisId (11-11)
src/cartesian/Scatter.tsx (6)
src/zIndex/ZIndexLayer.tsx (1)
  • ZIndexable (14-26)
src/state/cartesianAxisSlice.ts (1)
  • AxisId (11-11)
src/util/types.ts (6)
  • DataKey (65-65)
  • LegendType (81-92)
  • TooltipType (93-93)
  • AnimationDuration (642-642)
  • AnimationTiming (640-640)
  • PresentationAttributesAdaptChildEvent (69-71)
src/index.ts (2)
  • DataKey (120-120)
  • LegendType (120-120)
src/component/DefaultTooltipContent.tsx (1)
  • TooltipType (16-16)
src/component/LabelList.tsx (1)
  • ImplicitLabelListType (131-131)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Build, Test, Pack
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (27)
omnidoc/cross-component-prop-comments.spec.ts (1)

95-115: Exceptions look appropriately scoped and justified.

www/src/docs/api/TextAPI.tsx (1)

170-194: LGTM (docs-only union ordering cleanup).

www/src/docs/api/LabelAPI.tsx (1)

39-56: Good improvement: removed any from the Label docs type.

(Optional) If you want to tighten the docs further, consider spelling the function shape (e.g. ((props: unknown) => ReactNode)) instead of Function, but not required.

Also applies to: 85-86, 101-112

omnidoc/omnidoc.spec.ts (1)

433-441: Filter change makes sense to avoid redundant checks for omnidoc-generated components.

www/src/docs/api/index.ts (1)

14-15: LGTM! API documentation imports and mappings are correctly updated.

The changes successfully align the API documentation index with the new per-component API data objects (LineAPI, ScatterAPI, ErrorBarAPI, AreaAPI), ensuring consistency across the documentation surface.

Also applies to: 22-22, 54-54, 72-73, 100-100

src/cartesian/Area.tsx (1)

133-194: LGTM! Documentation improvements enhance clarity.

The JSDoc additions and updates provide clear descriptions for component props, including:

  • Detailed explanations for activeDot and dot prop options
  • Clarification that dataKey reuses YAxis dataKey when undefined
  • Comprehensive zIndex documentation with links to the guide

These changes align with the PR's objective to fix documentation/comments.

Also applies to: 204-232, 263-263, 281-290

src/component/Cell.tsx (1)

5-7: LGTM! Documentation metadata added.

The @consumes CellReader JSDoc tag documents the component's context consumption without changing functionality.

src/cartesian/Bar.tsx (1)

265-274: LGTM! Enhanced documentation for zIndex and context provider.

The expanded zIndex prop documentation provides clear guidance with links to the zIndex guide, and the @provides CellReader tag documents the component's context provisioning.

Also applies to: 1092-1092

www/src/docs/api/ErrorBarAPI.tsx (1)

3-99: LGTM! Comprehensive ErrorBar API documentation.

The ErrorBarAPI object provides detailed documentation for all ErrorBar props including type information, descriptions, and default values. The structure correctly conforms to the ApiDoc type.

www/src/docs/api/ScatterAPI.tsx (1)

3-527: LGTM! Comprehensive Scatter API documentation.

The ScatterAPI object provides extensive documentation for the Scatter component, including:

  • Core props with detailed descriptions and examples
  • Comprehensive event handler coverage
  • Proper parent and children component relationships

The structure correctly implements the ApiDoc type.

omnidoc/readProject.spec.ts (3)

4-5: LGTM! Imports added for new test utilities.

The imports support the new type processing tests and assertions added later in the file.


916-918: LGTM! Test expectations updated for new type representation.

The expectations correctly reflect the new {names: string[], isInline: boolean} structure returned by getTypeOf, replacing the previous single-name format.

Also applies to: 924-929


983-1004: LGTM! New tests validate type processing improvements.

The three new test cases effectively verify:

  1. Double pointy brackets are not added in simplified types
  2. Children type is correctly simplified to ReactNode
  3. Boolean type is represented as boolean, not true | false, with undefined excluded

These tests align with the type processing refactor mentioned in the PR.

omnidoc/processType.spec.ts (1)

1-29: LGTM! Comprehensive test coverage for processType.

The test suite effectively validates processType behavior across multiple scenarios:

  • Simple and complex unions
  • Nested object and generic types
  • Type deduplication
  • Undefined filtering

The tests are clear, focused, and cover important edge cases.

omnidoc/generateApiDoc.ts (2)

84-102: LGTM on the new processType function.

The function correctly:

  1. Filters out undefined (line 87)
  2. Simplifies each type part (line 88)
  3. Deduplicates using Set (line 90)
  4. Provides a readable fallback for complex unions (line 101)

The threshold of 4 variants before switching to generic display is a reasonable heuristic.


24-34: Component list updates align with PR objectives.

Adding ErrorBar, Line, and Scatter to the automated API docs generation is consistent with the PR goals for documentation improvements.

src/cartesian/ErrorBar.tsx (1)

259-285: Clean conversion to function component.

The ErrorBar conversion from class to function component is well-structured:

  • Uses resolveDefaultProps pattern consistently with the codebase
  • Properly wraps with ReportErrorBarSettings and ZIndexLayer context providers
  • displayName correctly assigned for debugging/DevTools
www/src/docs/api/AreaAPI.tsx (1)

329-346: Good expansion of zIndex documentation.

The expanded zIndex prop documentation with description, default value, and examples guide link provides much better guidance for users.

www/src/docs/api/LineAPI.tsx (1)

661-662: Remove FunnelChart from the parentComponents array.

FunnelChart is not a valid parent for the Line component. The FunnelChart API documentation explicitly lists supported children as ['Funnel', 'Legend', 'Tooltip', 'Customized', 'validate svg elements...'], and Line is not included. This applies to lines 661 as well as the broader pattern affecting AreaAPI.tsx and ScatterAPI.tsx, which incorrectly include FunnelChart in their parentComponents arrays.

Likely an incorrect or invalid review comment.

src/cartesian/Line.tsx (3)

69-69: LGTM! ChartData typing is a good improvement.

Using ChartData (which is unknown[]) instead of loose any typing improves type safety while remaining flexible for user data structures.

Also applies to: 170-170


320-320: LGTM! Addition of 'baseLine' to omitted properties.

This correctly prevents the baseLine SVG prop conflict with internal Line component usage.


992-997: LGTM! ErrorBarContext provider annotation added.

The JSDoc accurately reflects that Line now exposes ErrorBarContext (via SetErrorBarContext at line 800-808).

src/cartesian/Scatter.tsx (5)

342-345: LGTM! BaseScatterSvgProps correctly omits conflicting properties.

Omitting 'points' | 'ref' | 'children' | 'dangerouslySetInnerHTML' prevents conflicts between SVG presentation attributes and Scatter's internal props.


163-163: LGTM! Children prop added to support ErrorBar and Cell children.

Adding children?: ReactNode to both internal and external props enables proper typing for nested components like ErrorBar and Cell.

Also applies to: 336-336


919-924: LGTM! Context provider annotations correctly updated.

The JSDoc now accurately documents that Scatter provides ErrorBarContext and CellReader contexts, which aligns with the component's implementation (SetErrorBarContext at line 792-802 and Cell usage at line 845).


84-89: LGTM! Improved ScatterPointItem documentation.

The updated comments clarify coordinate nullability behavior and explain how points are exposed via props for custom shapes.


416-462: The fix for monotone curves is incomplete or not shown in this snippet.

The ScatterLine component at line 417 only extracts line, lineType, and lineJointType from props, but does not extract or pass layout. When lineJointType='monotone', the Curve component needs the layout prop to determine whether to use curveMonotoneX or curveMonotoneY—without it, getCurveFactory falls back to curveLinear.

Compare with the Line component, which explicitly extracts layout and includes it in the curveProps object. The ScatterLine function should either extract layout from props and pass it via the lineProps object, or pass it explicitly when rendering <Curve>.

Comment thread src/cartesian/Line.tsx
Comment thread src/cartesian/Line.tsx
Comment thread src/cartesian/Scatter.tsx
Comment thread src/cartesian/Scatter.tsx
Comment thread src/shape/Curve.tsx
Comment thread www/src/docs/api/ErrorBarAPI.tsx Outdated
Comment thread www/src/docs/api/LineAPI.tsx
Comment thread www/src/docs/api/ScatterAPI.tsx Outdated
@PavelVanecek PavelVanecek changed the title [Omnidoc] [bugfix] Scatter and ErrorBar doc comments [Omnidoc] [bugfix] Scatter and ErrorBar doc comments, and fix Scatter lineJointType=monotone Dec 14, 2025

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

♻️ Duplicate comments (6)
www/src/docs/api/ErrorBarAPI.tsx (1)

1-99: LGTM - ErrorBarAPI documentation is well-structured.

The import path issue from the previous review has been fixed. The API documentation covers the essential props with appropriate types, default values, and descriptions.

www/src/docs/api/ScatterAPI.tsx (1)

1-2: Import path is correct.

The .ts extension issue from the previous review has been addressed.

src/cartesian/Line.tsx (2)

170-178: Past issue fixed - JSDoc now correctly references "Line".

The documentation now correctly refers to "this Line" instead of "this Area".


262-268: Past issue fixed - typo removed.

The extraneous "Q" has been removed from the JSDoc.

src/cartesian/Scatter.tsx (2)

304-308: Past issue fixed - JSDoc now correctly references "Scatter".

The documentation now correctly says "animation of Scatter points" instead of "animation of area".


209-226: Formatting error in JSDoc for line prop partially addressed but still incorrect.

The past review flagged "Options" followed by "= -". The "= -" appears fixed, but there's still an extra quote mark. Line 211 shows Options" which should be Options:.

   /**
    * Renders line connecting individual points.
-   * Options"
+   * Options:
    * - `false`: no line is drawn.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e5588a7 and 5efadee.

📒 Files selected for processing (12)
  • omnidoc/generateApiDoc.ts (5 hunks)
  • src/cartesian/Line.tsx (3 hunks)
  • src/cartesian/Scatter.tsx (3 hunks)
  • src/zIndex/ZIndexLayer.tsx (1 hunks)
  • www/src/docs/api/AreaAPI.tsx (8 hunks)
  • www/src/docs/api/BarStackAPI.tsx (1 hunks)
  • www/src/docs/api/ErrorBarAPI.tsx (1 hunks)
  • www/src/docs/api/LabelAPI.tsx (4 hunks)
  • www/src/docs/api/LineAPI.tsx (1 hunks)
  • www/src/docs/api/ScatterAPI.tsx (1 hunks)
  • www/src/docs/api/TextAPI.tsx (3 hunks)
  • www/src/docs/api/ZIndexLayerAPI.tsx (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • www/src/docs/api/BarStackAPI.tsx
🚧 Files skipped from review as they are similar to previous changes (3)
  • www/src/docs/api/TextAPI.tsx
  • www/src/docs/api/LineAPI.tsx
  • www/src/docs/api/LabelAPI.tsx
🧰 Additional context used
📓 Path-based instructions (4)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

**/*.{ts,tsx}: Never use any type (implicit or explicit) in TypeScript code
Prefer unknown over any and refine the type in TypeScript
Type function parameters and return values explicitly in TypeScript, do not rely on implicit any or inference; exceptions are React components and trivial functions
Do not use as type assertions in TypeScript; the only exception is as const

Files:

  • www/src/docs/api/ErrorBarAPI.tsx
  • www/src/docs/api/ScatterAPI.tsx
  • www/src/docs/api/ZIndexLayerAPI.tsx
  • src/cartesian/Line.tsx
  • src/zIndex/ZIndexLayer.tsx
  • www/src/docs/api/AreaAPI.tsx
  • src/cartesian/Scatter.tsx
  • omnidoc/generateApiDoc.ts
**/*.{js,ts,tsx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Ensure code lints by running npm run lint and follows Airbnb's Style Guide

Files:

  • www/src/docs/api/ErrorBarAPI.tsx
  • www/src/docs/api/ScatterAPI.tsx
  • www/src/docs/api/ZIndexLayerAPI.tsx
  • src/cartesian/Line.tsx
  • src/zIndex/ZIndexLayer.tsx
  • www/src/docs/api/AreaAPI.tsx
  • src/cartesian/Scatter.tsx
  • omnidoc/generateApiDoc.ts
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (DEVELOPING.md)

All imports from recharts must use the public API entry point; imports from internal paths like recharts/types/* or recharts/src/* are not allowed

Files:

  • www/src/docs/api/ErrorBarAPI.tsx
  • www/src/docs/api/ScatterAPI.tsx
  • www/src/docs/api/ZIndexLayerAPI.tsx
  • src/cartesian/Line.tsx
  • src/zIndex/ZIndexLayer.tsx
  • www/src/docs/api/AreaAPI.tsx
  • src/cartesian/Scatter.tsx
  • omnidoc/generateApiDoc.ts
src/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Do not hardcode any strings or formatting choices in library code; users should provide localized strings as desired

Files:

  • src/cartesian/Line.tsx
  • src/zIndex/ZIndexLayer.tsx
  • src/cartesian/Scatter.tsx
🧠 Learnings (10)
📚 Learning: 2025-11-25T01:22:59.729Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: CONTRIBUTING.md:0-0
Timestamp: 2025-11-25T01:22:59.729Z
Learning: Applies to **/*.{ts,tsx} : Do not use `as` type assertions in TypeScript; the only exception is `as const`

Applied to files:

  • www/src/docs/api/ErrorBarAPI.tsx
  • www/src/docs/api/ScatterAPI.tsx
📚 Learning: 2025-12-06T03:36:59.377Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: DEVELOPING.md:0-0
Timestamp: 2025-12-06T03:36:59.377Z
Learning: Applies to **/*.{ts,tsx,js,jsx} : All imports from `recharts` must use the public API entry point; imports from internal paths like `recharts/types/*` or `recharts/src/*` are not allowed

Applied to files:

  • www/src/docs/api/ErrorBarAPI.tsx
  • www/src/docs/api/ScatterAPI.tsx
  • www/src/docs/api/ZIndexLayerAPI.tsx
  • src/cartesian/Line.tsx
📚 Learning: 2025-11-25T01:22:59.729Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: CONTRIBUTING.md:0-0
Timestamp: 2025-11-25T01:22:59.729Z
Learning: Applies to **/*.{ts,tsx} : Type function parameters and return values explicitly in TypeScript, do not rely on implicit any or inference; exceptions are React components and trivial functions

Applied to files:

  • www/src/docs/api/ErrorBarAPI.tsx
  • www/src/docs/api/ScatterAPI.tsx
📚 Learning: 2025-11-25T01:22:59.729Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: CONTRIBUTING.md:0-0
Timestamp: 2025-11-25T01:22:59.729Z
Learning: Applies to **/*.{ts,tsx} : Prefer `unknown` over `any` and refine the type in TypeScript

Applied to files:

  • www/src/docs/api/ErrorBarAPI.tsx
  • www/src/docs/api/ScatterAPI.tsx
📚 Learning: 2025-11-23T13:30:10.395Z
Learnt from: PavelVanecek
Repo: recharts/recharts PR: 6669
File: www/src/docs/exampleComponents/ScatterChart/ScatterChartWithLabels.tsx:2-2
Timestamp: 2025-11-23T13:30:10.395Z
Learning: The `TooltipIndex` type from recharts is defined in `src/state/tooltipSlice.ts` but is not currently exported from the public API entry points. It should not be imported from `recharts/types/state/tooltipSlice` as this is an internal implementation path. An ESLint rule is needed to prevent regressions.

Applied to files:

  • www/src/docs/api/ErrorBarAPI.tsx
  • www/src/docs/api/ScatterAPI.tsx
  • src/cartesian/Line.tsx
📚 Learning: 2025-11-25T01:22:59.729Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: CONTRIBUTING.md:0-0
Timestamp: 2025-11-25T01:22:59.729Z
Learning: Applies to **/*.{ts,tsx} : Never use `any` type (implicit or explicit) in TypeScript code

Applied to files:

  • www/src/docs/api/ErrorBarAPI.tsx
  • www/src/docs/api/ScatterAPI.tsx
📚 Learning: 2025-11-25T01:23:14.977Z
Learnt from: CR
Repo: recharts/recharts PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-25T01:23:14.977Z
Learning: Applies to src/**/*.{ts,tsx} : Do not hardcode any strings or formatting choices in library code; users should provide localized strings as desired

Applied to files:

  • www/src/docs/api/ScatterAPI.tsx
📚 Learning: 2025-12-08T08:23:26.261Z
Learnt from: PavelVanecek
Repo: recharts/recharts PR: 6750
File: src/state/selectors/axisSelectors.ts:593-602
Timestamp: 2025-12-08T08:23:26.261Z
Learning: In the recharts codebase, `DataKey<any>` is an intentional exception to the "no any" rule while proper typing is being developed. This should not be flagged in reviews.

Applied to files:

  • src/cartesian/Line.tsx
📚 Learning: 2025-12-14T13:58:49.197Z
Learnt from: PavelVanecek
Repo: recharts/recharts PR: 6771
File: src/shape/Curve.tsx:39-40
Timestamp: 2025-12-14T13:58:49.197Z
Learning: In the recharts codebase, hooks like useAppSelector and other hooks (e.g., useChartLayout()) return undefined when used outside Redux Provider context, instead of throwing. This enables components that call these hooks, such as Curve, to operate in standalone mode by falling back to prop values. During code reviews, ensure TSX files gracefully handle undefined results from hooks and implement fallbacks (e.g., via default props or explicit prop-based values) rather than assuming the hook is always within Provider.

Applied to files:

  • src/cartesian/Line.tsx
  • src/zIndex/ZIndexLayer.tsx
  • src/cartesian/Scatter.tsx
📚 Learning: 2025-11-19T14:08:01.728Z
Learnt from: PavelVanecek
Repo: recharts/recharts PR: 6659
File: www/src/components/GuideView/Performance/index.tsx:232-250
Timestamp: 2025-11-19T14:08:01.728Z
Learning: In Recharts version 3.4.2, object-as-prop optimizations were introduced to reduce unnecessary re-renders when new object references are passed as props. This affects the recommendation for the `react-perf/jsx-no-new-object-as-prop` ESLint rule.

Applied to files:

  • src/cartesian/Scatter.tsx
🧬 Code graph analysis (4)
www/src/docs/api/ErrorBarAPI.tsx (1)
www/src/docs/api/types.ts (1)
  • ApiDoc (21-27)
www/src/docs/api/ScatterAPI.tsx (1)
www/src/docs/api/types.ts (1)
  • ApiDoc (21-27)
src/cartesian/Line.tsx (6)
src/util/types.ts (8)
  • ActiveDotType (1027-1051)
  • AnimationDuration (642-642)
  • AnimationTiming (640-640)
  • DataKey (65-65)
  • DotType (1073-1100)
  • LegendType (81-92)
  • ActiveShape (1102-1107)
  • TooltipType (93-93)
src/state/chartDataSlice.ts (1)
  • ChartData (14-14)
src/component/LabelList.tsx (1)
  • ImplicitLabelListType (131-131)
src/component/DefaultTooltipContent.tsx (1)
  • TooltipType (16-16)
src/shape/Curve.tsx (1)
  • CurveType (64-80)
src/state/cartesianAxisSlice.ts (1)
  • AxisId (11-11)
src/cartesian/Scatter.tsx (6)
src/zIndex/ZIndexLayer.tsx (1)
  • ZIndexable (14-26)
src/state/cartesianAxisSlice.ts (1)
  • AxisId (11-11)
src/util/types.ts (4)
  • DataKey (65-65)
  • LegendType (81-92)
  • TooltipType (93-93)
  • PresentationAttributesAdaptChildEvent (69-71)
src/shape/Curve.tsx (1)
  • CurveType (64-80)
src/component/DefaultTooltipContent.tsx (1)
  • TooltipType (16-16)
src/component/LabelList.tsx (1)
  • ImplicitLabelListType (131-131)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Build, Test, Pack
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (8)
omnidoc/generateApiDoc.ts (1)

84-102: LGTM - Well-structured type processing logic.

The new processType function properly handles type name arrays by filtering out undefined, simplifying each type, and deduplicating results. The threshold of 4 variants for inline display vs. summary is a reasonable UX choice.

www/src/docs/api/ZIndexLayerAPI.tsx (1)

1-1: LGTM - Import path corrected.

The .ts extension was correctly removed from the import path.

src/cartesian/Line.tsx (1)

295-314: LGTM - New stroke props are well-documented.

The new stroke, strokeWidth, and strokeDasharray props have clear JSDoc with examples.

www/src/docs/api/AreaAPI.tsx (2)

1-1: LGTM - Import path is correct.


329-346: LGTM - zIndex documentation is comprehensive.

The expanded zIndex entry with description, default value, and example links provides clear guidance for users.

src/cartesian/Scatter.tsx (2)

163-164: LGTM - children prop added to both internal and external prop interfaces.

Adding children?: ReactNode enables proper typing for nested children within Scatter components.

Also applies to: 336-337


921-923: LGTM - JSDoc context annotations updated.

The component now properly documents that it provides ErrorBarContext and CellReader contexts.

src/zIndex/ZIndexLayer.tsx (1)

23-23: LGTM! The JSDoc @see tag syntax is correct, and the documentation link to the zIndex guide is accessible and provides helpful reference material for users.

Comment on lines +169 to +177
{
name: 'line',
type: '(union of 5 variants)',
isOptional: true,
desc: {
'en-US': (
<section>
<p>Renders line connecting individual points. Options&quot;</p>
<ul>

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.

⚠️ Potential issue | 🟡 Minor

Typo in description: extra quote mark and missing colon.

Line 176 has Options" which should be Options:.

       desc: {
         'en-US': (
           <section>
-            <p>Renders line connecting individual points. Options&quot;</p>
+            <p>Renders line connecting individual points. Options:</p>
             <ul>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
{
name: 'line',
type: '(union of 5 variants)',
isOptional: true,
desc: {
'en-US': (
<section>
<p>Renders line connecting individual points. Options&quot;</p>
<ul>
{
name: 'line',
type: '(union of 5 variants)',
isOptional: true,
desc: {
'en-US': (
<section>
<p>Renders line connecting individual points. Options:</p>
<ul>
🤖 Prompt for AI Agents
In www/src/docs/api/ScatterAPI.tsx around lines 169 to 177, the description
string for the 'line' prop contains a typo — it reads `Options"` instead of
`Options:`; update the JSX/JS string to replace the extra double-quote with a
colon so the paragraph reads "Options:" (ensure escaping/quoting is correct in
the JSX so no syntax break occurs).

@codecov

codecov Bot commented Dec 14, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.80%. Comparing base (25e24bb) to head (5efadee).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6771      +/-   ##
==========================================
+ Coverage   93.72%   93.80%   +0.07%     
==========================================
  Files         516      516              
  Lines       43401    43946     +545     
  Branches     5008     5007       -1     
==========================================
+ Hits        40678    41223     +545     
  Misses       2717     2717              
  Partials        6        6              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codecov

codecov Bot commented Dec 14, 2025

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 341 bytes (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
recharts/bundle-cjs 1.17MB 166 bytes (0.01%) ⬆️
recharts/bundle-es6 1.01MB 149 bytes (0.01%) ⬆️
recharts/bundle-umd 521.94kB 26 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: recharts/bundle-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
cartesian/Bar.js 24 bytes 27.54kB 0.09%
cartesian/Line.js 29 bytes 26.31kB 0.11%
cartesian/Scatter.js 55 bytes 24.17kB 0.23%
cartesian/ErrorBar.js -286 bytes 10.0kB -2.78%
shape/Curve.js 312 bytes 7.29kB 4.47%
component/Cell.js 32 bytes 209 bytes 18.08% ⚠️
view changes for bundle: recharts/bundle-umd

Assets Changed:

Asset Name Size Change Total Size Change (%)
Recharts.js 26 bytes 521.94kB 0.0%
view changes for bundle: recharts/bundle-es6

Assets Changed:

Asset Name Size Change Total Size Change (%)
cartesian/Bar.js 24 bytes 25.83kB 0.09%
cartesian/Line.js 29 bytes 24.71kB 0.12%
cartesian/Scatter.js 55 bytes 22.55kB 0.24%
cartesian/ErrorBar.js -274 bytes 9.0kB -2.95%
shape/Curve.js 283 bytes 6.17kB 4.81%
component/Cell.js 32 bytes 92 bytes 53.33% ⚠️

@github-actions

Copy link
Copy Markdown
Contributor

Staging Deployment Details

These deployments will remain available for 30 days.

To update snapshots: Comment /update-snapshots on this PR to automatically update the baseline screenshots.

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.

2 participants