Skip to content

Commit

Permalink
Merge pull request #30 from mistercrunch/word_cloud
Browse files Browse the repository at this point in the history
Word cloud widget!
  • Loading branch information
mistercrunch committed Sep 23, 2015
2 parents a28d9d4 + 2cbc2e3 commit 591c90d
Show file tree
Hide file tree
Showing 5 changed files with 506 additions and 2 deletions.
16 changes: 15 additions & 1 deletion panoramix/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,27 @@ def form_factory(viz):
choices=[(s, s) for s in ['markdown', 'html']],
default="markdown",
description="Pick your favorite markup language"),
'rotation': SelectField(
"Rotation",
choices=[(s, s) for s in ['random', 'flat', 'square']],
default="random",
description="Rotation to apply to words in the cloud"),
'code': TextAreaField("Code", description="Put your code here"),
'size_from': TextField(
"Font Size From",
default="20",
description="Font size for the smallest value in the list"),
'size_to': TextField(
"Font Size To",
default="150",
description="Font size for the biggest value in the list"),
}
field_css_classes = {k: ['form-control'] for k in px_form_fields.keys()}
select2 = [
'viz_type', 'metrics', 'groupby',
'row_limit', 'rolling_type', 'series',
'entity', 'x', 'y', 'size']
'entity', 'x', 'y', 'size', 'rotation', 'metric', 'limit',
'markup_type',]
field_css_classes['since'] += ['select2_free_since']
field_css_classes['until'] += ['select2_free_until']
field_css_classes['granularity'] += ['select2_free_granularity']
Expand Down

0 comments on commit 591c90d

Please sign in to comment.