Code Monkey home page Code Monkey logo

Comments (1)

dosubot avatar dosubot commented on September 23, 2024 2

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


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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.