Skip to content

feat(charts): add line chart - #2161

Draft
rodorgas wants to merge 2 commits into
001-charts-refactor-internalsfrom
001-charts-line-chart
Draft

feat(charts): add line chart#2161
rodorgas wants to merge 2 commits into
001-charts-refactor-internalsfrom
001-charts-line-chart

Conversation

@rodorgas

@rodorgas rodorgas commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

The second of three chart components. It composes the shared internals extracted in #2160 — series aggregation, legend/grid/axis/tooltip builders, and localized messages — so it carries no duplicated mapping logic.

Same public shape as BarChart: a designed, constrained API with the Options/Props pair, forwardRef, accessible name/description, loading and empty states, maxSeries aggregation, and tooltip deltas. Line-specific: an axis-trigger tooltip with a line guide + marker (per the tooltip design notes), and gaps for null values (the engine default connectNulls: false) rather than silent interpolation. No direction or grouping: line charts are category-on-x, and stacking is the area chart's job (stage 3).

Verification: 118 tests pass (100 from the refactor + 18 new), tsc --noEmit clean, biome check clean, full build succeeds.

Remaining gate (SC-001): pending the line-chart Figma scope freeze (design-notes/line-chart.md) and designer sign-off on the Chromatic-published Storybook. Built against the tooltip behavior in tooltip.md and reasonable defaults (guide-line color from --sl-color-gray-3, ECharts-default per-point symbols); both are one-line follow-ups once the designer confirms.

Session cost

  • Total cost: $0.00 (measured from the pi session log)
  • Agent pi 0.84.2, model huawei/glm-5.2-vision (reasoning: off), 139 assistant turns
  • Token breakdown: 717K input · 66K output · 41K reasoning · 9.6M cache-read (~10.4M total)

The second of three chart components. It composes the shared internals
extracted in the previous refactor — series aggregation, legend/grid/
axis/tooltip builders, and localized messages — so it carries no
duplicated mapping logic.

Same public shape as BarChart: a designed, constrained API with the
Options/Props pair, forwardRef, accessible name/description, loading
and empty states, maxSeries aggregation, and tooltip deltas.
Line-specific: an axis-trigger tooltip with a line guide + marker (per
the tooltip design notes), and gaps for null values (the engine default
connectNulls: false) rather than silent interpolation. No direction or
grouping: line charts are category-on-x, and stacking is the area
chart's job (stage 3).

@status experimental, pending the line-chart Figma scope freeze and
designer sign-off (SC-001).
@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
shoreline-docs Ignored Ignored Preview Aug 18, 2026 8:02pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 7d913a19-930b-4c8f-a1bf-f7f0c4d25e57

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

A boolean prop that swaps straight segments for smooth curves. Off by
default: straight segments read exact values more precisely, smooth
curves suit trend-forward narratives. Threaded through buildLineOption
to each line series' engine `smooth` flag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant