start of ggplot to svg versions for d3