Gecko, did you find a solution? I’m looking to do the same thing but i can’t figure it out from the discussion. What if you want to highlight point x of all points in the plot regardless what trace they belong to?
I’m doing something similar, i pass an array with the colors of every point, i dont try to change at any moment but probably you can change the value of the array at any point and relayout it.
var colorsForThresholds = []; //fill it properly
var symbolForThresholds = [];
var trace = {
x: datesArray,
y: dataForPlot,
errors: [],
type: ‘scatter’,
name: ‘Alarms’,
mode: ‘lines+markers’,
marker: {
color: colorsForThresholds,
symbol: symbolForThresholds,
size: 5
}
};