Yes, that is possible: http://jsfiddle.net/8ya5x3xh/.
var t = new FacetChart({
container: document.getElementById("demo"),
data: {
preloaded: {
subvalues: [{
"value": 25,
"color": "#f00",
"name": "Red apples"
}, {
"value": 15,
"color": "yellow",
"name": "Yellow apples"
}, {
"value": 10,
"color": "rgb(0,255,0)",
"name": "Green apples"
}]
}
},
items: {
styleFunction: function(item, data) {
for (var i = 0; i < item.values.length; i++) {
var itemVal = item.values[i];
itemVal.style.fillColor = data.color;
}
}
}
});