Instead of changing the titleShape after drawing, you can also change the title directly before drawing.
To do so, simply assign the title property:
var chart = new dimple.chart(svg, data);
var x = chart.addCategoryAxis("x", ["Fruit", "Year"]);
x.title = "My New Title";