Update sleep_pattern.py

i removed the 'autorange' attribute and reversed the axis manually
This commit is contained in:
fodi666 2021-08-29 11:48:31 +02:00 committed by Christopher Charbonneau Wells
parent 0e07fce976
commit de1a8f230a
1 changed files with 1 additions and 2 deletions

View File

@ -155,8 +155,7 @@ def sleep_pattern(instances):
'TIME_FORMAT')
layout_args['yaxis']['title'] = _('Time of day')
layout_args['yaxis']['range'] = [0, 24*60]
layout_args['yaxis']['autorange'] = 'reversed'
layout_args['yaxis']['range'] = [24*60, 0]
layout_args['yaxis']['tickmode'] = 'array'
layout_args['yaxis']['tickvals'] = list(ticks.keys())
layout_args['yaxis']['ticktext'] = list(ticks.values())