O'Reilly logo

Developing a D3.js Edge by Chris Viau, Andrew Thornton, Ger Hobbelt, Roland Dunn

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

4. Reusable Bar Chart

  • Examples of reusable bar charts using the reusable plugin API
  • A discussion of the customHover event and generation of axis
  • Explore binding data to the bar charts
  • Cover flexible methods of creating the charts 

So far we've discussed the plugin API and we've shown a basic "Hello World" example of a module. In this chapter we take an enhanced version of the bar chart that we showed in Chapter 1 ("Standard D3") and illustrate how we can re-write this using the plugin API.

At the end of this chapter we list how you can quickly amend this sample code to have three separate instances of the bar chart module all on the same page. ...

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