Event  node_click   can send custom data but it sends ONLY the custom data associated with that node.

So, for example, if you have

"values":[69,68,54,48,70],
"data-custom":["A", "B", "C", "D", "E"]


 plot_click
  will provide:

xdata : { custom : ["A", "B", "C", "D", "E"] }

and  node_click   will provide (for example clicking on the 2nd node)

data-custom : "B"
Did this answer your question?