Comments (1)
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.
Details
Sources
- Add "Total" values on hover tooltips whenever "GROUP BY" is used
- superset-frontend/plugins/plugin-chart-table/src/controlPanel.tsx
- superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx
- superset-frontend/plugins/legacy-preset-chart-nvd3/src/utils.js
- superset-frontend/packages/superset-ui-core/test/chart-composition/tooltip/TooltipTable.test.tsx
- superset-frontend/packages/superset-ui-core/src/utils/tooltip.ts
- superset-frontend/plugins/plugin-chart-pivot-table/src/react-pivottable/TableRenderers.jsx
- CHANGELOG/1.5.0.md
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from superset.
Related Issues (20)
- Filter Visibility and User-Specific Data in Shared Dashboards HOT 4
- Changing languages doesn't affect echarts charts. HOT 5
- logger `superset` in production mode writing logs to stderr confuses logging service in Google Cloud HOT 3
- New tooltip in 4.1.0+ is inappropriately combines series on mixed chart with two y-axes
- How to Disable All Tooltips in an Entire Dashboard? HOT 3
- dashboard and chart cache refresh unexpected behaviour HOT 4
- Placeholders and "select all" option of select filters are missing localization HOT 4
- Maximum update depth exceeded HOT 2
- Got an 'Unexpected error' message when a build a deck.gl Scatterplot chart HOT 5
- flask_log.current_user set to None in SQL_QUERY_MUTATOR while using SQLLab HOT 3
- SQL_QUERY_MUTATOR not called in SQLab with MUTATE_AFTER_SPLIT = True HOT 1
- query history gets a long time to fetch data HOT 12
- superset init value error HOT 2
- docker bug HOT 2
- Add Support for SQL Server Analysis Services (SSAS) Connection with MDX Query Execution, Dimension Management, Pivot Tables, and Domain User Login HOT 3
- Environment variable SUPERSET_DATABASE_URI HOT 6
- Superset 4.1.0RC2 - Dashboard embedding - now includes editor and last modified timestamp HOT 2
- Docker build it failing - Docker compose up is not working HOT 3
- `show summary` does not correctly apply all filters HOT 4
- Exports are brittle HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superset.