I have a created a simple donut chart with flot. However, if I use the default settings the labels are not displayed (even if I specify "show: true"). Only when I hide the legend, the labels are displayed but then the chart itself disappears. Am I missing something or is this a bug in the flot library?
This is my code:
var data = [
{label: "A", data: 373, color: "red"},
{label: "B", data: 84, color: "blue"},
{label: "C", data: 73, color: "green"}
];
$.plot("#chart", data, {
series: {
pie: {
innerRadius: 0.75,
show: true,
}
},
label: {
show: true,
},
legend: {
show: false
}
});