From 61aa6a390dc39f16d7b7cbc2de799fbdd46e6a9f Mon Sep 17 00:00:00 2001 From: Benjamin Ledel <benjamin@schule-plus.com> Date: Thu, 27 Jul 2023 14:36:14 +0200 Subject: [PATCH] * sample data + text elements begonnenn --- src/js/charts/heatmap.js | 4 +++- src/js/charts/scatterchart.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/charts/heatmap.js b/src/js/charts/heatmap.js index c235b89..1ade5b2 100644 --- a/src/js/charts/heatmap.js +++ b/src/js/charts/heatmap.js @@ -10,7 +10,9 @@ export class HeatMapWidget extends BaseChartWidget { } plot(divWidth, divHeight, el) { - const [width, height] = this.clearAndScaleSvg(divWidth, divHeight,20,20); + this.marginRight = 50 + this.marginBottom = 50 + const [width, height] = this.clearAndScaleSvg(divWidth, divHeight,20,40); this.drawTitle(); if (!this.dataIsValid) { diff --git a/src/js/charts/scatterchart.js b/src/js/charts/scatterchart.js index 1aa22b1..f6dbf0e 100644 --- a/src/js/charts/scatterchart.js +++ b/src/js/charts/scatterchart.js @@ -11,7 +11,7 @@ export class ScatterChartWidget extends BaseChartWidget { } plot(divWidth, divHeight, el) { - const [width, height] = this.clearAndScaleSvg(divWidth, divHeight);//, 25, 25); + const [width, height] = this.clearAndScaleSvg(divWidth, divHeight); this.drawTitle(); if (!this.dataIsValid) { -- GitLab