Skip to content

Instantly share code, notes, and snippets.

@amix
Created December 16, 2015 02:23
Show Gist options
  • Save amix/c45e7f5e2ce40bdb373b to your computer and use it in GitHub Desktop.
Save amix/c45e7f5e2ce40bdb373b to your computer and use it in GitHub Desktop.
Generating bitmapist HTML data
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