I'm working with the following code snippet:
... normen is my json object ....
$.each(normen, function(item) {
chartX.push(this.feed_day)
chartY.push(this.weight)
});
createChart(chartX,chartY)
});
function createChart(chartX,chartY){
var chart = bb.generate({
bindto: "#contentarea",
data: {
columns: columns:[chartX,chartY],
names:{
chartX: 'label for X',
chartY: "label for Y"
}
},
title: {
text: "Blabla"
},
});
}
All I want to do is add some custom labels. What is the best way to achieve this? I've tried various options but so far I only see 43
and null
as legend labels.