Forgot to git add viz_markup.html
This commit is contained in:
parent
e4a5f34f71
commit
f5e355a26f
|
|
@ -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 %}
|
||||
|
|
@ -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],
|
||||
])
|
||||
|
|
|
|||
Loading…
Reference in New Issue