Skip to content

Commit

Permalink
update timeseries to allow hiding axis grid
Browse files Browse the repository at this point in the history
  • Loading branch information
anson committed Jan 9, 2025
1 parent 3ed1a9c commit 2dce982
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grafanalib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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,
Expand Down

0 comments on commit 2dce982

Please sign in to comment.