This example shows how d3fc can be used to render dynamic data. The basic principle is that the chart render function should be an idempotent transformation of the data. As a result, if the data changes the entire render function is re-evaluated.
https://unpkg.com/d3@4.6.0
https://unpkg.com/d3fc@12.1.0