api: allow querying chart range
Fix conflict
Merge branch 'santazhang-api-query-axis-range'