ha-vpd-chart icon indicating copy to clipboard operation
ha-vpd-chart copied to clipboard

[Feature Request] Customizable Tooltip

Open c3p0vsr2d2 opened this issue 1 year ago • 11 comments

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

c3p0vsr2d2 avatar Aug 03 '24 17:08 c3p0vsr2d2

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

mentalilll avatar Aug 05 '24 16:08 mentalilll

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!

c3p0vsr2d2 avatar Aug 05 '24 16:08 c3p0vsr2d2

image

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

but i also implement the hover tooltip, =)

mentalilll avatar Aug 05 '24 17:08 mentalilll

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

c3p0vsr2d2 avatar Aug 05 '24 17:08 c3p0vsr2d2

done with new release :)

mentalilll avatar Aug 07 '24 08:08 mentalilll

@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?

c3p0vsr2d2 avatar Aug 12 '24 23:08 c3p0vsr2d2

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 avatar Aug 13 '24 12:08 mentalilll

@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.

c3p0vsr2d2 avatar Aug 14 '24 15:08 c3p0vsr2d2

It should work now like intended

mentalilll avatar Aug 19 '24 07:08 mentalilll

@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?

c3p0vsr2d2 avatar Aug 20 '24 14:08 c3p0vsr2d2

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.

mentalilll avatar Sep 18 '24 12:09 mentalilll