codesuki / react-d3-components

D3 Components for React
http://codesuki.github.io/react-d3-components/example.html
MIT License
1.62k stars 205 forks source link

BarChar add event for show y number? #139

Open geekyzk opened 7 years ago

geekyzk commented 7 years ago

This is my code <BarChart margins={{top: 10, bottom: 50, left: 120, right: 10}} stackOffset={"wigget"} fill={'#3182bd'} data={customData(th2CDetailList)} width={1400} height={600} title={th2CDetailList[0][0]} yAxisLabel="数值" xAxisLabel="日期"/>

I would like to add a mouse event to show the value, but do not know how to add, you can ask what?

codesuki commented 7 years ago

Have you tried adding a tooltip? https://github.com/codesuki/react-d3-components#tooltips

AgentChris commented 7 years ago

can i have a custom event on mouse move, i would like to make an api request for example