uber/react-vis

Allow legend to be "selected" from a property/class/state.

Aberta

#770 aberto em 29 de mar. de 2018

 (2 comentários) (0 reação) (0 responsável)JavaScript (868 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (8.615 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

I want to be able to control the legend ( active/hovered item ) using react or redux state.

This task is simple with AreaSeries, and I suspect much of the Series components as well.

I cannot find a way to do this for the legend, and if there is one I must have missed it.

The only work around I've been able to control is if I pass react components into the items property and control their style with state, but I cannot make it uniform to the actual hovering of the component, since I cannot control anything outside of the passed in component without investigating DOM manipulation.

Guia do colaborador