mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix off by one in x axis
This commit is contained in:
parent
d877fad653
commit
e88bb29adf
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ group by day order by day""" % (self._limit(), lim),
|
|||
xaxis=dict(tickDecimals=0, max=0.5),
|
||||
yaxes=[dict(), dict(position="right")])
|
||||
if days is not None:
|
||||
conf['xaxis']['min'] = -days-0.5
|
||||
conf['xaxis']['min'] = -days+0.5
|
||||
def plot(id, data, ylabel, ylabel2):
|
||||
return self._graph(
|
||||
id, data=data, conf=conf, ylabel=ylabel, ylabel2=ylabel2)
|
||||
|
|
Loading…
Reference in a new issue