The space that I have allotted for the graph in my design is fairly small and if there are more than 5 categories in the graph the labels overlap each other. Is there a way to prevent this? Here is an example of what I'm running into: http://jsfiddle.net/bCYET/1/
var data = [
["Engineering",14],
["Communications",11],
["Business",9],
["Biology",5],
["Natural Sciences",2],
["Studio Art",2]
];
var options = {
series: {
bars: {
show: true,
barWidth: .6,
align: "center"
}
},
xaxis: {
mode: "categories",
tickLength: 0
}
}
$.plot('#barchart', [data], options);
UPDATE: I figured out that I can put the legend in a container outside of the graph which will work for me. Example here: http://jsfiddle.net/bCYET/2/