Displaying N on boxplots

Hello all,

I’m using Plotly.js for creating box plots in an internal web app for data browsing. It works wonderfully and looks great, but …

The one consistent bit of feedback I get is that everyone wants to see the total number of points in each plot (the ‘N’ value). I’ve looked over the layout data structures and don’t see anyway to include the N values in the rendered plot. Has anyone else done this? How much custom code would be required to accomplish this?

Thanks in advance for any advice or suggestions,


I’d recommend adding a scatter trace with mode: 'text' for this task.

1 Like