From 96d80cf30da917de967c4d9e06219788e612134a Mon Sep 17 00:00:00 2001 From: cmack Date: Mon, 20 Jul 2020 10:09:11 +0100 Subject: [PATCH] Chart component - CDN to NPM Pkg --- packages/builder/package.json | 2 + .../src/components/userInterface/Chart.svelte | 138 ++++++++++-------- packages/builder/src/index.html | 4 - 3 files changed, 79 insertions(+), 65 deletions(-) diff --git a/packages/builder/package.json b/packages/builder/package.json index 592cc17947..6b7cd80215 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -58,7 +58,9 @@ "@budibase/bbui": "^1.15.4", "@budibase/client": "^0.0.32", "@nx-js/compiler-util": "^2.0.0", + "britecharts": "^2.16.0", "codemirror": "^5.51.0", + "d3-selection": "^1.4.1", "date-fns": "^1.29.0", "deepmerge": "^4.2.2", "feather-icons": "^4.21.0", diff --git a/packages/builder/src/components/userInterface/Chart.svelte b/packages/builder/src/components/userInterface/Chart.svelte index 54ccf902ee..e0508baffb 100644 --- a/packages/builder/src/components/userInterface/Chart.svelte +++ b/packages/builder/src/components/userInterface/Chart.svelte @@ -1,156 +1,172 @@
{#if useLegend} -
-{/if} \ No newline at end of file +
+{/if} diff --git a/packages/builder/src/index.html b/packages/builder/src/index.html index 28d88fde54..afc3bcb4c2 100644 --- a/packages/builder/src/index.html +++ b/packages/builder/src/index.html @@ -8,7 +8,6 @@ Budibase Builder - @@ -22,9 +21,6 @@ - - -