point_events_or_null: Hover-band point events (or NULL)

View source: R/geom-extra.R

point_events_or_nullR Documentation

Hover-band point events (or NULL)

Description

When use_js = TRUE returns a Highcharts point.events list that draws a translucent highlight band behind the hovered category. When FALSE returns NULL so the key is omitted entirely from the serialised config - an empty list() would break shared tooltips.

Usage

point_events_or_null(
  use_js,
  band_color = "rgba(204, 211, 255, 0.25)",
  half_width = 0.4
)

Arguments

use_js

Logical.

band_color

CSS colour string for the hover band.

half_width

Half-width of the band in category units.


highdir documentation built on July 31, 2026, 5:06 p.m.