Skip to content

How to define a custom on_hover behavior for a BarChart - is it really needed to re-implement all of PlotItem? #106

Open
@markusdd

Description

@markusdd

Currently it only seems possible to provide a custom String to content_formatter to change
what is written when hovering over a bar. But depending on the graph this is often not very well readable.

I'd much rather display a small Box similar to the legend to give more info about the current Bar in the BarChart.

I'm kind of pulling my hair out on this one and have not found a proper solution.

EDIT: A special problem seems to be that I cannot even re-implement PlotItem because for base and mut_base methods to be implemented, I need to use the Type PlotItemBase whcih is inaccesible as the items module is private. I am really stuck here :(
And that is even more frustrating because they are just returning the same as the original implementation anyway. I don't want to do anything special there...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions