Allow disabling timeTicks

This commit is contained in:
Sebastien Guillemot 2019-08-16 01:58:10 +10:00 committed by GitHub
parent c4eca03dd8
commit a9641e50c6
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 conf['yaxis']['labelWidth'] = 40
if 'xaxis' not in conf: if 'xaxis' not in conf:
conf['xaxis'] = {} 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 # types
width = self.width width = self.width
height = self.height height = self.height