changed target to append svg for graphs to facilitate easier styling
refactored addMarker function and renderGraphBar function to take one object rather than multiple variables