Skip to content

Commit

Permalink
Forgot to git add viz_markup.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Sep 23, 2015
1 parent e4a5f34 commit f5e355a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions panoramix/templates/panoramix/viz_markup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% macro viz_html(viz) %}
<div style="padding: 10px;">{{ viz.rendered()|safe }}</div>
{% endmacro %}

{% macro viz_js(viz) %}
{% endmacro %}

{% macro viz_css(viz) %}
{% endmacro %}
8 changes: 8 additions & 0 deletions panoramix/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ def rendered(self):
return code


class WordCloudViz(BaseViz):
verbose_name = "Word Cloud"
template = 'panoramix/viz_word_cloud.html'
form_fields = ['viz_type', 'group_by', 'metric']
js_files = ['d3.layout.cloud.js']


class HighchartsViz(BaseViz):
verbose_name = "Base Highcharts Viz"
template = 'panoramix/viz_highcharts.html'
Expand Down Expand Up @@ -390,4 +397,5 @@ class DistributionBarViz(DistributionPieViz):
['pie', DistributionPieViz],
['bubble', BubbleViz],
['markup', MarkupViz],
['word_cloud', WordCloudViz],
])

0 comments on commit f5e355a

Please sign in to comment.