Better auto-handling of range

- Fix right-hand side margin, was off by 1
- Update axis domain when data update