From 8568856dd40b9b3bca8ef1ede53946067856eff5 Mon Sep 17 00:00:00 2001 From: Jakub Juszczak Date: Mon, 12 Mar 2018 13:33:50 +0100 Subject: [PATCH] feat(chart): Add bar chart for downloads per year chart As it is working better for the default 1 year preselection then the line chart. --- src/components/BarChart.vue | 128 ++++++++++++++++++++++++++++++++++++ src/pages/Start.vue | 4 +- 2 files changed, 131 insertions(+), 1 deletion(-) create mode 100644 src/components/BarChart.vue diff --git a/src/components/BarChart.vue b/src/components/BarChart.vue new file mode 100644 index 0000000..4817f3f --- /dev/null +++ b/src/components/BarChart.vue @@ -0,0 +1,128 @@ + diff --git a/src/pages/Start.vue b/src/pages/Start.vue index c4e2af2..fbdb832 100644 --- a/src/pages/Start.vue +++ b/src/pages/Start.vue @@ -76,7 +76,7 @@
- +
@@ -88,6 +88,7 @@ import Datepicker from 'vuejs-datepicker' import LineChart from '@/components/LineChart' + import BarChart from '@/components/BarChart' import PackageInfo from '@/components/PackageInfo' import { @@ -103,6 +104,7 @@ export default { components: { LineChart, + BarChart, PackageInfo, Datepicker },