This demonstrates margin debt from FINRA and NYSE (in $ millions).

The data comes from here https://www.finra.org/investors/learn-to-invest/advanced-investing/margin-statistics

Data source: FINRA

Chart software: HighCharts