Thanks for the good explanation. This is actually not something that is native to the dimple, however you can achieve this by drawing with an identifier and replacing them after the fact:
You also need to make a couple of other settings, such as:
xAxis.title = 'name';
chart.draw(0, false);
xAxis.categoryFields = ['name'];
xAxis.shapes
.selectAll("text")
.text(function (d) {
var i;
for (i = 0; i < initialData.length; i += 1) {
if (initialData[i].id === d) {
return initialData[i].name;
}
}
});
http://jsbin.com/lezocu/4/edit?js,output
source
share