diff --git a/src/components/TransactionChart.tsx b/src/components/TransactionChart.tsx index 0e61c36..236ed20 100644 --- a/src/components/TransactionChart.tsx +++ b/src/components/TransactionChart.tsx @@ -232,21 +232,20 @@ const TransactionChart: React.FC = ({ - + ); } @@ -265,28 +264,27 @@ const TransactionChart: React.FC = ({ - + ); } - // Combined profit chart (costs, revenue, profit) + // Profit chart - entire job view return ( - + @@ -295,63 +293,32 @@ const TransactionChart: React.FC = ({ labelStyle={{ color: '#F3F4F6' }} contentStyle={{ backgroundColor: '#1F2937', border: '1px solid #374151' }} /> - toggleLine(e.dataKey as string)} - wrapperStyle={{ cursor: 'pointer' }} + + - {!hiddenLines.has('costs') && ( - - )} - {!hiddenLines.has('revenue') && ( - - )} - {!hiddenLines.has('profit') && ( - - )} - {!hiddenLines.has('cumulativeRevenue') && ( - - )} - {!hiddenLines.has('cumulativeProfit') && ( - - )} - + + + ); };