How the χ² (chi-square) distribution is built
Draw values one at a time from the standard normal distribution, square them, and stack them up. The distribution of that running total is the χ² distribution. Pick a degrees of freedom (df) below and start drawing.
Draw a value from the standard normal distribution (mean 0, SD 1)
Squaring a Z always gives a value ≥ 0; stacking the squares gives the χ² statistic
Completed samples pile up and trace out the χ² distribution (solid line)
This is the real-data version of the Z's you've been squaring and stacking above.