Control a chart from your code
The handle BC.chart returns moves the visible window and swaps the spec, keeping the zoom. Try the buttons:
const chart = BC.chart(element, spec);
chart.setView('x', [march1, march31]);
chart.update(nextSpec); // keeps the zoom The demo and its code