Forgot to git add viz_markup.html

This commit is contained in:
Maxime Beauchemin 2015-09-22 17:58:44 -07:00
parent e4a5f34f71
commit f5e355a26f
2 changed files with 17 additions and 0 deletions

View File

@ -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 %}

View File

@ -175,6 +175,13 @@ class MarkupViz(BaseViz):
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'
@ -390,4 +397,5 @@ viz_types = OrderedDict([
['pie', DistributionPieViz],
['bubble', BubbleViz],
['markup', MarkupViz],
['word_cloud', WordCloudViz],
])