diff --git a/pages/_data/charts.yml b/pages/_data/charts.yml
index 02d4b907b..098023911 100644
--- a/pages/_data/charts.yml
+++ b/pages/_data/charts.yml
@@ -1,7 +1,21 @@
+mentions:
+ stacked: true
+ datetime: true
+ show-x: true
+ series:
+ - name: Web
+ data: [1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 2, 12, 5, 8, 22, 6, 8, 6, 4, 1, 8, 24, 29, 51, 40, 47, 23, 26, 50, 26, 41, 22, 46, 47, 81, 46, 6]
+ color: blue
+ - name: Social
+ data: [2, 5, 4, 3, 3, 1, 4, 7, 5, 1, 2, 5, 3, 2, 6, 7, 7, 1, 5, 5, 2, 12, 4, 6, 18, 3, 5, 2, 13, 15, 20, 47, 18, 15, 11, 10, 0]
+ color: blue-300
+ - name: Other
+ data: [2, 9, 1, 7, 8, 3, 6, 5, 5, 4, 6, 4, 1, 9, 3, 6, 7, 5, 2, 8, 4, 9, 1, 2, 6, 7, 5, 1, 8, 3, 2, 3, 4, 9, 7, 1, 6]
+ color: green-200
+
completion-tasks:
demo: true
- type: bar
- days-labels-count: 7
+ datetime: true
debug: true
series:
- name: Tasks completion
@@ -43,6 +57,8 @@ completion-tasks7:
completion-tasks8:
demo: true
+ datetime: true
+ type: bar
series:
- data: [155, 65, 465, 265, 225, 325, 80]
- data: [113, 42, 65, 54, 76, 65, 35]
@@ -81,14 +97,14 @@ total-sales:
color: blue
data: 44
- name: Affilliate
- color: green
+ color: blue-300
data: 55
- - name: Sponsored
- color: red
- data: 35
- name: E-mail
- color: yellow
+ color: green-200
data: 12
+ - name: Other
+ color: gray-300
+ data: 2
campaigns:
type: radialBar
@@ -132,7 +148,7 @@ development-activity:
remove-padding: true
legend-position: 'top'
sparkline: true
- days-labels-count: 30
+ datetime: true
series:
- name: 'Purchases'
color: blue
@@ -140,7 +156,6 @@ development-activity:
line:
type: line
- show-grid: true
categories: ['2013', '2014', '2015', '2016', '2017', '2018']
series:
- name: Development
@@ -157,7 +172,6 @@ line-stroke:
demo: true
type: line
stroke-curve: straight
- show-grid: true
categories: ['2013', '2014', '2015', '2016', '2017', '2018', '2019']
series:
- name: Development
@@ -174,7 +188,6 @@ stepline:
demo: true
type: line
stroke-curve: stepline
- show-grid: true
series:
- name: Development
color: orange
@@ -186,7 +199,6 @@ temperature:
show-labels: true
show-data-labels: true
show-markers: true
- show-grid: true
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
series:
- name: Tokyo
@@ -320,7 +332,7 @@ combination:
revenue-bg:
type: area
- days-labels-count: 30
+ datetime: true
sparkline: true
series:
- name: Profits
@@ -328,7 +340,7 @@ revenue-bg:
new-clients:
type: line
- days-labels-count: 30
+ datetime: true
sparkline: true
stroke-width: [2, 1]
stroke-dash: [0, 3]
@@ -342,7 +354,7 @@ new-clients:
active-users:
type: bar
- days-labels-count: 30
+ datetime: true
sparkline: true
series:
- name: Profits
diff --git a/pages/_includes/cards/charts/active-users.html b/pages/_includes/cards/charts/active-users.html
index 41b987ed1..2fdd02551 100644
--- a/pages/_includes/cards/charts/active-users.html
+++ b/pages/_includes/cards/charts/active-users.html
@@ -1,7 +1,7 @@
-
-
Active users
+
+
{% include parts/dropdown/days.html %}
diff --git a/pages/_includes/cards/charts/new-clients.html b/pages/_includes/cards/charts/new-clients.html
index 8bee88329..a9d580670 100644
--- a/pages/_includes/cards/charts/new-clients.html
+++ b/pages/_includes/cards/charts/new-clients.html
@@ -1,7 +1,7 @@
-
-
New clients
+
+
{% include parts/dropdown/days.html %}
diff --git a/pages/_includes/cards/charts/revenue.html b/pages/_includes/cards/charts/revenue.html
index fa41c8b22..7e170d50f 100644
--- a/pages/_includes/cards/charts/revenue.html
+++ b/pages/_includes/cards/charts/revenue.html
@@ -1,7 +1,7 @@
-
-
Revenue
+
+
{% include parts/dropdown/days.html %}
diff --git a/pages/_includes/cards/charts/sales.html b/pages/_includes/cards/charts/sales.html
index 07301d02a..92e63783d 100644
--- a/pages/_includes/cards/charts/sales.html
+++ b/pages/_includes/cards/charts/sales.html
@@ -1,7 +1,7 @@
-
-
Sales
+
+
{% include parts/dropdown/days.html %}
diff --git a/pages/_includes/cards/map.html b/pages/_includes/cards/map.html
index bd7766125..2be93e4dc 100644
--- a/pages/_includes/cards/map.html
+++ b/pages/_includes/cards/map.html
@@ -1,12 +1,9 @@
{% assign map = include.map | default: "world" %}
- {% if include.title %}
-
- {% endif %}
-
-
- {% include ui/map.html map-id=map color="blue" %}
-
+
+ {% if include.title %}
+
{{ include.title }}
+ {% endif %}
+ {% include ui/map.html map-id=map color="blue" height=15 %}
+
diff --git a/pages/_includes/layout/homepage.html b/pages/_includes/layout/homepage.html
index cfd0f514d..fe77b2898 100644
--- a/pages/_includes/layout/homepage.html
+++ b/pages/_includes/layout/homepage.html
@@ -13,6 +13,19 @@
{% include cards/charts/active-users.html %}
+
+
+
+
Traffic summary
+ {% include ui/chart.html chart-id="mentions" size="lg" legend=true %}
+
+
+
+
+
+ {% include cards/map.html title="Top countries" %}
+
+
-
- {% include cards/map.html title="Top users" %}
-
{% include cards/development-activity.html %}
-
-
-
- {% comment %}{% include cards/charts/card.html chart-id="temperature" height=10 %}{% endcomment %}
-
-
- {% comment %}{% include cards/charts/card.html chart-id="donut" height=10 %}{% endcomment %}
-
-
-
{% include cards/small-stats.html color="blue" icon="dollar-sign" count="132" subtitle="Sales" description="12 waiting payments" %}
diff --git a/pages/_includes/ui/chart.html b/pages/_includes/ui/chart.html
index f94d0be38..592178a2b 100644
--- a/pages/_includes/ui/chart.html
+++ b/pages/_includes/ui/chart.html
@@ -4,8 +4,11 @@
{% assign class = include.class %}
{% if include['size'] == 'sm' %}
-{% assign class = class | append: ' chart-sm' | strip %}
-{% assign height = 2.5 %}
+ {% assign class = class | append: ' chart-sm' | strip %}
+ {% assign height = 2.5 %}
+{% elsif include['size'] == 'lg' %}
+ {% assign class = class | append: ' chart-lg' | strip %}
+ {% assign height = 15 %}
{% endif %}
{% if data %}
@@ -17,16 +20,17 @@
{% append_lib apexcharts %}
{% capture script %}
+{% assign chart-type = data.type | default: 'bar' %}