However, the legend name (set in the name property) still appears, and is cropped. Is there any possible way to have a legend, but set it so the names of the legends are not displayed on the tooltip?
You can specify what info shows up in the hover tooltip using the scatter.hoverinfo property. Hereโs the docstring
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
as a string containing:
- Any combination of ['x', 'y', 'z', 'text', 'name'] joined with '+' characters
(e.g. 'x+y')
OR exactly one of ['all', 'none', 'skip'] (e.g. 'skip')
- A list or array of the above
The default is all, which shows everything. Youโll want to set it to something that doesnโt include name. Maybe 'x+y+text.
Alternatively, you can put whatever you like in that secondary area (including nothing) when using hovertemplate by wrapping it in <extra></extra> inside the hovertemplate text.