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 :
Illustration of this (click the switch button to see what I mean) : http://jsbin.com/bupamo/4/edit?js,output
Copyright Notice:Content Author:「ne8il」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/25774821/dimple-js-axis-labels