mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graph: Switching to series mode should re-render graph (#19623)
This commit is contained in:
parent
3e603cd88a
commit
0016189f28
@ -1,8 +1,9 @@
|
|||||||
import { getValueFormats } from '@grafana/ui';
|
import { getValueFormats } from '@grafana/ui';
|
||||||
|
import { GraphCtrl } from './module';
|
||||||
|
|
||||||
export class AxesEditorCtrl {
|
export class AxesEditorCtrl {
|
||||||
panel: any;
|
panel: any;
|
||||||
panelCtrl: any;
|
panelCtrl: GraphCtrl;
|
||||||
unitFormats: any;
|
unitFormats: any;
|
||||||
logScales: any;
|
logScales: any;
|
||||||
xAxisModes: any;
|
xAxisModes: any;
|
||||||
@ -11,7 +12,7 @@ export class AxesEditorCtrl {
|
|||||||
|
|
||||||
/** @ngInject */
|
/** @ngInject */
|
||||||
constructor(private $scope: any) {
|
constructor(private $scope: any) {
|
||||||
this.panelCtrl = $scope.ctrl;
|
this.panelCtrl = $scope.ctrl as GraphCtrl;
|
||||||
this.panel = this.panelCtrl.panel;
|
this.panel = this.panelCtrl.panel;
|
||||||
this.$scope.ctrl = this;
|
this.$scope.ctrl = this;
|
||||||
|
|
||||||
@ -59,11 +60,11 @@ export class AxesEditorCtrl {
|
|||||||
|
|
||||||
xAxisModeChanged() {
|
xAxisModeChanged() {
|
||||||
this.panelCtrl.processor.setPanelDefaultsForNewXAxisMode();
|
this.panelCtrl.processor.setPanelDefaultsForNewXAxisMode();
|
||||||
this.panelCtrl.onDataReceived(this.panelCtrl.dataList);
|
this.panelCtrl.onDataFramesReceived(this.panelCtrl.dataList);
|
||||||
}
|
}
|
||||||
|
|
||||||
xAxisValueChanged() {
|
xAxisValueChanged() {
|
||||||
this.panelCtrl.onDataReceived(this.panelCtrl.dataList);
|
this.panelCtrl.onDataFramesReceived(this.panelCtrl.dataList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user