style for svg line and last point are not getting picked up so move to d3 part