score:2

Accepted answer

Problem: When you update the new data, on select change. You are not updating the x1 domain.

Adding snippet below to the update function (post you make your copy object from keys), will fix this problem.

x1.domain(copy.map(c=>c+input))

working fiddle here


Related Query