refactor: standardize quotation marks in pnpm-lock.yaml and improve code formatting across various components; enhance readability and maintain consistency in code style
This commit is contained in:
@@ -54,7 +54,7 @@ export function MonthlyChart({
|
||||
// Formater les labels de manière plus compacte
|
||||
const formatMonthLabel = (month: string) => {
|
||||
// Format: "janv. 24" -> "janv 24" (enlever le point)
|
||||
return month.replace('.', '');
|
||||
return month.replace(".", "");
|
||||
};
|
||||
|
||||
const chartContent = (
|
||||
@@ -62,10 +62,18 @@ export function MonthlyChart({
|
||||
{data.length > 0 ? (
|
||||
<div className="h-[400px] sm:h-[300px]">
|
||||
<ResponsiveContainer width="100%" height="100%">
|
||||
<LineChart data={data} margin={{ left: 0, right: 10, top: 10, bottom: data.length > 6 ? 80 : 60 }}>
|
||||
<LineChart
|
||||
data={data}
|
||||
margin={{
|
||||
left: 0,
|
||||
right: 10,
|
||||
top: 10,
|
||||
bottom: data.length > 6 ? 80 : 60,
|
||||
}}
|
||||
>
|
||||
<CartesianGrid strokeDasharray="3 3" className="stroke-muted" />
|
||||
<XAxis
|
||||
dataKey="month"
|
||||
<XAxis
|
||||
dataKey="month"
|
||||
className="text-xs"
|
||||
angle={data.length > 6 ? -45 : 0}
|
||||
textAnchor={data.length > 6 ? "end" : "middle"}
|
||||
|
||||
Reference in New Issue
Block a user