graphic remake as well as parcer rework

This commit is contained in:
54CHA
2025-08-09 07:34:49 +03:00
parent 4153e2c00a
commit b8e94c72cf
15 changed files with 6082 additions and 316 deletions

View File

@ -92,8 +92,7 @@ export default function Home() {
// Обновляем графические данные
const chartDataFromHistory = historyItem.positions.map((pos) => ({
city: pos.city,
myPosition:
pos.pageRank === 1 ? pos.rank : (pos.pageRank - 1) * 100 + pos.rank,
myPosition: pos.pageRank === 1 ? pos.rank : (pos.pageRank - 1) * 100 + pos.rank,
// В истории нет данных конкурента, используем заглушку
competitorPosition:
pos.competitorRank && pos.competitorPageRank