From 2dce9826d48c5eb3ecd2272a2b4a23e783d9c53a Mon Sep 17 00:00:00 2001 From: anson Date: Wed, 8 Jan 2025 16:32:33 -0800 Subject: [PATCH] update timeseries to allow hiding axis grid --- grafanalib/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grafanalib/core.py b/grafanalib/core.py index 8e7362eb..1108b187 100644 --- a/grafanalib/core.py +++ b/grafanalib/core.py @@ -2360,6 +2360,7 @@ class TimeSeries(Panel): valueDecimals = attr.ib(default=None, validator=attr.validators.optional(instance_of(int))) axisSoftMin = attr.ib(default=None, validator=attr.validators.optional(instance_of(int))) axisSoftMax = attr.ib(default=None, validator=attr.validators.optional(instance_of(int))) + axisGridShow = attr.ib(default=False, validator=instance_of(bool)) def to_json_data(self): return self.panel_json( @@ -2370,6 +2371,7 @@ def to_json_data(self): 'mode': self.colorMode }, 'custom': { + 'axisGridShow': self.axisGridShow, 'axisPlacement': self.axisPlacement, 'axisLabel': self.axisLabel, 'drawStyle': self.drawStyle,