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

X axis labels in tooltips #519

Closed
korneliuscode opened this issue Jun 9, 2022 · 3 comments
Closed

X axis labels in tooltips #519

korneliuscode opened this issue Jun 9, 2022 · 3 comments
Labels
enhancement New feature or request new feature priority 0 needs to be fixed asap.

Comments

@korneliuscode
Copy link

korneliuscode commented Jun 9, 2022

V1 had the X axis label in the tooltip as headline by default. V2 does not show that, so that the user always has to recheck the hovered X position.

It would be great to bring this back (optionally). I was not even able to add this by creating a custom template :(

@beto-rodriguez beto-rodriguez added enhancement New feature or request new feature labels Jul 15, 2022
@rteuteu55
Copy link

rteuteu55 commented Oct 14, 2022

@korneliuscode I think you are looking for the "TooltipLabelFormatter" to add for each of your Series

new ColumnSeries<DateTimePoint>
{
TooltipLabelFormatter = (chartPoint) =>
$"{new DateTime((long) chartPoint.SecondaryValue):MMMM dd}: {chartPoint.PrimaryValue}",

From this

@beto-rodriguez beto-rodriguez added the priority 1 might not be fixed in the next release of the library, but it will soon! label Mar 2, 2023
@korneliuscode
Copy link
Author

Thanks @rteuteu55, but not quite what I'm looking for.
I use a ColumnSeries and use "Labels" on the XAxis. Also there might be several Series for the same Label, so it would be great to have one unified headline above the tooltip like in the old version.
Here an image how it looked:
image

@beto-rodriguez
Copy link
Owner

This should be implemented in #1021

beto-rodriguez added a commit that referenced this issue May 24, 2023
@beto-rodriguez beto-rodriguez added priority 0 needs to be fixed asap. and removed priority 1 might not be fixed in the next release of the library, but it will soon! labels Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new feature priority 0 needs to be fixed asap.
Projects
None yet
Development

No branches or pull requests

3 participants