Created
December 16, 2015 02:23
-
-
Save amix/c45e7f5e2ce40bdb373b to your computer and use it in GitHub Desktop.
Generating bitmapist HTML data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bitmapist import cohort | |
dates_data = cohort.get_dates_data(select1='user:active', | |
select2='task:complete', | |
select3=None, | |
time_group='days') | |
html_data = cohort.render_html_data(dates_data, | |
time_group='days') | |
print html_data | |
# All the arguments should come from the FORM element (html_form) | |
# but to make things more clear I have filled them in directly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment