Skip to content

Commit

Permalink
Merge pull request #230 from jlevesy/jl/fix-json-converter
Browse files Browse the repository at this point in the history
Fix Gauge Converter
K-Phoen authored Oct 1, 2023
2 parents 257e83c + 85b1305 commit b376c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/converter/gauge.go
Original file line number Diff line number Diff line change
@@ -91,14 +91,14 @@ func (converter *JSON) convertGaugeValueType(panel sdk.Panel) string {

func (converter *JSON) convertGaugeOrientation(panel sdk.Panel) string {
switch panel.GaugePanel.Options.Orientation {
case "":
case "", "auto":
return "auto"
case "horizontal":
return "horizontal"
case "vertical":
return "vertical"
default:
converter.logger.Warn("unknown orientation", zap.String("orientation", panel.StatPanel.Options.Orientation))
converter.logger.Warn("unknown orientation", zap.String("orientation", panel.GaugePanel.Options.Orientation))
return "auto"
}
}

0 comments on commit b376c74

Please sign in to comment.