Thanks so much. I was doing some more research on this and I think it has something to do with using for...in instead of bind...to.
Below is the capabilities JSON
{
"dataRoles": [
{
"displayName": "Bar Grouping",
"name": "myCategory",
"kind": "Grouping"
},
{
"displayName": "Bar Measurement",
"name": "myMeasure",
"kind": "Measure"
}
],
"dataViewMappings": [
{
"conditions": [
{
"myCategory": {
"max": 1
},
"myMeasure": {
"max": 2
}
}
],
"categorical": {
"categories": {
"for": {
"in": "myCategory"
},
"dataReductionAlgorithm": {
"top": {}
}
},
"values": {
"select": [
{
"bind": {
"to": "myMeasure"
}
}
]
}
}
}
],
"objects": {
"barchartProperties": {
"displayName": "Barchart Properties",
"properties": {
"sortBySize": {
"displayName": "Sort by Size",
"type": {
"bool": true
}
},
"barColor": {
"displayName": "Bar Color",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"xAxisFontSize": {
"displayName": "X Axis Font Size",
"type": {
"integer": true
}
},
"yAxisFontSize": {
"displayName": "Y Axis Font Size",
"type": {
"integer": true
}
}
}
}
}
}