diff --git a/branca/templates/color_scale.js b/branca/templates/color_scale.js index 5437813..fd43d3c 100644 --- a/branca/templates/color_scale.js +++ b/branca/templates/color_scale.js @@ -51,5 +51,5 @@ {{this.get_name()}}.g.call({{this.get_name()}}.xAxis).append("text") .attr("class", "caption") .attr("y", 21) - .text('{{ this.caption }}'); + .text({{ this.caption|tojson }}); {% endmacro %} \ No newline at end of file