Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Mark531 opened this issue May 26, 2025 · 0 comments
Closed

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

Mark531 opened this issue May 26, 2025 · 0 comments

Comments

@Mark531
Copy link

Mark531 commented May 26, 2025

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

@Mark531 Mark531 changed the title Candlestick hoverinfo does not work Candlestick hoverinfo does not show the tooltip at the right place May 27, 2025
@Mark531 Mark531 closed this as completed May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant