mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-04 16:24:22 +01:00
fe257823ec
* Pass docs js through Babel * Use ES6 in docs js * Only run babel on src files * Allow babel in Hugo * Update scripts.html * Inherit from the root .eslintrc.json * Use `Array.from` * Drop Babel from docs * Prefer template * replace IIFE with arrow functions Co-authored-by: XhmikosR <xhmikosr@gmail.com> Co-authored-by: GeoSot <geo.sotis@gmail.com>
54 lines
976 B
JavaScript
54 lines
976 B
JavaScript
/* globals Chart:false, feather:false */
|
|
|
|
(() => {
|
|
'use strict'
|
|
|
|
feather.replace({ 'aria-hidden': 'true' })
|
|
|
|
// Graphs
|
|
const ctx = document.getElementById('myChart')
|
|
// eslint-disable-next-line no-unused-vars
|
|
const myChart = new Chart(ctx, {
|
|
type: 'line',
|
|
data: {
|
|
labels: [
|
|
'Sunday',
|
|
'Monday',
|
|
'Tuesday',
|
|
'Wednesday',
|
|
'Thursday',
|
|
'Friday',
|
|
'Saturday'
|
|
],
|
|
datasets: [{
|
|
data: [
|
|
15339,
|
|
21345,
|
|
18483,
|
|
24003,
|
|
23489,
|
|
24092,
|
|
12034
|
|
],
|
|
lineTension: 0,
|
|
backgroundColor: 'transparent',
|
|
borderColor: '#007bff',
|
|
borderWidth: 4,
|
|
pointBackgroundColor: '#007bff'
|
|
}]
|
|
},
|
|
options: {
|
|
scales: {
|
|
yAxes: [{
|
|
ticks: {
|
|
beginAtZero: false
|
|
}
|
|
}]
|
|
},
|
|
legend: {
|
|
display: false
|
|
}
|
|
}
|
|
})
|
|
})()
|