FarisaRahmaSari_E31222327/public/assets/pages/dashboard.js

50 lines
820 B
JavaScript

/*
Template Name: Veltrix - Responsive Bootstrap 4 Admin Dashboard
Author: Themesbrand
File: Dashboard init js
*/
//Line chart with area
new Chartist.Line('#chart-with-area', {
labels: [1, 2, 3, 4, 5, 6, 7, 8],
series: [
[5, 9, 7, 8, 5, 3, 5, 4]
]
}, {
low: 0,
showArea: true,
plugins: [
Chartist.plugins.tooltip()
]
});
//Animating a Donut with Svg.animate
var chart = new Chartist.Pie('#ct-donut', {
series: [54, 28, 17,],
labels: [1, 2, 3]
}, {
donut: true,
showLabel: false,
plugins: [
Chartist.plugins.tooltip()
]
});
//donut
$('.peity-donut').each(function () {
$(this).peity("donut", $(this).data());
});
// Peity line
$('.peity-line').each(function() {
$(this).peity("line", $(this).data());
});