How to Add and Customize a Legend in Microsoft Visio
Question details
The user wants to know how to insert and modify colored legend shapes and data graphics in Microsoft Visio diagrams.

- Product
- Microsoft Visio
- Device & OS
- Windows, Web
- Scenario
- Adding a clear, color-coded legend to network diagrams or data graphics to help viewers understand the shapes and data represented.
- Observed behavior
- The user seeks the correct menus and steps to insert a legend and change its fill colors across both desktop and web versions of Visio.
Determine whether you are using Visio for Windows (the desktop app) or Visio for the web, as the menu layouts and shape styling options differ slightly between the two platforms.
Add and Customize a Legend Using the Network Stencil (Desktop)
Best for standard network diagrams where you need a quick, customizable legend shape.
Microsoft Visio for Windows provides a built-in Legend master shape within specific stencils. If you are using the Basic Network Diagram template, the legend will even update automatically as you add network shapes.
In your Shapes pane on the left side of the screen, locate and open the 'Network and Peripherals' stencil.
Click and drag the 'Legend' master shape from the stencil onto your diagram canvas.
Select the specific bar or section of the legend you want to change. Navigate to the 'Home' tab and use the 'Shape Styles' or 'Fill' tool to apply a new color.

Insert a Legend Using Data Graphics (Desktop)
Ideal for data-driven diagrams where your shapes are linked to external data sources.
Customize a Legend in Visio for the Web
Use this method if you are editing your diagram directly in your web browser instead of the desktop application.
Try WPS Office for Your Document and Diagram Needs
While Microsoft Visio handles specialized diagramming, WPS Office is an all-in-one suite providing excellent drawing tools, flowcharts, and mind mapping features for everyday use. It is lightweight, completely free, and highly compatible with standard Office files.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install WPS Office: Run the setup file and follow the quick on-screen instructions to install the suite.
- 3. Access Drawing Tools: Open WPS Writer, Spreadsheets, or Presentation, and navigate to the Insert tab to utilize shapes, flowcharts, and drawing tools.

Frequently Asked Questions
Why isn't my legend updating automatically in Visio?
Automatic updates usually occur only within specific templates like the Basic Network Diagram when using default shapes. If you are using custom shapes or a blank template, you will need to update the legend manually or use Data Graphics.
Where can I find the Network and Peripherals stencil?
In Visio for Windows, go to the Shapes pane, click 'More Shapes', navigate to 'Network', and select 'Network and Peripherals' to open the stencil containing the Legend master.
Can I change the font size of the legend text?
Yes. Simply click on the text within the legend to select it, then go to the Home tab and adjust the font size, color, or style using the standard text formatting tools.
Why is the Insert Legend button greyed out on the Data tab?
The 'Insert Legend' button in the Data tab is specifically for data graphics. It will remain greyed out if your diagram does not currently have any data graphics applied to its shapes.




