mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-10 22:24:19 +01:00
e468daac25
* WIP darkmode examples * Fix product css error, redo parts of blog * wip dashboard * updated rtl generated * fix up some examples, namely dashboard * jumbotron and sign-in fixes * more fixes * more * Fixes from code review * Remove duplicate `data-bs-target` in dashboard/index.html * Modify `blog-rtl/index.html` * Modify `dashboard-rtl/index.html` * Modify `carousel-rtl/index.html` * Keep JS on all pages for switcher * Remove Feather from dashboard examples --------- Co-authored-by: Julien Déramond <juderamond@gmail.com>
50 lines
884 B
JavaScript
50 lines
884 B
JavaScript
/* globals Chart:false */
|
|
|
|
(() => {
|
|
'use strict'
|
|
|
|
// 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: {
|
|
plugins: {
|
|
legend: {
|
|
display: false
|
|
},
|
|
tooltip: {
|
|
boxPadding: 3
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})()
|