D3.js is a tool in JavaScript that helps to handle information in HTML.
D3.js is simple to utilize.
How to Use D3.js?
To include D3.js on your webpage, simplyadd a link to the library.
<script src="//d3js.org/d3.v3.min.js"></script>
This code picks the body part of a webpage and adds a new paragraph containing the words "Hello World!" to it.
Scatter Plot
<!DOCTYPE html>
<html>
<script src="//d3js.org/d3.v4.js"></script>
<body>
<h2>D3.js is Easy to Use</h2>
<p>The code snippet below chooses the body element and adds a paragraph with the text "Hello World!":</p>
<script>
d3.select("body").append("p").text("Hello World!");
</script>
</body>
</html>