@@ -171,6 +171,7 @@ type PanelOptions struct {
171171 NoValue string
172172 Min * float64
173173 Max * float64
174+ FieldMinMax bool
174175 MaxDataPoints * float64
175176 Query []Query
176177 Threshold * ThresholdOptions
@@ -259,6 +260,7 @@ func NewStatPanel(options *StatPanelOptions) *Panel {
259260 Height (options .Height ).
260261 Unit (options .Unit ).
261262 NoValue (options .NoValue ).
263+ FieldMinMax (options .FieldMinMax ).
262264 Text (common .NewVizTextDisplayOptionsBuilder ().TitleSize (10 ).ValueSize (18 )).
263265 ColorMode (options .ColorMode ).
264266 GraphMode (options .GraphMode ).
@@ -376,6 +378,7 @@ func NewTimeSeriesPanel(options *TimeSeriesPanelOptions) *Panel {
376378 Height (options .Height ).
377379 Unit (options .Unit ).
378380 NoValue (options .NoValue ).
381+ FieldMinMax (options .FieldMinMax ).
379382 LineWidth (* options .LineWidth ).
380383 FillOpacity (options .FillOpacity ).
381384 Legend (newLegend (options .LegendOptions )).
@@ -489,6 +492,7 @@ func NewBarGaugePanel(options *BarGaugePanelOptions) *Panel {
489492 NoValue (options .NoValue ).
490493 Height (options .Height ).
491494 Unit (options .Unit ).
495+ FieldMinMax (options .FieldMinMax ).
492496 ReduceOptions (
493497 common .NewReduceDataOptionsBuilder ().
494498 Calcs ([]string {"lastNotNull" }).Values (options .ShowAllValues ),
@@ -564,6 +568,7 @@ func NewGaugePanel(options *GaugePanelOptions) *Panel {
564568 NoValue (options .NoValue ).
565569 Height (options .Height ).
566570 Unit (options .Unit ).
571+ FieldMinMax (options .FieldMinMax ).
567572 ReduceOptions (
568573 common .NewReduceDataOptionsBuilder ().
569574 Calcs ([]string {"lastNotNull" }).Values (options .ShowAllValues ),
@@ -651,6 +656,7 @@ func NewTablePanel(options *TablePanelOptions) *Panel {
651656 Height (options .Height ).
652657 Unit (options .Unit ).
653658 NoValue (options .NoValue ).
659+ FieldMinMax (options .FieldMinMax ).
654660 Filterable (options .Filterable )
655661
656662 if options .Interval != "" {
@@ -763,6 +769,7 @@ func NewLogPanel(options *LogPanelOptions) *Panel {
763769 Span (options .Span ).
764770 Height (options .Height ).
765771 NoValue (options .NoValue ).
772+ FieldMinMax (options .FieldMinMax ).
766773 ShowTime (options .ShowTime ).
767774 PrettifyLogMessage (options .PrettifyJSON ).
768775 EnableLogDetails (* options .EnableLogDetails ).
@@ -833,7 +840,8 @@ func NewHeatmapPanel(options *HeatmapPanelOptions) *Panel {
833840 Span (options .Span ).
834841 Height (options .Height ).
835842 Unit (options .Unit ).
836- NoValue (options .NoValue )
843+ NoValue (options .NoValue ).
844+ FieldMinMax (options .FieldMinMax )
837845
838846 if options .Interval != "" {
839847 newPanel .Interval (options .Interval )
@@ -969,6 +977,7 @@ func NewHistogramPanel(options *HistogramPanelOptions) *Panel {
969977 Height (options .Height ).
970978 Unit (options .Unit ).
971979 NoValue (options .NoValue ).
980+ FieldMinMax (options .FieldMinMax ).
972981 ScaleDistribution (common .NewScaleDistributionConfigBuilder ().
973982 Type (options .ScaleDistribution ),
974983 ).
0 commit comments