1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 01:44:25 +04:00
Files
tabler/_includes/js/chart-emails.js
2018-02-19 20:17:04 +01:00

25 lines
622 B
JavaScript

require(['c3'], function (c3) {
var chart = c3.generate({
bindto: '#{{ include.id }}',
padding: {
bottom: 24,
top: 0
},
data: {
columns: [
['Open', 62],
['Bounce', 32],
['Unsubscribe', 9],
],
colors: {
Open: '{{ site.colors.blue }}',
Bounce: '{{ site.colors.red }}',
Unsubscribe: '{{ site.colors.yellow }}',
},
type : 'pie'
},
legend: {
position: 'bottom'
},
});
});