From 911ba8b7d541bcff6775ec5619f8b0b3f74e3393 Mon Sep 17 00:00:00 2001 From: cmack Date: Mon, 10 Aug 2020 10:32:46 +0100 Subject: [PATCH] Minor Updates --- packages/standard-components/src/Chart/Bar.svelte | 2 +- packages/standard-components/src/Chart/Legend.svelte | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/standard-components/src/Chart/Bar.svelte b/packages/standard-components/src/Chart/Bar.svelte index c039d40604..42a1b22828 100644 --- a/packages/standard-components/src/Chart/Bar.svelte +++ b/packages/standard-components/src/Chart/Bar.svelte @@ -10,7 +10,7 @@ - x and y axis label set and appear in the dom but do not display next to the axis - x and y axis label offset - does effect position of labels but does not render text (see above) - x tick label overlaps bar, seems to be no apu method to change this? Could do it by querying for it in the dom - specifically and doing this: 4.0 + for this element: 4.0 */ let tooltip diff --git a/packages/standard-components/src/Chart/Legend.svelte b/packages/standard-components/src/Chart/Legend.svelte index f42e714507..a5745f25d1 100644 --- a/packages/standard-components/src/Chart/Legend.svelte +++ b/packages/standard-components/src/Chart/Legend.svelte @@ -70,6 +70,7 @@ if (notNull(unit)) { legend.unit(unit) } + legendContainer.datum(data).call(legend) } } @@ -78,5 +79,8 @@ {#if useLegend} -
+
{/if}