Legend Mapping
Check out the walk-through given below on how to map a Legend with a charting component in the Designer.
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F859511478-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FGDmsjfjJBNqow7Fo97cO%252Fuploads%252FRgpAq4mC9FXV4M7zlgay%252FLegend%2520Associate%2520with%2520component.gif%3Falt%3Dmedia%26token%3D238b5fc5-8a5c-447d-bbc5-d4f2ec777787&width=768&dpr=4&quality=100&sign=6de4c775&sv=1)
Click the Component Library icon from the right edge of the window.
Select and drag a chart component on the canvas.
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F859511478-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FGDmsjfjJBNqow7Fo97cO%252Fuploads%252Fdg5srZAqvEFOROQiy7fb%252Fimage.png%3Falt%3Dmedia%26token%3Df3ff46fd-f5fb-4aa2-ae98-a69069d838b5&width=768&dpr=4&quality=100&sign=952c3762&sv=1)
Create a data connection.
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F859511478-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FGDmsjfjJBNqow7Fo97cO%252Fuploads%252FJ151K42QDN2scl3FVakS%252Fimage.png%3Falt%3Dmedia%26token%3D0103a4f4-e898-4855-8284-48daded11ba2&width=768&dpr=4&quality=100&sign=ea98d8f9&sv=1)
Associate data connection with the chart.
![](https://docs.bdb.ai/~gitbook/image?url=https%3A%2F%2F859511478-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FGDmsjfjJBNqow7Fo97cO%252Fuploads%252FPTjdiwOuITtCrp49r2eV%252Fimage.png%3Falt%3Dmedia%26token%3D8c453ccf-5f73-4196-b34d-0cb1bcd1e612&width=768&dpr=4&quality=100&sign=a723037&sv=1)
Select and drag the Legend component from the Other tab of the component library.
Navigate to the Legend component properties.
Go to the General properties.
Click on the Associate Chart and select the required chart.
The Associated Chart wizard opens.
Select the dragged chart from the Search available components section.
Select the fields that you wish to associate by using the checkmarks given next to the fields from the Search available fields section.
Click the Save option.
The Legend gets mapped to the chart.