From 9390b658e8e03e377264f48ef0bc2067ba6eb063 Mon Sep 17 00:00:00 2001 From: rozetko Date: Tue, 24 May 2022 20:06:44 +0400 Subject: [PATCH] fix x-axis label position --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 6b8e166..db69bba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -496,7 +496,7 @@ abstract class ChartwerkPod { return; } let yPosition = this.height + this.margin.top + this.margin.bottom - 35; - if(this.series.isSeriesAvailable) { + if(!this.series.isSeriesAvailable) { yPosition += 20; } this.chartContainer.append('text')