Skip to content

Candlestick hoverinfo does not show the tooltip at the right place #5203

Closed
@Mark531

Description

@Mark531

Customizing hover text for Candlestick objects does not work correctly:

labels = ["<br>".join([f"{i}", f"Time: {candle.Time}", f"Open: {candle.Open}", f"High: {candle.High}", f"Low: {candle.Low}", f"Close: {candle.Close}"]) for i, candle in enumerate(data.itertuples())]

candle = go.Candlestick(x=data.Time,
		        open=data.Open,
		        high=data.High,
		        low=data.Low,
		        close=data.Close,
		        hoverinfo="text",
	  	        text=labels)

The customized tooltips appear at the right of the chart, not at the cursor position. I tried to change hoverinfo parameters to no avail. Please provide samples in the relevant section.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions