api: allow querying chart range

chart.axis.min() max() range() function call without any parameter will return current values.