Making available the following three options for the hover or mouseover events on polygons in a choropleth will create a much better user experience:
Ability to disable the highlight altogether. Often we may want nothing to happen when a user hovers over a polygon. The tooltip may convey all the information we need. See a toy example here:
Ability to adjust the stroke color only. On hover, I'd like to be able to set the stroke to be another color than the default. See below for an example an how the stroke changes from grey to black on hover:
Ability to set the fill opacity only. I'd like to be able to define an opacity less than 1 on hover. See how the state fill changes when there's a hover event:
Describe the solution you'd like
Making available the following three options for the hover or mouseover events on polygons in a choropleth will create a much better user experience:
Ability to disable the highlight altogether. Often we may want nothing to happen when a user hovers over a polygon. The tooltip may convey all the information we need. See a toy example here:
Ability to adjust the stroke color only. On hover, I'd like to be able to set the stroke to be another color than the default. See below for an example an how the stroke changes from grey to black on hover:
Ability to set the fill opacity only. I'd like to be able to define an opacity less than 1 on hover. See how the state fill changes when there's a hover event: