• Open in:

Pie Chart with Legend

Legends are great for adding context to charts and can even replace labels in busier visualizations. Additionally, in amCharts legend items can act as toggles for the series in the chart (try clicking on the legend in this demo). And you get all of that functionality with no extra code.

Key implementation details

We just add a Legend to the chart’s children and then set data on it to our series data. And that’s it.

Related tutorials

Demo source