Skip to content

Commit 554261f

Browse files
committed
Add rendering options template block to pie chart
1 parent 258c3ba commit 554261f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎nvd3/templates/piechart.html‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@
6969
chart.color(mycolor);
7070
{% endif %}
7171

72+
{% block rendering_opts %}
73+
{% if chart.no_data_message %}
74+
chart.noData('{{chart.no_data_message}}')
75+
{% endif %}
76+
{% if chart.show_controls == False %}
77+
chart.showControls(false);
78+
{% endif %}
79+
{% endblock rendering_opts %}
80+
7281
{% block inject %}
7382
{{super()}}
7483
{% endblock inject %}

0 commit comments

Comments
 (0)