You can change the timeframe of a chart by using ChartChange() to send the new timeframe (in seconds). For example:
Framework.ChartChange({
mode: "active", // or "all", or "single" plus a .chartId value
command: "set-timeframe",
timeframe: 3600 // H1
});