code quality changes
This commit is contained in:
@@ -895,7 +895,7 @@
|
||||
x: {
|
||||
stacked: true,
|
||||
},
|
||||
y: getChartScaleOptions('y', {
|
||||
y: getChartScaleOptions("y", {
|
||||
stacked: true,
|
||||
beginAtZero: true,
|
||||
title: {
|
||||
@@ -1056,7 +1056,7 @@
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
scales: {
|
||||
y: getChartScaleOptions('y', {
|
||||
y: getChartScaleOptions("y", {
|
||||
beginAtZero: true,
|
||||
ticks: {
|
||||
callback: function (value) {
|
||||
@@ -1135,8 +1135,12 @@
|
||||
loadData();
|
||||
|
||||
// Listen for theme changes and update charts
|
||||
window.addEventListener('themechange', () => {
|
||||
const charts = [barChartInstance, durationChartInstance, avgDurationChartInstance].filter(c => c);
|
||||
window.addEventListener("themechange", () => {
|
||||
const charts = [
|
||||
barChartInstance,
|
||||
durationChartInstance,
|
||||
avgDurationChartInstance,
|
||||
].filter((c) => c);
|
||||
updateChartsForTheme(charts);
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user