From 2858415ac52237d0296e224032950779c76488ff Mon Sep 17 00:00:00 2001 From: Wolfr Date: Sat, 22 May 2021 14:46:25 +0200 Subject: [PATCH] Add example page for 2 charts Signed-off-by: Wolfr --- src/lib/jui-components/BarChart.svelte | 77 +++++++++++++++++++ src/lib/jui-components/LineAreaChart.svelte | 43 +++++++++++ src/routes/styleguide/__layout.svelte | 8 ++ .../styleguide/components/bar-chart.svelte | 18 +++++ .../components/line-area-chart.svelte | 18 +++++ 5 files changed, 164 insertions(+) create mode 100644 src/lib/jui-components/BarChart.svelte create mode 100644 src/lib/jui-components/LineAreaChart.svelte create mode 100644 src/routes/styleguide/components/bar-chart.svelte create mode 100644 src/routes/styleguide/components/line-area-chart.svelte diff --git a/src/lib/jui-components/BarChart.svelte b/src/lib/jui-components/BarChart.svelte new file mode 100644 index 0000000..6e28c64 --- /dev/null +++ b/src/lib/jui-components/BarChart.svelte @@ -0,0 +1,77 @@ + + + + +
+ + + + + + + +
\ No newline at end of file diff --git a/src/lib/jui-components/LineAreaChart.svelte b/src/lib/jui-components/LineAreaChart.svelte new file mode 100644 index 0000000..a0c587f --- /dev/null +++ b/src/lib/jui-components/LineAreaChart.svelte @@ -0,0 +1,43 @@ + + + + +
+ + + + + + + + +
diff --git a/src/routes/styleguide/__layout.svelte b/src/routes/styleguide/__layout.svelte index ddd55e7..a754390 100644 --- a/src/routes/styleguide/__layout.svelte +++ b/src/routes/styleguide/__layout.svelte @@ -72,6 +72,10 @@ url: 'badge', category: 'components' }, + { + url: 'bar-chart', + category: 'components' + }, { url: 'bordered-list', category: 'components' @@ -133,6 +137,10 @@ url: 'list', category: 'components' }, + { + url: 'line-area-chart', + category: 'components' + }, { url: 'pagination', category: 'components' diff --git a/src/routes/styleguide/components/bar-chart.svelte b/src/routes/styleguide/components/bar-chart.svelte new file mode 100644 index 0000000..6196567 --- /dev/null +++ b/src/routes/styleguide/components/bar-chart.svelte @@ -0,0 +1,18 @@ + + + + {pageTitle} - Components - JUI + + + + + + + diff --git a/src/routes/styleguide/components/line-area-chart.svelte b/src/routes/styleguide/components/line-area-chart.svelte new file mode 100644 index 0000000..f3df529 --- /dev/null +++ b/src/routes/styleguide/components/line-area-chart.svelte @@ -0,0 +1,18 @@ + + + + {pageTitle} - Components - JUI + + + + + + +