From f46167753a4a4b5dfb107d9ea30ffc8b8bf58f1e Mon Sep 17 00:00:00 2001 From: yousif <42901524+fullmooner-stack@users.noreply.github.com> Date: Mon, 22 Jun 2026 14:07:42 +0300 Subject: [PATCH] Add check for empty series in getAxis function component throws on empty 'data' to reproduce the error: ... --- packages/solid-charts/src/components/Chart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/solid-charts/src/components/Chart.tsx b/packages/solid-charts/src/components/Chart.tsx index 762ada4..ea7c537 100644 --- a/packages/solid-charts/src/components/Chart.tsx +++ b/packages/solid-charts/src/components/Chart.tsx @@ -309,7 +309,7 @@ const Chart = (props: ChartProps) => { getAxis: (axisId) => { const axis = axes().get(axisId) // Fallback while rendering. Maybe there is a better solution for this? - if (!axis) { + if (!axis || axis.series.size === 0) { return { min: 0, max: 0,