• Open in:

Dragging Pie Slices

Interactivity in data visualization is the norm these days and amCharts excels at it. But we can also take it to the next level and enable users to manipulate the visuals. In this demo you can drag slices from one pie chart to the other and enable advanced visual data analysis driven by the user.

Key implementation details

To make slices draggable all you need to do is set draggable: true on the slice’s template. Then you just react when users “drop” the slice. This is done by handling the slice’s pointerup event.

Related tutorials

Demo source