D3 line chart implementation. Fixed transition issue.