chart.link
Configuration Structure
chart: {}The link options coordinate a group of charts that share the same chart.group. In highlight mode, brushing or hovering one chart dims the non-matching marks in the others with no redraw. In filter mode (selected by setting dimension), each chart declares a dimension and reduction over a shared record set registered with ApexCharts.crossfilter({ id, records }); clicking a bucket re-aggregates every other participating chart. It needs the link feature (import 'apexcharts/features/link'). See the Linked views guide. It is part of the chart configuration.
enabled
falseEnable coordination for this chart. Requires import 'apexcharts/features/link'.
mode
'highlight'highlight (default) dims non-matching marks in the group. filter runs the crossfilter engine. Filter mode is also selected automatically when dimension is set.
dimOpacity
0.2Opacity applied to dimmed (unselected or out-of-range) marks in highlight mode.
id
Filter mode: the crossfilter coordinator id. Defaults to chart.group.
dimension
Filter mode: (row) => key. Its presence selects filter mode. For a heatmap (matrix) dimension it returns [xKey, yKey].
reduce
'count'Filter mode: the reduction over a bucket's rows. 'count' (default), an object like { sum: 'field' } / { avg } / { min } / { max }, or a function (rows) => number.
type
Filter mode: bucket kind, 'category', 'range', or 'matrix'. When omitted it is inferred: bins present means range, a heatmap chart means matrix (2D), otherwise category.
bins
Filter mode (range dimensions): binning spec, { width, count, thresholds }.
order
'first-seen'Filter mode (category dimensions): key ordering, 'first-seen' (default), 'asc', 'desc', or a comparator function.
seriesName
'Count'Filter mode (axis charts): the name given to the derived aggregated series.
sum
Object form of link.reduce: the row field to sum over each bucket.
avg
Object form of link.reduce: the row field to average over each bucket.
min
Object form of link.reduce: the row field to take the minimum of over each bucket.
max
Object form of link.reduce: the row field to take the maximum of over each bucket.
width
Fixed bin width for a range dimension. Use this or count, not both.
count
Number of bins to divide the range dimension into.
thresholds
Explicit bin edges, for unequal buckets that width or count cannot express.