I was drawing a finance chart with some margin set at the right side of the x-axis using Axis->setMargin(). I found out that when I use the zoom function, either click to zoom and drag to zoom, the new viewport is calculated incorrectly. I think the viewport may be calculated without accounting for the extra margin at the end, so it was off-centered. Please advise how to account for the margin change. Thanks.