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

[Feature Request] Customizable Tooltip #13

Open
c3p0vsr2d2 opened this issue Aug 3, 2024 · 11 comments
Open

[Feature Request] Customizable Tooltip #13

c3p0vsr2d2 opened this issue Aug 3, 2024 · 11 comments

Comments

@c3p0vsr2d2
Copy link

Checklist

  • [X ] I am running the latest version of the card
  • [X ] I checked if there isn't another feature request opened with the same request
  • [ X] I checked that the feature is not already available in the dev branch

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
With a lot of sensors, the chart becomes very crowded with the tooltips being displayer

Describe the solution you'd like
A clear and concise description of what you want to happen.
Have an option to disable the tooltip shown on the chart all the time

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
None

Additional context
Add any other context or screenshots about the feature request here.
None

@mentalilll
Copy link
Owner

Would it help to show only name, and show the other information after hover?

@c3p0vsr2d2
Copy link
Author

thanks @mentalilll - appreciate the quick response.
Yes, showing only name (and more details on hover) would also be good enough for now as well (if there is an existing way to configure this, please let me know).

However, I suspect that with a lot of sensors with similar temp and humidity, the chart will still be crowded, and there will be overlaps between the name-only tooltips. As a longer term solution, zooming in to the chart might also be useful - or there may be better solutions.

regardless, thanks for ha-vpd-chart!

@mentalilll
Copy link
Owner

image

Zoom like this? Already Possible :P. enable_zoom: true

but i also implement the hover tooltip, =)

@c3p0vsr2d2
Copy link
Author

Thanks for pointing me to the zoom option, and TIA for the tooltip changes !

One more feature request - can the font size be maintained with zoom? :P

@mentalilll
Copy link
Owner

done with new release :)

@c3p0vsr2d2
Copy link
Author

@mentalilll many thanks for considering these features, and the associated code updates.

However, I tried the 1.4.9 release, but I am not able to see the two features discussed in this thread:

  1. Showing only the name on the chart till hover
  2. Zooming into chart without zooming the tooltip text

Could you please let me know if there are specific options to get the above two to work?

@mentalilll
Copy link
Owner

Hey,
for

  1. enable_show_always_informations to false
  2. zooming is currently bound to text size, so if you scroll in, text gets smaller

do you need an option to disable 2?

@mentalilll mentalilll reopened this Aug 13, 2024
@c3p0vsr2d2
Copy link
Author

@mentalilll this is unfortunately not working for me - I do not see enable_show_always_informations: false being recognized. Setting it to true does not change anything. Zoom text gets bigger when I zoom in as well.

I am on 1.4.9, and checked this after redownloading it, and also after reinstalling it. If there is anything else I should be doing, please let me know.

@mentalilll
Copy link
Owner

It should work now like intended

@c3p0vsr2d2
Copy link
Author

@mentalilll I am on 1.50, and I removed the integration and reinstalled it. But I still see the following:

image

  1. The text on the tooltip is the same with or without hover (all text, not just name)
  2. Text becomes larger on zooming in

Possible that something is wrong on my configuration?

@mentalilll
Copy link
Owner

Could you tell me what Browser you used for this?
I tested on multiple browsers, and devices, and on zoom the text gets smaller scaled for me.
I currently check some Bugs maybe you have some more Information for me :P.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants