Skip to content

Cannot add arbitrary data to tooltips. #510

Description

@x-tabdeveloping

I suppose you already know about this, as it is mentioned in the documentation, but it is impossible to display arbitrary text in the tooltip upon hover (similar to Plotly). This would be a very useful feature, and it is a dealbreaker for me not to have it.

Here is a reproducible example:

import xy

data = {
    "x": [0,1,2,3],
    "y": [0,1,2,3],
    "article_title": ["this", "that", "foo", "bar"]
}

chart = xy.scatter_chart(
    xy.scatter(
        x="x", y="y", data=data,
    ),
    xy.tooltip(
        fields=["article_title"],
    ),
)

The article titles will not be shown upon hover, but rather only the "x" and "y" values.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions