Forum Discussion

giorgikok's avatar
giorgikok
Frequent Visitor
3 years ago
Solved

Bar Chart Interactivity on click

Hello, I am trying to add chart interactivity and I've run into a problem. The selectionID of my chart that is kept in dataPoints does not seem to return correctly. After looking around and loggin t...
  • giorgikok's avatar
    3 years ago

    figured it out: 

     

    const clickData = d3.select(d.target).datum() as { selectionId: ISelectionId };

    this is how you get the selectionId