Fixed padding calculation when specified in percents
Extracted part of visualization logic to d3.scale.cartesian component
Implemented invert function on cartesian scale