Zoomable Sunburst d3 chart with react

Here’s a working demo you can check out:

The main wrinkle here is that create-react-app doesn’t support the standard import.meta syntax, and you can’t add the necessary Babel plugin to support it without ejecting. So, the easiest thing to do is to edit the file attachments map to use an absolute path rather than a relative path, avoiding import.meta.

I imagine create-react-app will support import.meta at some point in the future, and this’ll be easier.

1 Like