react-vis
react-vis copied to clipboard
how to change point color when i click on same point
Hi @All
Can anyone help about MarkSeries plot, I want to change the color or size of the point when I click that point
thanks
You can try the following. That did work on bar series and should work in your case.
Set the clicked datapoint to state.
Write that into your props getColor={d => {(d.x === datapoint.x && d.y === datapoint.y) ? return 'pink' : return d.color}