"; // $parts[0]. $parts[1]. } fclose($file_handle); ?> Generating DataPoints in a loop - jsFiddle demo by anjalij