|
@@ -5,7 +5,7 @@ import React, { PureComponent } from 'react';
|
|
|
import { config } from 'app/core/config';
|
|
import { config } from 'app/core/config';
|
|
|
|
|
|
|
|
// Components
|
|
// Components
|
|
|
-import { Gauge, FieldDisplay, getFieldDisplayValues } from '@grafana/ui';
|
|
|
|
|
|
|
+import { Gauge, FieldDisplay, getFieldDisplayValues, VizOrientation } from '@grafana/ui';
|
|
|
|
|
|
|
|
// Types
|
|
// Types
|
|
|
import { GaugeOptions } from './types';
|
|
import { GaugeOptions } from './types';
|
|
@@ -43,7 +43,7 @@ export class GaugePanel extends PureComponent<PanelProps<GaugeOptions>> {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
- const { height, width, options, data, renderCounter } = this.props;
|
|
|
|
|
|
|
+ const { height, width, data, renderCounter } = this.props;
|
|
|
return (
|
|
return (
|
|
|
<VizRepeater
|
|
<VizRepeater
|
|
|
getValues={this.getValues}
|
|
getValues={this.getValues}
|
|
@@ -52,7 +52,7 @@ export class GaugePanel extends PureComponent<PanelProps<GaugeOptions>> {
|
|
|
height={height}
|
|
height={height}
|
|
|
source={data}
|
|
source={data}
|
|
|
renderCounter={renderCounter}
|
|
renderCounter={renderCounter}
|
|
|
- orientation={options.orientation}
|
|
|
|
|
|
|
+ orientation={VizOrientation.Auto}
|
|
|
/>
|
|
/>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|