connecting d3.csv and reactive inputs... but slow and inefficient