Skip to content

Showing values for bar plots in TableReport #1454

Description

@alamehm

Problem Description

Hello,
It would be great if we can see the value of a horizontal bar , or a vertical bar in the TableReport plot.
Currently the situation is the following:

  • For vertical bars, we cannot know the exact value of a bar (X and Y), especially when we have a single tick label in the axes, with large values .
  • For horizontal bars, we can see the percentage of each bar, but not the value as well.

Suggestion:

  • Showing more info about each bar on_hover , similar to what is used in other libraries like plotly.
  • This way the layout of TableReport will remain the same, but the info will be shown on_hover only

Below is an example of the current TableReport plots.

Image

Feature Description

  • Adding an on_hover event to the plots
  • This may open the doors to simplify the implementation of "tailored" plots in TableReport

Alternative Solutions

Using off-the-shelf solutions may solve it ex.plotly, but this will add a new dependency for skrub , and it is not straight forward to execute javascript inside templates (currently in skrub, the plots exist inside template tags)

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions