finishing highcharts to d3 switch