Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Data Visualization with Microsoft Visio Professional 2016

You're reading from  Mastering Data Visualization with Microsoft Visio Professional 2016

Product type Book
Published in May 2016
Publisher Packt
ISBN-13 9781785882661
Pages 334 pages
Edition 1st Edition
Languages
Authors (2):
John Marshall John Marshall
David Parker David Parker
Profile icon David Parker
View More author details

Table of Contents (17) Chapters

Mastering Data Visualization with Microsoft Visio Professional 2016
Credits
About the Author
www.PacktPub.com
Preface
1. Data within Visio Essentials 2. Understanding How Data Is Stored within Visio 3. Linking Data to Shapes 4. Using the Built-In Data Graphics 5. Using the Pivot Diagram Add-On 6. Creating Custom Master Shapes 7. Creating Custom Data Graphics 8. Validating and Extracting Information 9. Automating Structured Diagrams 10. Sharing Data Diagrams 11. Choosing a Deployment Methodology Index

Connecting shapes from data


The example Personnel DataRecordset has a Reports To column that is used by Organization Chart Wizard to create a hierarchy by connecting the shapes together. The data that connects two shapes together does not need to be in the same DataRecordset, especially if there are many-to-many relationships.

A lot of the VBA code in this chapter make increasing use of arrays. However, the VBA IsArray() and IsEmpty() functions do not really report an empty array. Therefore, the following function, IsEmptyArray(), will return True or False by forcing an error if necessary:

Also, much of the code herein needs to get the index of DataColumn. However, the DataColumn object does not have an index property. Therefore, the following function, GetColumnIndex(), returns the index or -1 if the specified column name does not exist in DataRecordset:

Now that the helper functions are defined, they can be used in the sub-function LinkShapes() to iterate through the shapes on the active...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}