muudless
muudless

Reputation: 7532

amCharts pie - how to trigger function when mouse over a slice?

I've tried reading the amCharts documentation and also googling, but can't seem to find the answer. I feel like I'm over thinking this...

Can someone please kindly let me know how to go about triggering a function when I have mouse over a slice?

Upvotes: 1

Views: 1061

Answers (1)

gerric
gerric

Reputation: 2297

You're searching for the "rollOverSlice" event.
See documentation here.

Usage:

chart.addListener("rollOverSlice", function(e) {
    // Do something.
});

and fiddle.

Upvotes: 2

Related Questions