From 4025cb69a37d7dbd1536fa51722877c74da11ae4 Mon Sep 17 00:00:00 2001 From: Christian Vidal Wolf Date: Tue, 3 Mar 2026 16:12:56 +0100 Subject: [PATCH] feat(vendor): change charts from lines to bars for weekly data Convert Top Level BSR, Detail Level BSR, and Average Rating charts from LineChart to BarChart for better week-over-week comparison. Each market now displays as colored bars per week instead of lines. Co-authored-by: Qwen-Coder --- components/VendorDataView.tsx | 38 ++++++++++++----------------------- 1 file changed, 13 insertions(+), 25 deletions(-) diff --git a/components/VendorDataView.tsx b/components/VendorDataView.tsx index 5a2e924..8575fe7 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 } from 'recharts'; +import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'; import { BSRRecord } from '../types'; import { BuyBoxWarningBadge } from './BuyBoxWarningBadge'; @@ -181,7 +181,7 @@ const VendorDataView: React.FC = ({ bsrData = [], asinMetad

Top Level BSR Trend ({resolutionLabel})

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

- + @@ -191,18 +191,14 @@ const VendorDataView: React.FC = ({ bsrData = [], asinMetad /> {activeMarkets.map(m => ( - ))} - + @@ -211,7 +207,7 @@ const VendorDataView: React.FC = ({ bsrData = [], asinMetad

Detail Level BSR Trend ({resolutionLabel})

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

- + @@ -221,18 +217,14 @@ const VendorDataView: React.FC = ({ bsrData = [], asinMetad /> {activeMarkets.map(m => ( - ))} - + @@ -241,7 +233,7 @@ const VendorDataView: React.FC = ({ bsrData = [], asinMetad

Average Rating ({resolutionLabel})

Averaged across filtered ASINs per market.

- + @@ -251,18 +243,14 @@ const VendorDataView: React.FC = ({ bsrData = [], asinMetad /> {activeMarkets.map(m => ( - ))} - +