replaced template tag with chart.as_html value