SAN-208 Better handle scaling on x axis
-initial version without frontend integration (not reading request params) and R integration (not passing script params)