A quick-start react project that helps you to add legends to Syncfusion React Charts. This project also contains a code snippet to align the legends, customize the legends and their icon sizes, select a series on clicking the legends, and enable animations.
Documentation: https://ej2.syncfusion.com/react/documentation/chart/legend/
Online examples: https://ej2.syncfusion.com/react/demos/#/material/chart/default-doughnut
Make sure that you have the latest versions of NodeJS and Visual Studio Code in your machine before starting to work on this project.
To run this application, you need to clone the how-to-add-legends-to-the-syncfusion-react-charts
repository and then open it in Visual Studio Code. Now, simply install all the necessary react packages into your current project using the npm install
command and run your project using the npm start
command.