How to show a leaderboard in right sidebar component?

The Discourse version itself doesn’t affect this, but it’s a likely indicator that the gamification plugin hasn’t been updated recently. This feature was added to that plugin over the past 10 days or so.