You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dashtable with pagination: tooltips appear in wrong place #1848
When using dashtable pagination together with tooltips, then the tooltips only appear correctly on page one. On all other pages, the tooltip appears in the top left of the table (see screenshot).
This bug might be connected to row_index more generally. We found that style_data_conditional using row_index to specify the row of a table doesn't work on pages 2+ either.
Expected behavior
Tooltips should appear at the correct position.n all pages of a paginated dash-tables.
There is a pull request related to this issue in plotly/dash-table repo but it wasn't merged. Could it be copied to current repository? plotly/dash-table#906
Looks like plotly/dash-table#906 has some open items but should be relatively straightforward to bring it over here and finish it - if anyone would like to give it a shot we'd be happy to help get it finished 😄
changed the title [-][BUG] dashtable with pagination: tooltips appear in wrong place[/-][+]dashtable with pagination: tooltips appear in wrong place[/+]on Aug 13, 2024
For those seeking a quick workaround. It is possible to insert html into the dash cell content (and include the appropriate css). This can make a tooltip appear when hovering on the cell content. It works fine with paginated dash tables.
Activity
adlerberg0 commentedon Feb 8, 2022
There is a pull request related to this issue in plotly/dash-table repo but it wasn't merged. Could it be copied to current repository?
plotly/dash-table#906
alexcjohnson commentedon Feb 10, 2022
Looks like plotly/dash-table#906 has some open items but should be relatively straightforward to bring it over here and finish it - if anyone would like to give it a shot we'd be happy to help get it finished 😄
tlinnet commentedon Feb 21, 2022
I also see this problem. The many first items in page 1 is working.
But when scrolling down, it gets more weird?
kenshima4 commentedon Sep 13, 2023
Hi can I have a crack at finishing this?
[-][BUG] dashtable with pagination: tooltips appear in wrong place[/-][+]dashtable with pagination: tooltips appear in wrong place[/+]sakshamgumber commentedon Sep 17, 2024
is there issue still there to fix it
nielsvth commentedon Jan 6, 2025
Any progress on this topic? This creates a table that replicates the issue.
On page 2 of the paginated table, the tooltip positioning is wrong.
`import dash
import dash_table
from dash import html
data = [
{"ID": i, "Name": f"Item {i}", "Description": f"This is item {i}."}
for i in range(1, 11)
]
app = dash.Dash(name)
app.layout = html.Div([
dash_table.DataTable(
id="simple-table",
columns=[
{"name": "ID", "id": "ID"},
{"name": "Name", "id": "Name"},
{"name": "Description", "id": "Description"}
],
data=data, # All data
page_size=5, # Page size is 5
page_current=0, # Initial page is the first one
tooltip_data = [
{
'Description': {
'value': row['Description'],
'type': 'markdown'
}
} for row in data
],
tooltip_delay=0,
tooltip_duration=None,
),
])
if name == "main":
app.run_server(debug=False)`
nielsvth commentedon Jan 7, 2025
For those seeking a quick workaround. It is possible to insert html into the dash cell content (and include the appropriate css). This can make a tooltip appear when hovering on the cell content. It works fine with paginated dash tables.
kenshima4 commentedon Jan 7, 2025
@nielsvth I thought this was closed, @sakshamgumber if you'd like to have a crack at it, please go ahead, I'm working on the layout issue.
AnnMarieW commentedon Sep 21, 2026
Since this was reported,
DataTablehas been deprecated and we recommend using Dash AG GridThis example demonstrates that the tooltip is in the correct position on all pages when using Dash AG Grid.
More information on Tooltips in the dash docs:
https://dash.plotly.com/dash-ag-grid/tooltips
If you have questions about migrating to Dash AG Grid, please ask on the Plotly Community Forum.