I'm creating a graph of boxplots, and I'd like to have hover text (similar to what can be done in a plotly scatter plot) appear over an individual boxplot. In this specific case I'd like to display the number of points that went into the distribution, but I'm more interested in the general solution.
In the trace dictionary I've tried using the key "text" and a value that is a list of the text I want:
for (var i = 0; i < genes.length; i++) {
var d = distributions[i];
var g = genes[i];
var x = [];
var text = [];
for (var j = 0; j < d.length; j++) {
x.push(g);
text.push("N=" + d.length);
}
trace = {x: x, y:d, type: 'box', name: g, text:text};
data.push(trace);
}
Is there a keyword or mechanism that will allow me to display meta data when the user hovers over an individual boxplot? Thank you in advance.