Chart shows Democrats are more confident in the nation’s future than Republicans, though the gap is narrower than in 2021