Merge pull request #323 from SebastienGllmt/patch-1

Allow disabling timeTicks
This commit is contained in:
Damien Elmes 2019-08-17 18:50:44 +10:00 committed by GitHub
commit 442df9d668
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -811,7 +811,10 @@ from cards where did in %s""" % self._limit())
conf['yaxis']['labelWidth'] = 40
if 'xaxis' not in conf:
conf['xaxis'] = {}
conf['timeTicks'] = {1: _("d"), 7: _("w"), 31: _("mo")}[xunit]
if xunit is None:
conf['timeTicks'] = False
else:
conf['timeTicks'] = {1: _("d"), 7: _("w"), 31: _("mo")}[xunit]
# types
width = self.width
height = self.height