Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/analytics/FinancialReportChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const FinancialReportChart: React.FC<FinancialReportChartProps> = ({ data }) =>
<YAxis stroke="#6b7280" axisLine={false} tickLine={false} tickFormatter={(value) => `$${value}`} />
<Tooltip
contentStyle={{ backgroundColor: '#fff', borderRadius: '12px', border: 'none', boxShadow: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)' }}
formatter={(value: any) => [`$${formatCurrency(value)}`, undefined]}
formatter={(value: number | string) => [`$${Number(value).toLocaleString()}`, undefined]}
cursor={{ fill: 'rgba(0,0,0,0.05)' }}
/>
<Legend wrapperStyle={{ paddingTop: '20px' }} iconType="circle" />
Expand Down
12 changes: 10 additions & 2 deletions src/components/analytics/PetHealthChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@ interface PetHealthChartProps {
}[];
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const renderCustomizedLabel = (props: any) => {
interface PieLabelProps {
cx: number;
cy: number;
midAngle: number;
innerRadius: number;
outerRadius: number;
percent: number;
}

const renderCustomizedLabel = (props: PieLabelProps) => {
const { cx, cy, midAngle, innerRadius, outerRadius, percent } = props;
const RADIAN = Math.PI / 180;
const radius = innerRadius + (outerRadius - innerRadius) * 0.5;
Expand Down
Loading