Take last point dynamically

This commit is contained in:
Hristo Nedelkov 2023-08-10 10:43:33 +03:00
parent 508f9b644f
commit a6562a7273
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ const StandartLineChart = ({ data }: StandartLineChartProps) => {
<ResponsiveLine
data={data}
margin={{ top: 0, right: 0, bottom: 0, left: -75 }}
xScale={{ type: 'linear', min: 1, max: 12 }}
xScale={{ type: 'linear', min: 0, max: data[0].data.length }}
yScale={{
type: 'linear',
min: 'auto',