In this sample I used a very simple network diagram which is actually one of the sample diagrams that comes with Visio. This diagram is data linked to a sample Excel spreadsheet that contains health information about a set of servers on a network.
The complete dashboard page looks like this once you combine the Visio web part (hosting the sample diagram) and a Content Editor web part (hosting the custom HTML/JS) together on a web part page.
To use these samples I recommend that you simply create a folder in a document library and load all the attached files into that folder. You will then need to create a web part page that contains a Visio Web Access web part and a Content Editor web part. The Visio Web Access web part will be set to load the attached sample VSDX file using the Web Drawing Display property.
The Content Editor web part will be set to load one of the sample HTM files listed below using the Content Link property.
Swap out the HTM link using one of the three options below to see how the different capabilities of the Visio Services API work.
This is the most basic scenario which will display a specific set of property values from a shape that you select in the diagram. The property values are displayed in some simple HTML controls hosted in the Content Editor web part.
This sample takes sample 1 and adds two things:
1 – updates the code to incorporate my Visio Services JS helper library as well as JQuery.
2 – A highlight feature that draws the highlight box around shapes in the diagram that have a specific property value set. I based this on the Status property of each of the server shapes.
This sample demonstrates the overlay feature of the Visio Services API and displays a small panel with the name of the server shape and the color based on the Status property of the shape.
Awesome, Thanks Chris. Very Helpful.
Is there a 'best practice' for organizing application components in SharePoint?
You can separate them if you want. Site Pages, Site Assets, etc. are all document libraries but with different permissions. Most people use Site Assets and Site Pages to organize the content for their solution.