Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hoverinfo: name field not included for HeatMap #1600

Copy link
Copy link
Closed
@jsundram

Description

@jsundram
Issue body actions

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 brokensomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.