From 3ec5bbaa09daa67b0669829dac471b4c6fa7400d Mon Sep 17 00:00:00 2001 From: Gerard Burns Date: Thu, 18 Apr 2024 10:12:34 +0100 Subject: [PATCH] wip --- .../components/app/charts/AreaChart.svelte | 161 +++++++++++++++++- .../components/app/charts/LineChart.svelte | 10 -- 2 files changed, 159 insertions(+), 12 deletions(-) diff --git a/packages/client/src/components/app/charts/AreaChart.svelte b/packages/client/src/components/app/charts/AreaChart.svelte index dc80b2b9da..888b1c8820 100644 --- a/packages/client/src/components/app/charts/AreaChart.svelte +++ b/packages/client/src/components/app/charts/AreaChart.svelte @@ -1,5 +1,162 @@ - + diff --git a/packages/client/src/components/app/charts/LineChart.svelte b/packages/client/src/components/app/charts/LineChart.svelte index c91bb56e07..a29f5ad5b3 100644 --- a/packages/client/src/components/app/charts/LineChart.svelte +++ b/packages/client/src/components/app/charts/LineChart.svelte @@ -20,15 +20,6 @@ export let palette export let c1, c2, c3, c4, c5 - // Area specific props - export let area - export let stacked - export let gradient - - $: { - console.log(palette); - } - const formatters = { ["Default"]: val => val, ["Thousands"]: val => `${Math.round(val / 1000)}K`, @@ -71,7 +62,6 @@ height: height == null || height === "" ? "auto" : height, width: width == null || width === "" ? "100%" : width, type: "line", - stacked, animations: { enabled: animate },