'How to customize hover text of box plot trace in plotly.js?
I would like to create a box plot and customize the hover text. Creating the boxplot was successful. However, the goal is to have measurement title, min, q1, median, q3, max from top to bottom inside an overlay box (example, ignore numbers), and not the default behavior. Here is a link to a minimal example: stackblitz
I'm using angular-plotly and plotlyjs.
What I've tried:
- set hovertemplate variable to some text (seems not to work?)
- playing around with hoverinfo and hovertext (see ref)
- trying to use the hover event from angular-plotly, where I actually got the desired data, but I don't know how to access the "hover DOM element" to attach my string to (see stackblitz > app.component.ts > hoverTrigger())
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
