Dark/Light now toggles graphs correctly.

This commit is contained in:
Herbert Wolverson 2024-07-20 09:13:17 -05:00
parent 4b05efe394
commit ec557dee78

View File

@ -2,11 +2,9 @@ import {isDarkMode} from "../helpers/dark_mode";
export class DashboardGraph {
constructor(id) {
let theme = "macarons";
if (isDarkMode()) theme = "dark";
this.id = id;
this.dom = document.getElementById(id);
this.chart = echarts.init(this.dom, theme);
this.chart = echarts.init(this.dom);
this.chart.showLoading();
this.option = {};
}