mini-graph-card icon indicating copy to clipboard operation
mini-graph-card copied to clipboard

Feature request: show time without having to show points

Open andyfsimon opened this issue 1 year ago • 4 comments

I like the graphs very much, but I don't like how it shows the points, especially when there are many per hours (like one every ten minutes). If we hide the points we lose the information about time. Would it be possible to hide the points but keep the time information visible somehow? Either by hovering with the mouse (like for the points) or with a time scale below...

image

What I don't like here is the way the points show up as circles and ruin the picture. On the other hand, if I disable the points (show_points = false) I lose the information about the time on the x axis.

andyfsimon avatar Feb 07 '23 10:02 andyfsimon

hide the points but keep the time information visible somehow

Please check this: https://github.com/kalkih/mini-graph-card/discussions/904

Also, FR = detailed description of some functionality. Please provide a consistent algorithm.

ildar170975 avatar Feb 09 '23 02:02 ildar170975

Please provide detailed description of your proposal.

ildar170975 avatar Feb 22 '23 02:02 ildar170975

#904 says exactly the same thing. I cannot provide an algorithm for the same reason why I cannot do the change myself. What me and Shasdo are proposing is that when you hover on the line, the coordinates of the mouse pointer should be enough for the card to pick up the underlying point and use it to display the relative data, without drawing a circle around all the other points which are not under the mouse pointer. You may indeed not know beforehand where all points are, but this behaviour is consistent to what the normal graph card already does.

andyfsimon avatar Mar 31 '23 14:03 andyfsimon

I think, currently, the "tooltip" (that is showing the hovered-over data point as state) is tied to a mouse-over event of the rendered data point. So, I'm not sure this can be added easily.

Maybe, as a workaround, you can set up the points to be so small that they don't disturb the optics of the graph?

akloeckner avatar Jun 03 '23 09:06 akloeckner