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,