JSFiddle - React, Tailwind, and code Playground
by yonet3d
HTML
<script src="https://d3js.org/d3.v4.js"></script>
JavaScript
var p = d3.select("body").append('p').data([42, 34, 54, 65, 75]);
x = d3.scaleLinear()
.range([0, 10])
.domain([0, 75]);
p.enter().append('p')
.transition().duration(1050)
.text(function(d){ return 'hello ' + d;})
.transition().duration(1050)
.text(function(d){ return 'hello ' + x(d);})