Private
Public Access
1
0

improved activity chart

This commit is contained in:
Sander Roosendaal
2019-03-11 20:18:13 +01:00
parent 96277463a7
commit 9e06059126
3 changed files with 14 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
amqp==2.4.1 amqp==2.4.1
apipkg==1.5
arrow==0.13.1 arrow==0.13.1
atomicwrites==1.3.0 atomicwrites==1.3.0
attrs==18.2.0 attrs==18.2.0
@@ -7,15 +8,18 @@ beautifulsoup4==4.7.1
billiard==3.5.0.5 billiard==3.5.0.5
bleach==3.1.0 bleach==3.1.0
bokeh==1.0.4 bokeh==1.0.4
boto==2.49.0
braintree==3.51.0 braintree==3.51.0
celery==4.2.1 celery==4.2.1
certifi==2018.11.29 certifi==2018.11.29
chardet==3.0.4 chardet==3.0.4
Click==7.0 Click==7.0
colorama==0.4.1 colorama==0.4.1
colorclass==2.2.0
cookies==2.2.1 cookies==2.2.1
coreapi==2.3.3 coreapi==2.3.3
coreschema==0.0.4 coreschema==0.0.4
coverage==4.5.2
cycler==0.10.0 cycler==0.10.0
dask==1.1.1 dask==1.1.1
decorator==4.3.2 decorator==4.3.2
@@ -40,6 +44,7 @@ django-rest-framework==0.1.0
django-rest-swagger==2.2.0 django-rest-swagger==2.2.0
django-rq==1.3.0 django-rq==1.3.0
django-rq-dashboard==0.3.3 django-rq-dashboard==0.3.3
django-ses==0.8.10
django-shell-plus==1.1.7 django-shell-plus==1.1.7
django-social-share==1.3.2 django-social-share==1.3.2
django-suit==0.2.26 django-suit==0.2.26
@@ -49,6 +54,7 @@ djangorestframework==3.5.3
docopt==0.6.2 docopt==0.6.2
docutils==0.14 docutils==0.14
entrypoints==0.3 entrypoints==0.3
execnet==1.5.0
factory-boy==2.11.1 factory-boy==2.11.1
Faker==1.0.2 Faker==1.0.2
fitparse==1.0.1 fitparse==1.0.1
@@ -107,6 +113,7 @@ pbr==5.1.2
pexpect==4.6.0 pexpect==4.6.0
pickleshare==0.7.5 pickleshare==0.7.5
Pillow==5.4.1 Pillow==5.4.1
pip-upgrader==1.4.6
pluggy==0.9.0 pluggy==0.9.0
prometheus-client==0.6.0 prometheus-client==0.6.0
prompt-toolkit==2.0.9 prompt-toolkit==2.0.9
@@ -117,9 +124,12 @@ pyparsing==2.3.1
pyrsistent==0.14.11 pyrsistent==0.14.11
pytest==4.3.0 pytest==4.3.0
pytest-django==3.4.7 pytest-django==3.4.7
pytest-forked==1.0.2
pytest-runner==4.4 pytest-runner==4.4
pytest-sugar==0.9.2 pytest-sugar==0.9.2
pytest-xdist==1.26.1
python-dateutil==2.8.0 python-dateutil==2.8.0
python-memcached==1.59
python-twitter==3.5 python-twitter==3.5
pytz==2018.9 pytz==2018.9
pyviz-comms==0.7.0 pyviz-comms==0.7.0
@@ -130,7 +140,7 @@ ratelim==0.1.6
redis==3.2.0 redis==3.2.0
requests==2.21.0 requests==2.21.0
requests-oauthlib==1.2.0 requests-oauthlib==1.2.0
rowingdata==2.0.6 rowingdata==2.1.2
rowingphysics==0.5.0 rowingphysics==0.5.0
rq==0.13.0 rq==0.13.0
scipy==1.2.1 scipy==1.2.1
@@ -145,6 +155,7 @@ sqlparse==0.2.4
stravalib==0.10.2 stravalib==0.10.2
termcolor==1.1.0 termcolor==1.1.0
terminado==0.8.1 terminado==0.8.1
terminaltables==3.1.0
testpath==0.4.2 testpath==0.4.2
text-unidecode==1.2 text-unidecode==1.2
timezonefinder==3.4.2 timezonefinder==3.4.2

View File

@@ -316,8 +316,8 @@ def interactive_activitychart(workouts,startdate,enddate,stack='type'):
bars=table.to.bars(['date',stack],['duration']) bars=table.to.bars(['date',stack],['duration'])
bars.opts( bars.opts(
opts.Bars(color=hv.Cycle('Category10'), show_legend=True, stacked=True, opts.Bars(color=hv.Cycle('Category10'), show_legend=True, stacked=True,
tools=['hover'], width=600, xrotation=90,)) tools=['hover'], width=550, xrotation=45,padding=(0,(0,.1)),
# legend_position='bottom',show_frame=True)) legend_position='bottom',show_frame=True))
p = hv.render(bars) p = hv.render(bars)

Binary file not shown.