1
0
mirror of https://github.com/tabler/tabler.git synced 2026-06-17 12:50:03 +04:00

js-charts

This commit is contained in:
codecalm
2018-02-27 23:20:13 +01:00
parent 13c53d1858
commit d12b5e4eb6
3 changed files with 20 additions and 4 deletions
+9 -4
View File
@@ -1,9 +1,13 @@
tasks:
name: Tasks
type: spline
type: line
categories: ['M', 'T', 'W', 'T', 'F', 'S', 'S', 'M', 'T', 'W', 'T', 'F', 'S', 'S', 'M', 'T', 'W']
groups: [1, 2, 3]
hide-points: true
fill: true
remove-padding: true
hide-tooltip: true
legend-position: 'top'
series:
- name: 'New'
color: blue
@@ -22,15 +26,16 @@ development-activity:
hide-tooltip: true
remove-padding: true
legend-position: 'top'
fill: true
series:
- name: 'Purchases'
color: blue-dark
color: blue
data: [30, 10, 10, 15, 0, 47, 65, 10]
- name: 'Plans'
color: blue
color: blue-light
data: [20, 25, 30, 35, 55, 42, 15, 25]
- name: 'Services'
color: blue-light
color: blue-lighter
data: [10, 30, 25, 30, 35, 15, 10, 15]
employment:
+7
View File
@@ -13,6 +13,13 @@ require(['c3', 'jquery'], function(c3, $) {
['data{{ forloop.index }}', {{ serie.data | join: ', '}}]{% unless forloop.last %},{% endunless %}{% endfor %}
],
{% if data.fill %}
classes: {
{% for serie in data.series %}
data{{ forloop.index }}: 'filled'{% unless forloop.last %},{% endunless %}{% endfor %}
},
{% endif %}
{% if data.show-labels %}
labels: true,
{% endif %}
@@ -184,6 +184,10 @@
opacity: 0.1;
}
.c3-target-filled .c3-area {
opacity: 1 !important;
}
/*-- Arc --*/
.c3-chart-arcs-title {
dominant-baseline: middle;