{# This template adds attributes unique to pieChart #} {% extends "content.html" %} {% block body %} data_{{ chart.name }}={{ chart.series_js|striptags }}; nv.addGraph(function() { var chart = nv.models.{{ chart.model }}(){% if chart.use_interactive_guideline %}.useInteractiveGuideline(true){% endif %}; chart.margin({top: {{ chart.margin_top }}, right: {{ chart.margin_right }}, bottom: {{ chart.margin_bottom }}, left: {{ chart.margin_left }}}); var datum = data_{{ chart.name }}[0].values; {% if not chart.color_list and chart.color_category %} chart.color(d3.scale.{{ chart.color_category }}().range()); {% endif %} chart.tooltip.contentGenerator(function(d, elem) { var x = String(d.data.label); var y = String(d.data.value); tooltip_str = '