Javascript is a scripting language that is embedded in the HTML to make web pages interactive and dynamics.
Scalable Vector Graphics (SVG) is an image format that is necessary for javascript to bind with its elements, and make them interactive.
The structure of an HTML source code is as follows:
<!DOCTYPE html>
<html>
<head>
<title>This is a title</title>
<style>Styling elements in the html document</style>
<script>"javascript for adding dynamics to html"</script>
</head>
<body>
<p>Hello world!</p>
<script>"also add interactivity and dynamics to the visuals that will appear" </script>
</body>
</html>
Here is the vaccine graphic from earlier in the course: http://www.sciencemag.org/news/2017/04/here-s-visual-proof-why-vaccines-do-more-good-harm
Here is another: http://www.nytimes.com/newsgraphics/2014/01/05/poverty-map/index.html
One more interactive plot that doesn’t use d3.js: https://www.nytimes.com/interactive/2017/04/02/technology/uber-drivers-psychological-tricks.html
Both methods require the use of javascript to create these customized plots.
Here’s a gallery of different plots that use the D3.js library: https://github.com/d3/d3/wiki/Gallery
https://www.w3schools.com/js/ (Javascript tutorials)
https://www.w3schools.com/html/default.asp (HTML tutorials)
https://www.rdocumentation.org/collaborators/name/Mike%20Bostock (Mike Bostock’s packages)
https://github.com/d3 (D3 github repositories) https://github.com/d3/d3/wiki/Tutorials (D3.js tutorials)