logo
search
Others

How to Add and Customize a Legend in Microsoft Visio

Aamir Naveed AkramAamir Naveed Akram Sep 30, 2026 869 views

Question details

The user wants to know how to insert and modify colored legend shapes and data graphics in Microsoft Visio diagrams.

How to Add and Customize a Legend in Microsoft Visio
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the Stencil

In your Shapes pane on the left side of the screen, locate and open the 'Network and Peripherals' stencil.

2
Insert the Legend

Click and drag the 'Legend' master shape from the stencil onto your diagram canvas.

3
Customize the Colors

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.

Add and Customize a Legend Using the Network Stencil (Desktop)
Automatic Updates: When working within the Basic Network Diagram template, adding standard network shapes will automatically append them to your legend.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
  2. 2. Install WPS Office: Run the setup file and follow the quick on-screen instructions to install the suite.
  3. 3. Access Drawing Tools: Open WPS Writer, Spreadsheets, or Presentation, and navigate to the Insert tab to utilize shapes, flowcharts, and drawing tools.
Built-in flowchart, mind map, and drawing tools for easy visual creationHigh compatibility with Microsoft Word, Excel, and PowerPoint formatsFree and lightweight office suite for Windows, Mac, and mobileFamiliar user interface for a seamless, zero-learning-curve migration
microsoft office alternative - wps office

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.