|
|
@@ -25,7 +25,7 @@ import ReactDOM from 'react-dom';
|
|
|
import { Legend, GraphLegendProps } from './Legend/Legend';
|
|
|
|
|
|
import { GraphCtrl } from './module';
|
|
|
-import { GrafanaThemeType, getValueFormat } from '@grafana/ui';
|
|
|
+import { getValueFormat } from '@grafana/ui';
|
|
|
import { provideTheme } from 'app/core/utils/ConfigProvider';
|
|
|
|
|
|
const LegendWithThemeProvider = provideTheme(Legend);
|
|
|
@@ -55,10 +55,7 @@ class GraphElement {
|
|
|
this.panelWidth = 0;
|
|
|
this.eventManager = new EventManager(this.ctrl);
|
|
|
this.thresholdManager = new ThresholdManager(this.ctrl);
|
|
|
- this.timeRegionManager = new TimeRegionManager(
|
|
|
- this.ctrl,
|
|
|
- config.bootData.user.lightTheme ? GrafanaThemeType.Light : GrafanaThemeType.Dark
|
|
|
- );
|
|
|
+ this.timeRegionManager = new TimeRegionManager(this.ctrl, config.theme.type);
|
|
|
this.tooltip = new GraphTooltip(this.elem, this.ctrl.dashboard, this.scope, () => {
|
|
|
return this.sortedSeries;
|
|
|
});
|