In this section we can see how the html tags can be manputed with the help of d3.js.
In the project folder there are 3 files
In the head section of htmt file, link for the styles.css file is given. Similarly script tag is given which refers to the d3.min.js location where the d3 library is downloaded.
All the styling of the html tags for color, postion, attributes etc are coded in the styles.css file. The d3 related script actions and effects are coded in the bundle.js file. This file is given reference with the script tag inside the body of the html. Note : The reference script line shoud be the last statement of the body section.
We will play with the tags properties like colour font size etc with the help of functions using the d3. Let us have 2 buttons below
Important Aspects: