This commit is contained in:
@@ -87,6 +87,8 @@
|
||||
const track = css.getPropertyValue('--surface-2').trim() || '#2c2c2c';
|
||||
const tick = css.getPropertyValue('--text').trim() || '#f1f1f1';
|
||||
const grid = css.getPropertyValue('--border').trim() || '#333';
|
||||
const xpPercentage = /*[[${xpPercentage}]]*/ 0;
|
||||
const weeklyMinutes = /*[[${weekly.minutes}]]*/ [0, 0, 0, 0, 0, 0, 0];
|
||||
|
||||
// Kreisdiagramm
|
||||
const ctx = document.getElementById('progressCircle').getContext('2d');
|
||||
@@ -94,7 +96,7 @@
|
||||
type: 'doughnut',
|
||||
data: {
|
||||
datasets: [{
|
||||
data: [/*[[${xpPercentage}]]*/ 0, 100 - /*[[${xpPercentage}]]*/ 0],
|
||||
data: [xpPercentage, 100 - xpPercentage],
|
||||
backgroundColor: [accent, track],
|
||||
borderWidth: 0
|
||||
}]
|
||||
@@ -115,7 +117,7 @@
|
||||
labels: ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'],
|
||||
datasets: [{
|
||||
label: 'Spielzeit (Minuten)',
|
||||
data: /*[[${weekly.minutes}]]*/ [0, 0, 0, 0, 0, 0, 0],
|
||||
data: weeklyMinutes,
|
||||
backgroundColor: accent,
|
||||
borderRadius: 6
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user