The S&P 500 finished 2022 after a difficult year for equities.

The sector breakdown shows how losses and relative performance varied across the market.