[#233] added the possibility to specify different axis value for ratio

The feature is backward compatible with the previous implementation, but
now allows to specify a json expression like `json:{"x":0.5,"y":1.0}` if
a different value is required for x or y axis