I have a dataset where each row has an id
and a name
property. The id
property is the unique key, the name
s may be duplicated. I want the name to be shown on the category axis of a Dimple.js chart.
If I use "name" as the argument to chart.addCategoryAxis
, the correct labels are drawn, but users with duplicate names are grouped into single bars.
If I use "id" as the argument, the bars are separated but with the wrong labels.
Is there a "Dimple" way to achieve this, or should I just either :
- Write a manually axis formatter to convert from id to name, like here : https://github.com/PMSI-AlignAlytics/dimple/issues/99
- Access the axis.shapes afterwards and change them?
Illustration of this (click the switch button to see what I mean) : http://jsbin.com/bupamo/4/edit?js,output