Skip to content

Position the zoom-out button to bottom-right

This demo shows how we can use events to reposition XYChart’s zoom-out button to the lower-right corner of the chart plot area.

chart.plotContainer.onPrivate("height", function(height) {
chart.zoomOutButton.set("dy", height - 60);
});
Open in CodePen