From ff8a752f15aba4c252891ce3e16db352063df778 Mon Sep 17 00:00:00 2001 From: Imo John Date: Fri, 23 Oct 2026 16:11:11 +0200 Subject: [PATCH] Rand bei sanke-Diagrammen auf 0 setzen --- src-modules/module/viz/conf/viz.xml | 2 +- superx/xml/js/viz/viz_viewer.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src-modules/module/viz/conf/viz.xml b/src-modules/module/viz/conf/viz.xml index f78b879..b73d56c 100644 --- a/src-modules/module/viz/conf/viz.xml +++ b/src-modules/module/viz/conf/viz.xml @@ -834,7 +834,7 @@ parent="Visualisierungen">Abfragen zur Administration von Visualisierungen $VIZ_PFAD/masken - + $VIZ_PFAD/masken diff --git a/superx/xml/js/viz/viz_viewer.js b/superx/xml/js/viz/viz_viewer.js index fc5f81d..b340d9b 100644 --- a/superx/xml/js/viz/viz_viewer.js +++ b/superx/xml/js/viz/viz_viewer.js @@ -2521,7 +2521,12 @@ var captionEmptyNode=getChartPropertyValue(currentChartModel.chartPropertiesUsed if(captionEmptyNode=="") captionEmptyNode="Leer"; -var marginLeft=getChartPropertyValue(currentChartModel.chartPropertiesUsed,"margin.left"); +// bei sankey Diagrammen soll der Rand im default 0 sein, daher wird er 0 gesetzt, solange nicht anderes angegeben wird +var marginLeft = getChartPropertyValue(currentChartModel.chartPropertiesUsed, "margin.left"); + if (marginLeft == "20") { + var marginLeft = 0; + } + var marginRight=getChartPropertyValue(currentChartModel.chartPropertiesUsed,"margin.right"); var marginTop=getChartPropertyValue(currentChartModel.chartPropertiesUsed,"margin.top"); var marginBottom=getChartPropertyValue(currentChartModel.chartPropertiesUsed,"margin.bottom");