Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tooltip with content set to data should use x-axis title #9256

Open
NeilMacMullen opened this issue Feb 6, 2024 · 0 comments
Open

tooltip with content set to data should use x-axis title #9256

NeilMacMullen opened this issue Feb 6, 2024 · 0 comments

Comments

@NeilMacMullen
Copy link

Enhancement Description

When dynamically generating charts from data, it's convenient to be able to use

 "tooltip": {"content": "data"}

This creates a tooltip that contains the distinct values in the Color channel with a first item that is set to the name of the x-axis field. However, it would make more sense (imo) to use the name of the x-axis title.

For example, this spec

  • displays a tooltip like this where the x-axis is being shown as date (the underlying name of the field) rather than Year which is the annotation on the axis...
    image

If you don't want to break backwards compatibility then it would seem the syntax described in this related issue could be used to provide an additional annotation to turn on this behaviour

Checklist

  • [y] I checked for duplicate issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant