From e244e420d0b54ce027bb4a3aa873ff17a1f0b053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Budav=C3=A1ri?= Date: Fri, 29 Sep 2023 08:34:12 +0200 Subject: [PATCH] Default Color is missing if more than 5 data points are available --- src/layers/circle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layers/circle.ts b/src/layers/circle.ts index b19b5bcd..b5c621ef 100644 --- a/src/layers/circle.ts +++ b/src/layers/circle.ts @@ -200,7 +200,7 @@ export class Circle extends Layer { // Add transparent as default so that we only see regions // for which we have data values - categoricalStyle = categoricalStyle.concat(Array(this.requiredNumberOfParamsInCircleColor - categoricalStyle.length).fill('rgba(255,0,0,255)')); + categoricalStyle = categoricalStyle.concat(Array(Math.max(1, this.requiredNumberOfParamsInCircleColor - categoricalStyle.length)).fill('rgba(255,0,0,255)')); return categoricalStyle; }