visualize-admin / electricity-prices-switzerland

Compare Swiss electricity prices. Project ownership: Federal Electricity Commission ElCom
https://strompreis.elcom.admin.ch
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Add Tooltip to the "Municipalities Comparison" visualization #58

Closed sosiology closed 1 year ago

sosiology commented 1 year ago

In the graph "Comparison of municipalities" and "Comparison of Cantons" it is not easy to see which values the columns represent. A mouse-over could be used to highlight the corresponding values.

Example of a detail page with a comparison: https://www.strompreis.elcom.admin.ch/municipality/6011?municipality=261

No design needed, we already have a tooltip component we assume can be reused.

Image

This task will tackle 2 issues documented in Jira:

AnninaWalker commented 1 year ago

I’ve reviewed this task. Mouse over looks good, but there is some overlap of the layout. See Screenshot

Image

ptbrowne commented 1 year ago

I do not reproduce on this page (Chrome and Firefox) : https://www.strompreis.ref.elcom.admin.ch/operator/739

image

Do you have any zoom setting enabled ?

AnninaWalker commented 1 year ago

Looks better now. I don't have an overlap anymore, but the legend is very close to the Graph. Some spacing in between might be good. Tested it with Safari Version 16.2 (18614.3.7.1.5)

Image

ptbrowne commented 1 year ago

Fixed and deployed.