Open jose-l-goncalves-alb opened 5 months ago
The issue you're encountering with the tooltip not appearing for the "totals" row in a table chart in Superset version 3.1.2 seems to be related to how the tooltip functionality is implemented for this specific part of the table. The tooltip functionality for individual cells is handled through the tooltipHtml
function, which generates the HTML content for tooltips. This function is part of the superset-frontend/packages/superset-ui-core/src/utils/tooltip.ts
file and is designed to work across different chart types, including table charts. However, it does not include specific functionality or configuration options to enable tooltips for the "totals" row.
The rendering of the "totals" row and its configuration is managed within the TableChart.tsx
file, under the getColumnConfigs
function, particularly in the Footer
property of the column configuration object. Modifications might be required here to ensure that the "totals" row is equipped with the necessary logic to display tooltips, similar to how individual cells handle mouseover events to show tooltips.
For addressing this issue, you might need to look into how the "totals" row is rendered differently from other cells and ensure that it has event listeners attached for displaying tooltips. This could involve updating the component responsible for the "totals" row to include tooltip functionality explicitly.
Additionally, the show_totals
control configuration found in the superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx
file adds a checkbox option labeled "Show totals" for displaying total aggregations of selected metrics. While this control enables the display of totals, it does not directly address the tooltip functionality for these totals, indicating that further customization might be necessary to achieve the desired tooltip behavior for the "totals" row.
This information should help you understand the potential cause of the tooltip issue with the "totals" row and guide you towards areas of the codebase that might require adjustments.
To continue the conversation, mention @dosu.
Bug description
I have a table chart with the "SHOW TOTALS" option enabled. The column values of line "Totals" does not show a tooltip (mouse over) with the value. The value is showed as 346M , but the tooltip does not apear to show the real/exact value. Nevertheless the metric values of cells table, as we can see (image below), have a tooltip associated (with the real/exact value).
How to reproduce the bug
Screenshots/recordings
Superset version
3.1.2
Python version
3.10
Node version
Not applicable
Browser
Chrome
Additional context
No response
Checklist