Files
IWD2-03/INFO-3171 Data Visualization and UI/Notes/D3js/dataBinding.js
T
2026-10-07 15:17:53 -04:00

9 lines
216 B
JavaScript

var dataset = [100, 122];
d3.select('body')
.selectAll('p')
.data(dataset)
.text('Added Paragraph!')
.attr('style', 'color:red')
.exit()
.remove();