Skip to content

hoverinfo: name field not included for HeatMap #1600

Closed
@jsundram

Description

@jsundram

Code

run inside of a jupyter notebook cell...

import numpy as np
import plotly  # plotly.__version__ == '2.0.6'
plotly.offline.init_notebook_mode()
import plotly.graph_objs as go

rows, cols = 3, 3 
data = np.random.rand(rows, cols)
py.iplot(go.Figure(
    data=[go.Heatmap(
        name="CUSTOM NAME",  # This SHOULD show up in the hoverinfo?
        x=range(rows + 1), 
        y=range(cols + 1), 
        z=data, 
        text=np.where(data < .5, '<.5', '>.5'),
        hoverinfo="name+text",  # Want to see "CUSTOM NAME"
        colorscale='Greens', reversescale=True, showscale=False
    )], 
    layout=go.Layout(
        title="Test", 
        xaxis=dict(title='X-Axis'),
        yaxis=dict(title='Y-Axis'),
    )
))

Result

it's a bit small, but you can see that the hovertext lacks the CUSTOM NAME text.

screenshot of result, showing tooltip without Name

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions