Plotly.js: Bug in displaying the text defined in hovertemplate for Surface

Created on 21 Jul 2020  路  3Comments  路  Source: plotly/plotly.js

A hovertemplate for Surface defined from customdata consisting in an array of shape (m, n, 3), and defined as follows:

hover = 'theta: %{customdata[0]:.3f}'+\
        '<br>phi: %{customdata[1]: .3f}'+\
        '<br>power: %{customdata[2]:.3f}<extra></extra>'

is displayed correctly only for the default position of the camera.eye. If you rotate the sphere the text is displayed verbatim like in the definition of hovertemplate:

https://chart-studio.plotly.com/~empet/15737

The Python code is posted on forum: https://community.plotly.com/t/surface3d-with-customdata/42708/3.

I

bug

Most helpful comment

I noticed the problem even on initial camera position.

All 3 comments

@empet thanks very much for the report.

I noticed the problem even on initial camera position.

I also noticed that the data displayed was not in the right place. For example, if you make a surface3D and a scatter3D (with the same value), the datas are not corresponding each other.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicolaskruchten picture nicolaskruchten  路  3Comments

etpinard picture etpinard  路  3Comments

deecay picture deecay  路  3Comments

WG- picture WG-  路  3Comments

archmoj picture archmoj  路  3Comments