diff --git a/client/src/pages/BossPage.tsx b/client/src/pages/BossPage.tsx index d72f09f..9c3bbed 100644 --- a/client/src/pages/BossPage.tsx +++ b/client/src/pages/BossPage.tsx @@ -160,16 +160,21 @@ export function BossPage() { {wf && ( - + v >= 10000 ? `${(v / 10000).toFixed(0)}万` : v} tick={{ fontSize: 10 }} /> formatCurrency(v)} /> - - + { + const { x, y, width, height, payload, fill } = props + if (!payload.value || payload.value === 0) return + const scale = height / payload.value + const newY = y - payload.base * scale + return + }}> {waterfallChart.map((entry, i) => )} - +
{waterfallSteps.filter(s => s.type === 'cost').map(s => (