From d074e2285bda89ca4bd0b8b95a7bc645f3832871 Mon Sep 17 00:00:00 2001 From: rozetko Date: Thu, 29 Jun 2023 20:09:21 +0300 Subject: [PATCH 1/2] fit tick labels into bounding box --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index ac4eb65..ed21f90 100644 --- a/src/index.ts +++ b/src/index.ts @@ -219,6 +219,8 @@ abstract class ChartwerkPod { this.renderXAxis(); this.renderYAxis(); this.renderY1Axis(); + const bbox = this.svg.node().getBBox(); + this.svg.attr('viewBox', `${bbox.x} ${bbox.y} ${bbox.width} ${bbox.height}`); this.options.callbackComponentRenderEnd(RenderComponent.AXES); } From a0832b0ef6594a4a004ed84c8a0045f2c10a5485 Mon Sep 17 00:00:00 2001 From: rozetko Date: Thu, 29 Jun 2023 20:10:46 +0300 Subject: [PATCH 2/2] 0.6.16 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5060168..88a5c53 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@chartwerk/core", - "version": "0.6.15", + "version": "0.6.16", "description": "Chartwerk core", "main": "dist/index.js", "types": "dist/index.d.ts",