add attribute `boxtext` to boxplots
See original GitHub issueWould be nice if we could change the 5 (6 if boxmean=TRUE
) hoverinfo texts of Plotly’s boxplots to custom values.
https://github.com/plotly/plotly.js/pull/2094 seems to introduce the text
attribute for the individual data points in boxplots. An additional boxtext
attribute for the aggregate summary statistics (min, lower quartile, median, mean, upper quartile, max) hoverinfo texts would be awesome.
This seems to become even more relevant when other whisker options get intoduced as proposed in https://github.com/plotly/plotly.js/issues/277. To give viewers an idea of what the values of the boxplot actually depict, the boxtext
attribute could then be set to an adequately explanatory character vector.
Might be related: https://github.com/plotly/plotly.js/issues/1642
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (6 by maintainers)
Top GitHub Comments
for the boxplot using plot_ly, Is it possible to have a “text” hoverinfo similar to what we can define for type=“bar” ? For example, I just want to show the median, Q1, and Q3 in a text box when I hover over a box with some additional information that I can write in that box. For example, see the figure below:
I think you’re looking for more box-centric
hoverinfo
flags, not a new attribute.For example,
hoverinfo: 'x+q1+mean'
would only show the x, q1 and mean hover labels.