D3 in WordPress Pt 2 – A more direct approach?

In fiddling around with wp-d3 I found myself getting increasingly confused. Particularly when faced with code that looks like this. It wasn’t at all clear* how to translate it into something that would be understood by the plugin.

Once again I returned to searching and this time came across this tutorial, which used an iframe (I’ve come across these before in embedding tableau content in our wiki – they’re sort of a window to point to content somewhere else, I think?)

This approach to cut/paste/load seems infinitely more intuitive to me than the wp-d3 approach and seems to have delivered something reasonable. I’m sure there are 1001 great reasons not to take an iframe approach, but this seems to have worked…

 

Next steps are to get some real content into this and then start fiddling with the design…

*big caveat – neither should it be: I am not intending to be critical of it, just that it made no sense to me as a complete newcomer to this.

Friday Lunchtime Learning – First Time with D3

First in an occasional series, maybe?

I’ve long been of the opinion that anyone who’s going to want to be anywhere near employment in the analytics market is going to have to learn to code sooner rather than later.

No, don’t panic, I’ve not done that.

Continue reading “Friday Lunchtime Learning – First Time with D3”