is there is any way to change tooltip position and size and align text to center in tooltip ?
Hi Need help in customizing a tooltip in plotly.js. I want to make a tooltip like this

There is any way to customize a tooltip? Please help .thanks in advance
There's a little bit of customization you can do within plotly.js itself https://plotly.com/python/hover-text-and-formatting/#customizing-hover-label-appearance but more substantial customization requires breaking out of this, for example the Dash dcc.Tooltip component https://dash.plotly.com/dash-core-components/tooltip
This issue is mentioned on JS forum. the links you provided are for Python. as far as I investigated we cannot use dcc.Tooltip in JS. There should be a way to customize the tooltip fully, like providing a component to the plotly.
Hi - we are tidying up stale issues and PRs in Plotly's public repositories so that we can focus on things that are most important to our community. If this issue is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. (Please note that we will give priority to reports that include a short reproducible example.) If you'd like to submit a PR, we'd be happy to prioritize a review, and if it's a request for tech support, please post in our community forum. Thank you - @gvwilson