You have to manage it using JS, i managed it in some Django HTML views (using the new Web framework)
Example code:
var chart = mvc.Components.getInstance('d3chart1');
chart.settings.set("setup", function(chart){
chart.color(d3.scale.category10().range());
chart.staggerLabels(true);
chart.showValues(true);
});