|
@@ -175,13 +175,13 @@ export const Plot = ({ tableData }: PlotProps) => {
|
|
|
<>
|
|
<>
|
|
|
<div className="pt-4 pb-8 font-mono">Cost x Score</div>
|
|
<div className="pt-4 pb-8 font-mono">Cost x Score</div>
|
|
|
<ChartContainer config={chartConfig} className="h-[500px] w-full">
|
|
<ChartContainer config={chartConfig} className="h-[500px] w-full">
|
|
|
- <ScatterChart margin={{ top: 0, right: 0, bottom: 0, left: 20 }}>
|
|
|
|
|
|
|
+ <ScatterChart margin={{ top: 20, right: 0, bottom: 0, left: 20 }}>
|
|
|
<XAxis
|
|
<XAxis
|
|
|
type="number"
|
|
type="number"
|
|
|
dataKey="cost"
|
|
dataKey="cost"
|
|
|
name="Cost"
|
|
name="Cost"
|
|
|
domain={[
|
|
domain={[
|
|
|
- (dataMin: number) => Math.round((dataMin - 5) / 5) * 5,
|
|
|
|
|
|
|
+ (dataMin: number) => Math.max(0, Math.round((dataMin - 5) / 5) * 5),
|
|
|
(dataMax: number) => Math.round((dataMax + 5) / 5) * 5,
|
|
(dataMax: number) => Math.round((dataMax + 5) / 5) * 5,
|
|
|
]}
|
|
]}
|
|
|
tickFormatter={(value) => formatCurrency(value)}
|
|
tickFormatter={(value) => formatCurrency(value)}
|