From ff188cd95177b411a93b13d632015fc981084370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C5=91rik=20Levente?= Date: Sat, 16 Dec 2023 00:22:18 +0100 Subject: [PATCH] New line chart --- interface/components/charts/LineChart.svelte | 104 +++++++++++++++++++ interface/lib/utils.ts | 16 +++ 2 files changed, 120 insertions(+) create mode 100644 interface/components/charts/LineChart.svelte diff --git a/interface/components/charts/LineChart.svelte b/interface/components/charts/LineChart.svelte new file mode 100644 index 0000000..229d0a4 --- /dev/null +++ b/interface/components/charts/LineChart.svelte @@ -0,0 +1,104 @@ + + + diff --git a/interface/lib/utils.ts b/interface/lib/utils.ts index 7e4a5fe..d9f5d2a 100644 --- a/interface/lib/utils.ts +++ b/interface/lib/utils.ts @@ -2,4 +2,20 @@ export const colors = { min: "#35cbfd", current: "#ff5380", max: "#9d0cfd", + categoricalPalette: ["#e60049", "#0bb4ff", "#50e991", "#e6d800", "#9b19f5", "#ffa300", "#dc0ab4", "#b3d4ff", "#00bfa0"], + divergentPalette: [ + "#35cbfd", + "#78ceff", + "#a4d2ff", + "#c6d6ff", + "#e0dcff", + "#f3e3ff", + "#ffecff", + "#f8d1ed", + "#f3b5d7", + "#ef98bb", + "#ea7a9b", + "#e15c77", + "#d43d51", + ], }