B1: Hardcoded MAX_SERIES overrides user series_limit #1

Open
opened 2026-06-05 10:21:38 +00:00 by sebse · 0 comments
Owner

Bug

File: web/components/ChartCard/seriesData.ts:3

buildSeriesData() hardcodes MAX_SERIES = 80 but chart editor allows series_limit up to 200. API returns the user-requested limit, then frontend silently truncates to 80.

Impact

User configures 150 series → chart shows only 80. No warning.

Fix

Replace constant with a parameter from config.series_limit.

Code reference

const MAX_SERIES = 80;

API already respects user limit. buildSeriesData needs to accept and use it.

## Bug **File:** `web/components/ChartCard/seriesData.ts:3` `buildSeriesData()` hardcodes `MAX_SERIES = 80` but chart editor allows `series_limit` up to 200. API returns the user-requested limit, then frontend silently truncates to 80. ### Impact User configures 150 series → chart shows only 80. No warning. ### Fix Replace constant with a parameter from `config.series_limit`. ### Code reference ```ts const MAX_SERIES = 80; ``` API already respects user limit. `buildSeriesData` needs to accept and use it.
sebse added the bug label 2026-06-05 10:21:38 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sebse/factorio-signal-exporter#1