amcharts / amcharts4

The most advanced amCharts charting library for JavaScript and TypeScript apps.
https://www.amcharts.com/
1.16k stars 322 forks source link

Accessing tooltip on Sankey #1880

Closed marjukas closed 4 years ago

marjukas commented 4 years ago

Hello,

We would need to access the tooltip on Sankey diagram for features like changing the background color or setting interactionsEnable = true.

For other chart types in tutorials it is advised to use series.tooltip to access for example getFillFromObject. On Sankey there is no series.

How can we still change the tooltip properties?

martynasma commented 4 years ago

You're right - there are no series on SankeyDiagram, so chart's own tooltip is used:

chart.tooltip.getFillFromObject = false;
marjukas commented 4 years ago

Yes, this worked well! Thank you so much!