Chi square test

We have a table of x, y and error in y
x=1, 2
y=2, 3
Error in y=0.1, 0.1
I want to perform a chi square test
I want to plot a graph between different values of chi square with respect to different values of slope and different values of constant c

We got this answer from @moneta in the past. I guess it is still valid.