TypeScript


Every chart in this course is written in TypeScript, a superset of JavaScript that adds static types. But what does that actually buy you, and why is it worth the extra syntax?

This lesson is a gentle introduction to TypeScript for dataviz: how to type your data, your component props, and your D3 scales so the compiler catches mistakes before your chart ever renders.

Members only
10 minutes read

πŸ’ͺ Let's practice!

Oh no! 😱

This lesson isn’t available just yet.

Take a look at the status badges next to each lesson in the sidebar to see when it’s coming out.

Thanks for your patience! πŸ™