react-vis icon indicating copy to clipboard operation
react-vis copied to clipboard

how to change point color when i click on same point

Open ajay7868 opened this issue 4 years ago • 1 comments

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

ajay7868 avatar Jul 24 '20 05:07 ajay7868

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}

uhetz avatar Jul 31 '20 07:07 uhetz