A Project Vision custom symbol, from Exele, for entry in OSIsoft's Visualization Virtual Hackathon 2017.
This symbol provides a treemap graphic of Event Frames (EF) for an AF Element in Project Vision. This allows Project Vision users to analyze their Event Frames to discover patterns, correlations, or commonalities within, and between, Event Frames and their attributes.
- Generation of Event Treemap using display time context
- Filtering by EF Template
- Adjustment of cell sizes and colors by selected EF Template attributes
- Displays EF Attribute values by clicking on any cell in the Event Map
- Displays a summary of total EF duration
- Supports element context switching
By default, the cell size is proportional to the Event Frame duration and the cell color indicates the Event Frame Template.
Hovering over a cell will show summary data about the Event Frame. Clicking on a cell displays attribute Event Frame Template Attributes values in a table.
If a template filter is applied then attributes can be selected to control the size and color of the cell. Selecting “None” for either attribute size and/or color sets the cell attributes to the EF duration and EF template name, respectively.
The Event Map allows an end user to quickly discover outliers, abnormal events and patterns. The visual representation of cell size and color make it easy to analyze the events. When viewing all event templates the frequency and duration of each type of event is readily apparent. This can help answer questions such as:
- Which events account for the most or least time for a particular asset?
- What is the proportion of time for one event type compared to another?
Mapping the size and color dimensions of the cells to Event Frame attributes identifies which events were most or least impactful. This can help answer questions like:
- Which of these events had the best or worst outcome and what attribute contributed the most to that outcome?
This information can be used to tune an asset or refine a procedure.
After a number of discussions on what PI Visualization users require to obtain improved insight into their data, the Exele hackathon team decided upon a treemap symbol that we are calling an “Event Map”.
Our goal for the Event Map symbol was to allow quick and easy visual comparison of multiple events, comparison across assets, and easily identify the most significant outliers among selected dimensions.
We liked the idea of the using a treemap as it allows a user to easily view multiple dimensions using using both cell size and color. We also decided to calculate total duration, provide additional context by show Event Frame attributes (by clicking), and including tooltips to include more information for exploring the data.
In the below image of our Event Map, we have shown a one to one ratio between the size of the cell, and the color. The darker blue represents a higher value and the white represents a smaller value:
The Event Map symbol can also show the distribution of EFs under multiple EF templates for a single AF Element. Here, three EF templates are depicted, and the color of the cells represent the template:
The event map can be used to compare events from multiple assets:
- Download this project and copy the symbol-related files to, or clone the repository into, the
ext
folder of your Project Vision installation, e.g.INSTALLATION_FOLDER\Scripts\app\editor\symbols\ext
- Change the variable
apiURL
in the file sym-eventmap.js fromhttps://pisrv01.pischool.int/PIwebapi
to the URL of your PI Web API.
In addition to the libraries supplied by Project Vision, there is a dependency on D3. A copy is provided with the source code in the libraries folder and will automatically be used by Project Vision.
This project provides files useful for local development in the local folder. These files can be used to test the symbol without Project Vision given only a PI Web API Server. There is no dependency on Angular.
You can host the local development files using Visual Studio or via any static file server.
- Dan Fishman
- Mike Kiefer
- James Sconfitto
We hope that you enjoy our symbol and are happy to hear your thoughts on its use at your company.
We’d like to thank Exele for allowing us to invest our time and resources into participating in this hackathon. Learn more about Exele and our products on our website.
Copyright 2017 Exele Information Systems, Inc.
This work is released under the Apache 2.0 license.
We look forward to continuing development of existing features as well as adding new features. Here are some next steps we are considering:
- Allow the user to choose between different color schemes that can be used to color the event map's cells.
- Display to the user the domain of their sizing and coloring attributes and where their selected EF falls on that domain.
- Add the ability to categorize EFs by attributes that are Enumeration Sets. This will allow the viewer to compare and contrast EFs sharing the "categorizing" attribute but differing by the "colorizing" attribute.
- Increase the use of batch calls and batch subrequests to improve performance and reduce network requests