diff --git a/pages/_data/charts.yml b/pages/_data/charts.yml
index 2d355e9ec..af4ad99af 100644
--- a/pages/_data/charts.yml
+++ b/pages/_data/charts.yml
@@ -266,3 +266,40 @@ combination:
- name: Sales
color: blue
data: [200, 130, 90, 240, 130, 220]
+
+revenue-bg:
+ type: area
+ days-labels-count: 30
+ sparkline: true
+ series:
+ - name: Profits
+ data: [37, 35, 44, 28, 36, 24, 65, 31, 37, 39, 62, 51, 35, 41, 35, 27, 93, 53, 61, 27, 54, 43, 19, 46, 39, 62, 51, 35, 41, 67]
+
+new-clients:
+ type: line
+ days-labels-count: 30
+ sparkline: true
+ dashed-history: true
+ series:
+ - name: May
+ color: blue
+ data: [37, 35, 44, 28, 36, 24, 65, 31, 37, 39, 62, 51, 35, 41, 35, 27, 93, 53, 61, 27, 54, 43, 4, 46, 39, 62, 51, 35, 41, 67]
+ - name: April
+ color: gray
+ data: [93, 54, 51, 24, 35, 35, 31, 67, 19, 43, 28, 36, 62, 61, 27, 39, 35, 41, 27, 35, 51, 46, 62, 37, 44, 53, 41, 65, 39, 37]
+
+active-users:
+ type: bar
+ days-labels-count: 30
+ sparkline: true
+ series:
+ - name: Profits
+ data: [37, 35, 44, 28, 36, 24, 65, 31, 37, 39, 62, 51, 35, 41, 35, 27, 93, 53, 61, 27, 54, 43, 19, 46, 39, 62, 51, 35, 41, 67]
+
+goals:
+ type: area
+ days-labels-count: 30
+ sparkline: true
+ series:
+ - name: Profits
+ data: [37, 35, 44, 28, 36, 24, 65, 31, 37, 39, 62, 51, 35, 41, 35, 27, 93, 53, 61, 27, 54, 43, 19, 46, 39, 62, 51, 35, 41, 67]
diff --git a/pages/_includes/js/charts.html b/pages/_includes/js/charts.html
index e58413525..cc4eb0595 100644
--- a/pages/_includes/js/charts.html
+++ b/pages/_includes/js/charts.html
@@ -1,69 +1,112 @@
{% removeemptylines %}
-{% assign data = site.data.charts[include.data] %}
+{% assign data = site.data.charts[include.chart-id] %}
+
{% if data %}
{% endif %}
diff --git a/pages/cards-stats.html b/pages/cards-stats.html
index 2d2f87547..12fc497f7 100644
--- a/pages/cards-stats.html
+++ b/pages/cards-stats.html
@@ -34,13 +34,14 @@ layout: default
-
$452,300
+
$4,300
24% {% include ui/icon.html icon="trending-up" class="icon-thin" %}
- {% include ui/sparkline.html data="4,3,6,5,4,5,4,6,7,6,5,7,8,7,8,9,8,9,10" type="line" %}
+
+ {% include js/charts.html id="card-chart-1" chart-id="revenue-bg" %}
@@ -58,7 +59,9 @@ layout: default
5% {% include ui/icon.html icon="trending-down" class="icon-thin" %}
- {% include ui/sparkline.html data="4,3,6,5,4,5,4,6,7,6,5,7,8,7,8,9,8,9,10" type="line" color="purple" %}
+
+
+ {% include js/charts.html id="chart-active-users" chart-id="new-clients" %}
@@ -72,12 +75,35 @@ layout: default
-
$452,300
+
2,986
4% {% include ui/icon.html icon="trending-up" class="icon-thin" %}
- {% include ui/sparkline.html data="4,3,6,5,4,5,4,6,7,6,5,7,8,7,8,9,8,9,10" type="bar" %}
+
+
+ {% include js/charts.html id="chart-active-users2" chart-id="active-users" %}
+
+
+
+
+
+
+
+
Goals
+
+ {% include parts/dropdown/days.html %}
+
+
+
+
298
+
+ 4% {% include ui/icon.html icon="trending-up" class="icon-thin" %}
+
+
+
+
+ {% include js/charts.html id="chart-goals" chart-id="goals" %}
diff --git a/pages/charts.html b/pages/charts.html
index 3b2f364a7..2d62ea48d 100644
--- a/pages/charts.html
+++ b/pages/charts.html
@@ -17,7 +17,7 @@ menu: charts
- {% include js/charts.html id=key data=data %}
+ {% include js/charts.html id=key chart-id=data %}
{% endif %}
{% endfor %}
diff --git a/scss/ui/_cards.scss b/scss/ui/_cards.scss
index 552e36ace..f3a403d38 100644
--- a/scss/ui/_cards.scss
+++ b/scss/ui/_cards.scss
@@ -192,3 +192,12 @@ Card code
background: transparent;
}
}
+
+/*
+Card chart
+ */
+.card-chart {
+ height: 3.5rem;
+ position: relative;
+ z-index: 1;
+}
diff --git a/scss/ui/_charts.scss b/scss/ui/_charts.scss
index 89ff2235d..7ec0cd59e 100644
--- a/scss/ui/_charts.scss
+++ b/scss/ui/_charts.scss
@@ -1,12 +1,16 @@
.chart {
display: block;
- min-height: 10rem !important;
+ min-height: 10rem;
text {
font-family: inherit;
}
}
+.chart-sm {
+ height: 2.5rem;
+}
+
.chart-placeholder {
background-image: linear-gradient(135deg, $border-color 25%, transparent 25%, transparent 50%, $border-color 50%, $border-color 75%, transparent 75%, transparent 100%);
background-size: 14.14px 14.14px;
@@ -43,3 +47,21 @@
height: 1rem;
}
}
+
+.apexcharts-tooltip {
+ background: $dark !important;
+ color: #fff;
+ border: 0 !important;
+ border-radius: 3px !important;
+ line-height: 1;
+}
+
+.apexcharts-tooltip-title {
+ background: transparent !important;
+ border: 0 !important;
+ margin: 0 !important;
+}
+
+.apexcharts-tooltip-series-group {
+ padding: 0 8px !important
+}