Skip to content

Commit 9de4d14

Browse files
authored
Fix Decimals type (#159)
1 parent 11b1efc commit 9de4d14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

panel.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ type (
133133
Bars bool `json:"bars"`
134134
DashLength *uint `json:"dashLength,omitempty"`
135135
Dashes *bool `json:"dashes,omitempty"`
136-
Decimals *uint `json:"decimals,omitempty"`
136+
Decimals *int `json:"decimals,omitempty"`
137137
Fill int `json:"fill"`
138138
// Grid grid `json:"grid"` obsoleted in 4.1 by xaxis and yaxis
139139

@@ -442,7 +442,7 @@ type (
442442
Type string `json:"type"`
443443
ColorMode *string `json:"colorMode,omitempty"`
444444
Colors *[]string `json:"colors,omitempty"`
445-
Decimals *uint `json:"decimals,omitempty"`
445+
Decimals *int `json:"decimals,omitempty"`
446446
Thresholds *[]string `json:"thresholds,omitempty"`
447447
Unit *string `json:"unit,omitempty"`
448448
MappingType int `json:"mappingType,omitempty"`

0 commit comments

Comments
 (0)