4 ms·
> but it is pretty easy to write and pretty easy to understand I wish I was as smart as you because D3 makes almost zero sense to me. I think there's something
by JungleGymSam 13y ago
> but it is pretty easy to write and pretty easy to understand
I wish I was as smart as you because D3 makes almost zero sense to me. I think there's something I'm missing that, once it clicks, will change things. <fingers crossed/>
- coldtea 13y agoThe fact that it's like a functional set of transformations, using closures? Perhaps you're thinking to imperatively. Read a simple D3 tutorial and things will click.
- ganeumann 13y agoIt's not a question of smartness. Take a working example of code and make it do something else. I'm sure I took some bar chart code from one of Bostock's examples and used that as a base. After a few hours of struggling with it (and with freakin' Javascript) and trial and error debugging, it became clear to me what d3 wanted me to do. Then it was easy.
- jamesjporter 13y agoIn my experience D3 is very much like that. Before you wrap your head around the way its data binding model works it seems totally arcane (esp. if you are like me coming from using other visualization tools, like matplotlib, where the hello world example is just "plot(x,y)"). Keep banging your head against the wall, it will eventually crumble and all will become clear.