Hard.
The only thing I can think of is to do this programmatically on the load in the diagram:
function(){
var legWidth = this.legend.maxItemWidth;
$.each(this.legend.title.element.children[0].children, function(i,j){
j = $(j);
var spanWidth = j.width();
j.attr('dx', (legWidth / 2) - (spanWidth / 2));
});
}
Updated fiddle .
source
share