Skip to content

Identify clicked data point in Chart onClick events #237

Answered by Brodzko
paulgrieselhuber asked this question in Q&A
Discussion options

You must be logged in to vote

Where are you passing your onClick handler? I believe this is what onClickDatum: (datum, event) => void in Chart options is for. See the Line chart in this forked example.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tannerlinsley
Comment options

@paulgrieselhuber
Comment options

Answer selected by paulgrieselhuber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants