Closed joao-m-santos closed 5 months ago
It should be possible to do something like v-model:hovered-index="myIndexRef" in any Lume chart.
v-model:hovered-index="myIndexRef"
Currently, the only way to link the hoveredIndex of a chart to an "external" ref is by listening in to all hovered-index/tooltip related events, e.g.
hoveredIndex
ref
hovered-index
tooltip
<lume-bar-chart ... :hovered-index="myIndexRef" @tooltip-opened="myIndexRef = $event.index" @tooltip-moved="myIndexRef = $event.index" @tooltip-closed="myIndexRef = -1" >
Using Vue's two-way data binding would be a better, cleaner approach to achieve the same result.
--
Feature description
It should be possible to do something like
v-model:hovered-index="myIndexRef"
in any Lume chart.Problem/motivation
Currently, the only way to link the
hoveredIndex
of a chart to an "external"ref
is by listening in to allhovered-index
/tooltip
related events, e.g.Using Vue's two-way data binding would be a better, cleaner approach to achieve the same result.
Describe alternatives you've considered
--
Additional context
--
Validations