uber/react-vis

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

開放

#770 建立於 2018年3月29日

 (2 則留言) (0 個反應) (0 位負責人)JavaScript (868 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (8,615 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南