what is the meaning of n here? consider renaming this var to e.g. chartId or similar.