Marko Durasinovic
Marko Durasinovic

Reputation: 94

Point events for Sankey charts?

I am working with AnyChart Sankey charts, and trying to to get information for a particular clicked flow or node (i.e. the from and to nodes if a flow is clicked, or the node name if a node is clicked) in the Sankey chart which I need for a specific drilldown function. This is easily doable for other charts using pointClick.

Getting pointClick events on other charts is quite straight forward using chart.listen('pointClick', function(e) {});.

This, however doesn't work on Sankey charts. The pointClick event is never registered.

Is there any way to do what I am trying to do for Sankey charts?

Upvotes: 0

Views: 326

Answers (1)

AnyChart Support
AnyChart Support

Reputation: 3905

The current version of the library v8.8.0 (summer 2020) doesn't pointClick event due to the specific architecture of the chart. But there's a workaround that implements the required interactivity. For details, check the sample of a Sankey with custom interactivity.

Upvotes: 1

Related Questions