dont append svg as there is a placeholder in the div already
extend opts using the current values in controls
add some styling so that the chart looks good!
remove appending svg
comment out setwd and set chart height to 500
don't append sag as placeholder already exists in div
modify hardcoded path to relative path