fix: 사료 섭취 차트를 제공/섭취 스택 바로 바꿈 - #44
Merged
Merged
Conversation
offered·consumed를 옆으로 나란히 그리면 --color-primary와 --chart-secondary가 같은 색 계열(명도만 다름)이라 구분이 잘 안 됐다. 같은 x 위치에 쌓아서 섭취(진한 색)를 바닥에서 채우고, 제공에서 못 먹은 만큼만 위에 옅은 색으로 얹는다 — offered가 목표선처럼 읽힌다. - 섭취=제공(다 먹음)이면 위쪽만 둥글게, 남았으면 위 세그먼트만 둥글게 (shape 콜백으로 스택 맨 위인 쪽만 라운드 처리) - 두 세그먼트 사이 2px surface-color 스트로크로 구분 - 툴팁은 세그먼트 값이 아니라 실제 제공/섭취 값을 그대로 보여준다 Recharts를 실제로 esbuild 번들해 브라우저에서 렌더링까지 확인했다 (비율·색상·라운드 로직). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
shape콜백으로 처리했고, 두 세그먼트 사이엔 2px surface-color 스트로크로 경계를 준다.Test plan
npm run --workspace apps/web build(타입체크 포함)npm run --workspace apps/web test(112 tests)🤖 Generated with Claude Code