graph enhancement, legend order correction