Thanks,
--Ed
4 Answers, 1 is accepted

If your data looks something like this:
[ {
"merchant"
:
"Acme"
,
"id"
:
"1"
,
"value"
: 3,
"userColor"
:
"#ffd600"
}, {
"merchant"
:
"Acme"
,
"id"
:
"2"
,
"value"
: 7,
"userColor"
:
"#ffd600"
}, {
"merchant"
:
"merch 2"
,
"id"
:
"3"
,
"value"
: 12,
"userColor"
:
"#ffd600"
}, {
"merchant"
:
"merch 3"
,
"id"
:
"4"
,
"value"
: 15,
"userColor"
:
"#ffd600"
}, ...
Then the chart will show similarly named categories with no problems:
Hello,
Using a categoryAxis.field will deal with duplicate category names, as shown by Erik. In this mode categories and series points will be listed in order.
If series.categoryField is in use then duplicate categories will be merged. Series points will be aggregated accordingly. This is mostly useful when the series are bound from different data sets that have categories in common.
Regards,T. Tsonev
Telerik

Hello,
Yes, you are correct that series.categoryField is in use and this is why the duplicate categories are merged based on category name. How can I specify unique categories based on a field other than what is displayed on the chart? I want to merge duplicate categories based on one field (let's say it is CategoryId) and display the categories on the chart using a second field (let's call it CategoryName).
Thanks,
--Ed
Hello Ed,
You can specify any field for the category binding. What appears on screen can be customized via templates:
categoryAxis: {
labels: {
tempate: "#= dataItem.myRealCategory #"
}
}
I hope this helps.
Regards,T. Tsonev
Telerik