Closed cpsievert closed 3 years ago
cc @archmoj @nicolaskruchten
This is the expected behaviour in plotly.js v2.
Related PR: https://github.com/plotly/plotly.js/pull/5638
In order to drop text on bars, the textposition
could be set to "none" similar to other traces.
Correct. The rationale here was that setting text
should be enough to actually have text
appear, whereas previously it would only appear in the hoverlabel, controlled via hoverinfo
. The recommended thing to do now if you want stuff in the hoverlabel is to use hovertemplate
(possibly in conjunction with customdata
but that's optional ofc). In general this leads to smaller figures due to less repetition of values in text
.
Ah ok, that's fair. For some reason I thought the static export had different behavior but I goofed up versions, thanks!
Bumping plotly.js from 1.58.4 to 2.0.0 with latest release of orca (1.3.1) introduces a regression where the
text
attribute now appears onbar
traces: