First of all, whats the toy data. You should describe that and the expectation on it
Second, this toy data is absolutely meaningless for PCA. If your goal for the 1D projection is to be this line, pls actually generate data from the line, and then add noise in the orthogonal directions. Then PCA will recover the original line. This dataset makes no sense, sorry about that