I have the following which seems to be working just fine but requires modifying
I want to get rid of the yes no dont know appearing on the x axis, and also have different colors for the bars so that they appear as a legend. Is anyone able to help. Not sure what I am doing wrong. Thanks in advance Paul.
Code:
graph bar percent, /// over(yesnodontknow_response, label(labsize(small)) gap(0)) /// Grouped bars over(disease_transmission,label(angle(0))) /// Diseases on y-axis bargap(0.5) /// Space between groups bar(1, color(blue)) bar(2, color(red)) bar(3, color(green)) /// title("Farmers Responses on Zoonotic Disease Transmission") /// ytitle("Percentage of Farmers (%)") /// blabel(bar, format(%3.1f) size(small)) /// Percentages inside bars legend(order(1 "Yes" 2 "No" 3 "Don't Know") size(small))
Comment