compute legend scales according candidate score