From 0a2b15615d7b56e089aaec24029ea6db8a242582 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Tue, 3 Mar 2026 16:21:08 +0100 Subject: [PATCH] feat(vendor): update to modern bar charts - Use BarChart with rounded corners for modern look - Remove vertical grid lines for cleaner appearance - Add hover cursor effect on tooltip - Y-axis reversed for BSR charts (lower = better) - Normal Y-axis for Rating chart (higher = better) Co-authored-by: Qwen-Coder --- components/VendorDataView.tsx | 78 +++++++++++------------------------ 1 file changed, 24 insertions(+), 54 deletions(-) diff --git a/components/VendorDataView.tsx b/components/VendorDataView.tsx index d6a6e4e..bde69b5 100644 --- a/components/VendorDataView.tsx +++ b/components/VendorDataView.tsx @@ -1,5 +1,5 @@ import React, { useMemo, useState } from 'react'; -import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer, AreaChart, Area } from 'recharts'; +import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer, Cell } from 'recharts'; import { BSRRecord } from '../types'; import { BuyBoxWarningBadge } from './BuyBoxWarningBadge'; @@ -181,36 +181,26 @@ const VendorDataView: React.FC = ({ bsrData = [], asinMetad

Top Level BSR Trend ({resolutionLabel})

Lower rank = better position. Averaged across filtered ASINs per market.

- - - {activeMarkets.map(m => ( - - - - - ))} - - + + - + {activeMarkets.map(m => ( - ))} - + @@ -219,36 +209,26 @@ const VendorDataView: React.FC = ({ bsrData = [], asinMetad

Detail Level BSR Trend ({resolutionLabel})

Lower rank = better position. Averaged across filtered ASINs per market.

- - - {activeMarkets.map(m => ( - - - - - ))} - - + + - + {activeMarkets.map(m => ( - ))} - + @@ -257,36 +237,26 @@ const VendorDataView: React.FC = ({ bsrData = [], asinMetad

Average Rating ({resolutionLabel})

Averaged across filtered ASINs per market.

- - - {activeMarkets.map(m => ( - - - - - ))} - - + + {activeMarkets.map(m => ( - ))} - +