O'Reilly logo

Learning Shiny by Hernán G. Resnizky

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

D3.js integration

This is naturally perfectly possible as D3 visualizations are HTML/JavaScript-based, and as it was already explained in this book, Shiny applications can support this type of content without any problems.

This section will have three main subsections:

  • What is D3.js?
  • networkD3
  • An introduction to htmlwidgets

What is D3?

D3.js is a JavaScript library designed by Mike Bostock. As with any other library in any other language (for example, R), D3 contains a set of functions written in JavaScript that are especially used for visualizations.

The name of this library is an acronym for Data-Driven Documents (three times the letter D) and its name is self-explanatory of the purpose of the library's functions, that is, to produce HTML documents ...

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