A list of options for customizing the appearance/behavior of the hexbin layer.
hexbinOptions(
duration = 200,
colorScaleExtent = NULL,
radiusScaleExtent = NULL,
colorRange = c("#f7fbff", "#08306b"),
radiusRange = c(5, 15),
pointerEvents = "all",
resizetoCount = FALSE,
tooltip = "Count "
)
A list of hexbin-specific options
Transition duration for the hexbin layer
extent of the color scale for the hexbin layer. This
is used to override the derived extent of the color values and is specified
as a vector of the form c(min= numeric, max= numeric). Can be a numeric
vector or a custom JS
array, like
(JS("[40, undefined]")
)
This is the same exact configuration option as colorScaleExtent, only applied to the radius extent.
Sets the range of the color scale used to fill the hexbins on the layer.
Sets the range of the radius scale used to size the hexbins on the layer.
This value is passed directly to an element-level css style for pointer-events. You should only modify this config option if you want to change the mouse event behavior on hexbins. This will modify when the events are propagated based on the visibility state and/or part of the hexbin being hovered.
Resizes the hexbin to the count. Default is
FALSE
. If set to TRUE
it will resize based on the amount of
underlying elements. You can also pass a custom
JS
function.
Should tooltips be displayed? If set to TRUE
, it will
show the amount of underlying elements. If a string is given, it will
append the string before the count. To disable tooltips, please pass
NULL
or FALSE
. You can also pass a custom
JS
function.
Other Hexbin-D3 Functions:
addHexbin()
,
clearHexbin()
,
hideHexbin()
,
showHexbin()
,
updateHexbin()