Book Image

Mastering Data Visualization with Microsoft Visio Professional 2016

By : John Marshall, David Parker
Book Image

Mastering Data Visualization with Microsoft Visio Professional 2016

By: John Marshall, David Parker

Overview of this book

Microsoft Visio Professional is a data visualization application that is used by many different market sectors and many different departments to represent information visually, from network infrastructure to organization charts, from process diagrams to office layouts. Starting off with a brief introduction to Visio Professional 2016 and then moving on to data storage, linking data to shapes, and working with SQL Server to create a solid foundation. Then we’ll cover topics such as refreshing data, working with geographical data, working with various graphics, and diagrams, and more. Finally, you’ll find out how to deploy custom stencils, templates, and code.
Table of Contents (17 chapters)
Mastering Data Visualization with Microsoft Visio Professional 2016
Credits
About the Author
www.PacktPub.com
Preface
Index

Making graphics respond to data value changes


The following screenshot shows a triangular shape, named DepartmentMarker, added to the group shape of the Person master in the Document Stencil:

Notice that the top group shape is currently named Sheet.5. This is the default name, and it will remain as the NameID property even if the shape is renamed. In fact, 99% of Masters have the top group Shape with an ID of 5. NameID is the ID of the shape preceded by sheet making it Sheet.5.

To make the color of the DepartmentMarker Shape change whenever the value of the Department Shape Data row changes, the following formulas were entered:

FillForegnd=GUARD(TONE(RGB(Sheet.5!Prop.Red,Sheet.5!Prop.Green,Sheet.5!Prop.Blue),50))

FillPattern=GUARD(1)

The RGB(r,g,b) function takes three numbers between 0 and 255 for the red, green, and blue values. These are obtained from the respective Shape Data rows (Prop.Red, Prop.Green, and Prop.Blue) in the parent group Shape, Sheet.5. However, in order to mute the color...