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