ChangelogCharts
0.1.1
Tooltip / Legend / Label / Dot에 Chart prefix를 추가해 components 패키지와의 namespace 충돌을 해소합니다.
@featuring-corp/components가 동일한 이름을 컴파운드 namespace로 노출하기 때문에, 같은 코드/Playground scope에서 두 패키지를 함께 사용할 때 충돌이 발생하던 문제를 해소합니다. shadcn-ui / MUI X-Charts 등 주류 디자인 시스템과 동일한 prefix 규약을 따릅니다.
Breaking Changes — Chart prefix rename
| Before | After |
|---|---|
Tooltip | ChartTooltip |
Legend | ChartLegend |
Label | ChartLabel |
Dot | ChartDot |
타입 export도 동일하게 변경됩니다 (TooltipProps → ChartTooltipProps 등). 다른 export(BarChart, Bar, XAxis, LabelList, ErrorBar, Sector, Rectangle, Cross 등)는 변동이 없습니다.
/* Before */
import { Tooltip, Legend, Label, Dot } from '@featuring-corp/charts';
<BarChart data={data}>
<Tooltip />
<Legend />
<Bar dataKey="revenue">
<Label value="매출" position="insideTop" />
</Bar>
</BarChart>;
/* After */
import { ChartTooltip, ChartLegend, ChartLabel, ChartDot } from '@featuring-corp/charts';
<BarChart data={data}>
<ChartTooltip />
<ChartLegend />
<Bar dataKey="revenue">
<ChartLabel value="매출" position="insideTop" />
</Bar>
</BarChart>;Breaking — Tooltip / Legend / Label / Dot을 @featuring-corp/charts에서 named import한 코드는 모두 Chart* 형태로 수정해 주세요. 동일 이름을 recharts에서 직접 import해 사용하던 경우라면 @featuring-corp/charts의 prefix 별칭으로 옮겨도 동일하게 동작합니다.