svir_viewer_sub.js - redraw the d3 chart when data is chaged by user