fix responsive flag for line charts
This commit is contained in:
@@ -26,7 +26,7 @@ const LineChartComponent = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Chart.Root maxH="xs" chart={chart} maxW="100dvw">
|
<Chart.Root maxH="xs" chart={chart} maxW="100dvw">
|
||||||
<LineChart data={chart.data}>
|
<LineChart data={chart.data} responsive>
|
||||||
<CartesianGrid stroke={chart.color("border")} vertical={false} />
|
<CartesianGrid stroke={chart.color("border")} vertical={false} />
|
||||||
<XAxis
|
<XAxis
|
||||||
axisLine={false}
|
axisLine={false}
|
||||||
@@ -40,7 +40,7 @@ const LineChartComponent = ({
|
|||||||
tickLine={false}
|
tickLine={false}
|
||||||
tickMargin={10}
|
tickMargin={10}
|
||||||
stroke={chart.color("border")}
|
stroke={chart.color("border")}
|
||||||
// label={{ value: label, position: "left", angle: -90 }}
|
// label={{ value: label, position: "left", angle: -90 }}
|
||||||
/>
|
/>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
animationDuration={100}
|
animationDuration={100}
|
||||||
|
|||||||
Reference in New Issue
Block a user