Conditionally Add Text to bubble chart


Is there a way to hide or disable hover based on value? Like hide hover/annotations when activated point value is less than 1.5?

Plotly doesn’t expose attributes to filter per-point graph features. You’ll have to build a custom text array yourself. Something like:

var y = [/* your y data */]
var text = y.map(v => v > 1.5 ? String(v) : '')

Plotly.newPlot('graph', [{
  mode: 'markers+text',
  y: y,
  text: text
}])

should be close to your desired behavior.