Not a bad idea to be fair but the way Vega works, this would be a huge amount of work and I'm still not sure about the aesthetics of it. The interactive version has tooltips so it becomes pretty clear when hovering.
A legend with 20 colours would be quite ugly and not that useful in my opinion. However, I should have said that year is encoded as colour to be 100% clear on the chart.
dbacciPBI OP t1_jcfb835 wrote
Reply to comment by IncomeStatementGuy in Bank Failures 2001-2023 (Adjusted for Inflation) [OC] by dbacciPBI
Lots lol! I publish all the code on my LinkedIn and Github so it is available to reuse and learn from.