add rank for a scatter from nvd3