Repository navigation
fix(charts): render a dot for single-point series instead of an empty path - #371
Conversation
|
@ayam04 is attempting to deploy a commit to the MagicAPI Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks for your first pull request to Orbit. Two things that will save you a review round: A maintainer will review this shortly. Ask anything on the thread. |
|
Warning Review limit reachedNext included review available in 25 minutes. View limit detailsLimit details: You’ve used the included review currently available. This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Comment |
… path A series with exactly one bucket produced a pure move command (M x y) which SVG paints nothing, so the scope chart rendered blank for workspaces whose history fits in one week (issue Noveum#175). SeriesPath now renders a small circle at the centred point for a single value, and the area fill is skipped for single-point series since the zero-width shape paints nothing. Two component tests: single point renders a circle at the centred x, multi-point still renders paths. Signed-off-by: ayam04 <[email protected]>
121f1a9 to
3a683a8
Compare
|
@coderabbitai review @greptileai review Please review exact head |
🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
printf 'HEAD: '
git rev-parse HEAD
printf 'SHORT_HEAD: '
git rev-parse --short HEAD
printf 'REQUESTED_PREFIX: %s\n' '9ff350db'Length of output: 390
|
|
@greptile-apps please review exact head |
imshashank
left a comment
There was a problem hiding this comment.
Reviewed the exact head and the rendered output. The round-capped non-scaling marker remains circular under non-uniform SVG scaling, one-point fills are correctly suppressed, multi-point behavior is preserved, and the focused, type, policy, browser, and independent audit checks are clean.
Closes #175
What changed
A series with exactly one bucket previously produced only a move command, so the chart painted nothing. Single-point series now render a centered marker as a zero-length line with a round cap and a non-scaling stroke. This keeps the marker circular even though the chart SVG stretches its coordinate system non-uniformly.
Filled areas are omitted for one-point series because a zero-width area conveys no trend. Multi-point line and area behavior is unchanged.
Review fixes
The initial circle implementation would stretch into an ellipse under
preserveAspectRatio="none". The final implementation uses:strokeLinecap="round"strokeWidth={7}vectorEffect="non-scaling-stroke"Chromium renders confirmed a circular 7px marker at both 160px and 640px chart widths.
Verification
LinePlotplus changedLineChartsuites: 18 passed, 86 assertionsThe full local suite later encountered a Bun 1.3.14
SIGTRAPat the unchangedline-plot.test.tsxafter the preceding lanes passed. That file immediately passed 16 of 16 in isolation. Hosted exact-head CI remains required before merge.Greptile Summary
The PR updates single-point line-chart series to display a centered, circular marker while leaving multi-point rendering unchanged.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Reviews (4): Last reviewed commit: "fix(charts): keep single-point markers c..." | Re-trigger Greptile