Move chartDivN generation into readFile().