Skip to content

Commit

Permalink
Merge pull request #323 from SebastienGllmt/patch-1
Browse files Browse the repository at this point in the history
Allow disabling timeTicks
  • Loading branch information
dae authored Aug 17, 2019
2 parents 4dde7b1 + a9641e5 commit 442df9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anki/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,10 @@ def _graph(self, id, data, conf=None,
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
Expand Down

0 comments on commit 442df9d

Please sign in to comment.