For reference, I have taken sample code from Mike Bostock’s Line Chart Example. At all places I have commented original code and replaced it with new code to convert given example with Floating Scale.