Line Graph - ArrayIndexOutOfBoundsException: 570

this is causing your ArrayIndexOutOfBoundsException?

Surround the lines with if (i+j < rawData.length) {…}

because of the i+=9 you will probably go over the end of the array