You can use ChartChange() to add a bar highlight to a chart. A highlight changes the colour of the candle which spans/contains a specified date.
The
// Change the colour of the candle which contains/spans the specified date
Framework.ChartChange({
mode: "active", // or "all", or "single" plus a .chartId value
command: "create-bar-highlight",
highlight: {
date: 1778072400000,
color: "red"
}
});
Note: unlike drawings and event markers, the optional callback from