The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Responsive D3 charts with the viewBox attribute

Responsive D3 charts with the viewBox attribute

11:15
Ensuring your charts are responsive is essential if you want them to work regardless of the user's device and screen size. In this lesson we'll learn how the viewBox attribute of SVG elements works, and apply that knowledge to make a future-proof D3 chart.
Watch this lesson now
Avatar
egghead.io

Ensuring your charts are responsive is essential if you want them to work regardless of the user's device and screen size. In this lesson we'll learn how the viewBox attribute of SVG elements works, and apply that knowledge to make a future-proof D3 chart.

Avatar
Will

Little typo: code appears to set 'perserveAspectRatio' not 'preserveAspectRatio'.

In reply to egghead.io
Avatar
Ben

Thanks, Will. We'll get that fixed.

In reply to Will
Avatar
itay-reduxio

Amazing course. Please add more stuff, I learned a lot of basics I thought I already knew

Avatar
itay-reduxio

Amazing course. Please add more stuff, I learned a lot of basics I thought I already knew

Avatar
Ben

Thanks, I'm glad you're enjoying it! Are there specific topics you'd like to see me cover?

In reply to itay-reduxio
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?