To turn off the grade distribution a teacher will need to go to Course -> Settings and scroll down to "More Options."

Then put a check next to "Hide grade distribution graphs from students"