You can change the market of a chart by using ChartChange() to send the instrumentId of an FXB.Instrument. For example:
Framework.ChartChange({
mode: "active", // or "all", or "single" plus a .chartId value
command: "set-market",
instrumentId: "USD/JPY"
});