Open geekyzk opened 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="日期"/>
<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?
Have you tried adding a tooltip? https://github.com/codesuki/react-d3-components#tooltips
can i have a custom event on mouse move, i would like to make an api request for example
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?