O'Reilly logo

Learning d3.js Data Visualization - Second Edition by Swizec Teller, Ændrew Rininsland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, first we set up Webpack to produce a separate bundle for the server, then we wrote a simple webapp using Express and D3's Voronoi geom to find the nearest airport to a user. We then upgraded our server app to draw a map using D3 and Canvas, which we then outputted to the user as a PNG.

Wasn't that all really pretty weird but also kind of fun? Writing server-side code is like that, but it can also be really nicely cathartic after spending a bunch of time doing frontend development, which tends to be really finicky due to having to support so many devices. If nothing else, hopefully you've begun to see how processing on the backend can improve the performance of your projects by offloading some of the processing work from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required