From 5c526d22e12b6b40a1918ec194b9a9381bce81ea Mon Sep 17 00:00:00 2001 From: cmack Date: Tue, 4 Aug 2020 16:21:51 +0100 Subject: [PATCH] Separate Legend into its own component --- .../src/Chart/Donut.svelte | 10 +- .../src/Chart/Legend.svelte | 96 +++++++++++++++++++ 2 files changed, 99 insertions(+), 7 deletions(-) create mode 100644 packages/standard-components/src/Chart/Legend.svelte diff --git a/packages/standard-components/src/Chart/Donut.svelte b/packages/standard-components/src/Chart/Donut.svelte index 5f98e9fbde..9651606051 100644 --- a/packages/standard-components/src/Chart/Donut.svelte +++ b/packages/standard-components/src/Chart/Donut.svelte @@ -1,5 +1,6 @@
-{#if useLegend} -
-{/if} + diff --git a/packages/standard-components/src/Chart/Legend.svelte b/packages/standard-components/src/Chart/Legend.svelte new file mode 100644 index 0000000000..55155ef72e --- /dev/null +++ b/packages/standard-components/src/Chart/Legend.svelte @@ -0,0 +1,96 @@ + + +{#if useLegend} +
+{/if}