Stacked Chart
- PI Vision Widget -
Revision History
| Revision No. | Date | Author | Document ID | Description of changes |
|---|---|---|---|---|
| 9.4 | June 2025 | RS | EW Stacked Chart v9.4.en.doc | BugFix |
| 9.3 | June 2025 | RS | EW Stacked Chart v9.3.en.doc | Added select REST provider |
| 9.2 | May 2025 | RS | EW Stacked Chart v9.2.en.doc | Added plot granularity |
| 9.1 | May 2025 | RS | EW Stacked Chart v9.1.en.doc | Added feature Get Support |
| 9.0 | March 2025 | ID | EW Stacked Chart v9.0.en.doc | Compatibility PI Vision 2024 and introduced new widget style |
| 8.1 | September 2023 | MDC | EW Stacked Chart v8.1.en.doc | Cursor label name changed |
| 8.0 | August 2023 | AM | EW Stacked Chart v8.0.en.doc | Compatibility PI Vision 2023 |
| 7.1 | January 2023 | MDC | EW Stacked Chart v7.1.en.doc | Added different webapi server management and asset managemen |
| 7.0 | August 2022 | AM | EW Stacked Chart v7.0.en.doc | Compatibility PI Vision 2022 |
| 6.0 | October 2021 | MDC | EW Stacked Chart v6.0.en.doc | Compatibility PI Vision 2021 |
| 4.5 | July 2021 | MDC | EW Stacked Chart v4.5.en.doc | BugFix |
| 4.4 | June 2021 | MDC | EW Stacked Chart v4.4.en.doc | Special characters management |
| 4.3 | March 2021 | MDC | EW Stacked Chart v4.3.en.doc | BugFix PIVision 2020 |
| 4.2 | January 2021 | MDC | EW Stacked Chart v4.2.en.doc | 1) Possibility to modify: - update interval - size, position and number of decimals of the tooltip. 2) Management of the opening of the ad hoc trend like the standard double click. 3) Elements order from configuration. 4) Management of the expiration date. 5) Error handling in PIVision console for expiration date and wrong domain |
| 4.1 | December 2020 | MDC | EW Stacked Chart v4.1.en.doc | BugFix |
| 4.0 | December 2020 | OS | EW Stacked Chart v4.0.en.doc | Compatibility PIVision 2020 |
| 1.8 | August 2020 | OS | EW Stacked Chart v1.8.en.doc | Restyle and modification |
| 1.5 | August 2019 | PC | EW Stacked Chart v1.5.en.doc | French language support |
| 1.4 | August 2019 | PC | EW Stacked Chart v1.4.en.doc | BugFix |
| 1.3 | August 2019 | PC | EW Stacked Chart v1.3.en.doc | Introducing Interpolation |
| 1.2 | August 2019 | PC | EW Stacked Chart v1.2.en.doc | Handle null values |
| 1.1 | August 2019 | PC | EW Stacked Chart v1.1.en.doc | Introducing Zoom |
| 1.0 | August 2019 | PC | EW Stacked Chart v1.1.en.doc | First release documentation and specifications |
Document References
| Document | Description |
|---|---|
| PI Vision Installation and Administration Guide | PI Vision™ user manual from AVEVA |
Introduction
The StackedChart widget for PI Vision displays a chart that shows how individual components make up a total value.
Figure 1 - Stacked Chart
The PI Vision developed by AVEVA is available since 2017 and it allows viewing real-time data in a web environment calling it from the PI Data Archive and data organized in assets from the AVEVA Asset framework (PI-AF).
Simply go to https: // webserver / PIVision (Indicating the address the correct name of the webserver machine) to access the IP Vision pages.
They are supported on the latest versions of most HTML5 compatible browser on computers, tablets, and phones with Android and iOS operating systems.
The configuration of the elements in PI Vision is intuitive and provides a simple drag of the control and release area of the display.
Definitions, Acronyms And Abbreviations
Acronyms and definitions that are used in the current manual are listed below.
| Term | Definition |
|---|
Operating Principles And Use
To insert the StackedChart widget, the corresponding icon must be selected. Navigate in the asset display to find the element containing attributes to plot. To proceed, drag it to the display area. The whole element must be dragged on the display.
Figure 2 - PI Vision Menu
By releasing the mouse button, the display widget is ready to be configured.
Later, by recalling the context menu with the right mouse button, customizations and configurations are possible.
Figure 3 - Context Menu
Functionality and use
After inserting and configuring the widget, it is ready to be used.
On the right side the legend is shown. Moving the mouse pointer over a label, the corresponding area will be highlighted.
As shown in Figure 4, it is possible to zoom in an area by drawing it with the mouse pointer. To return to the initial display, simply double click.
Figure 4 - Zoom
By clicking on the graph it is possible to view a tooltip containing the values of the measures represented and their timestamp.
Figure 5 - Tooltip
Customization and configuration
The widget configuration allows to change the look in terms of color, text size, and display language.
Language
The Language section allows choosing the language in which the display labels and configuration parameters appears.
Figure 6 - Language selection
Configurations
Figure 7 - Configurations
In the Configuration sections is possible to indicate:
- Whether to use the PIWebAPI (required for PIVision 2020);
- The date format;
- Grid opacity;
- Data interpolation;
- Position of the label in the cursor;
- Number of decimals of the values present in the tooltip;
- The minimum time interval between one update provided by PIVision and the next.
- Plot Granularity: allows the user to change the plot granularity. The higher the value the more detailed the plot will be. Keep in mind that with really big numbers the plot will take some time to generate.
- Show adHoc trend button.
- Show order from configuration section.
- Select REST Provider.
REST Provider
Allows the user to select between default or custom protocol for api requests.
Figure 8 - REST Provider selection
Show Ad Hoc Trend button
By checking this configuration, a button will appear on the display useful for opening the Ad Hoc trend. All the attributes of the asset dragged to the display will be plotted in the Ad Hoc trend (Figure 9, Figure 10)
Figure 9 - Ad hoc trend button
Figure 10 - Ad hoc trend
Order from configuration
By checking this configuration, user can define the order of the attributes in the graph using the arrows.
Press the button to return to the default order.
Figure 11 - Order from configuration
Figure 12 - Changed order
Text Size
Is possible to personalize text sizes and the tooltip size.
Figure 13 - Text Sizes
Widget colors
Widget colors could be customized in relation to:
- Graph Background
- Text
- Axes
- Axes labels
As shown in the table below.
Figure 14 - Widget color customization
To configure the color simply select the color drop-down menu and choose the gradation on the first horizontal scrollbar, the possible point of the color palette and indicate with the second horizontal scrollbar the eventual transparency level. To confirm, select the button.
Figure 15 - Choice of color
Contacts
Get Support button (read Get Support documentation)
Link to e-matica.com (click on the icon)
Link to widget online documentation (click on link)
Figure 16 - Contacts
Installation
The following are the necessary prerequisites and the installation procedure.
Prerequisites
The following table shows the minimum requirements for installing this product:
| Software | Version | Note |
|---|---|---|
| PI Vision | 2024(*) | Requirements are related to the correct functioning of the PI Vision |
| (*) This widget is also compatible with PI Vision 2023, 2022, 2021, 2020 and 2019. |
Table 1 - Installation prerequisites
We suggest using Google Chrome for full compatibility with the widget.
Installation procedure
The installation procedure includes a copy of the folders and files in the default path of the PI Vision.
In particular, it is necessary to copy the following files in the folder ... \ PIPC \ PIVision \ Scripts \ app \ editor \ symbols \ ext:
- sym-EWStackedChart.js
- sym-EWStackedChart-config.html
- sym-EWStackedChart-template.html
and in the folder ..\PIPC\PIVision\Public the following folders:
- Images that contains the control icon:
- EWStackedChart.png
- Libs with the libraries used:
- EWClasses.js;
- moment.js;
- d3.v4.min.last.js
Additional notes for the use of the product
For the proper functioning of the widget it is necessary to configure the AF model as shown in Figure 18.
Figure 17 - AF model description
The element has to contain attributes associated with Tags to monitor. Each ones must have the following sub-attributes:
- Active (Boolean attribute): true if attribute has to be represented in the graph
- ColorArea (String attribute): the fill color of the area representing the attribute;
- ColorLine (String attribute): color of the line enclosing the area in the graph;
- Label (String attribute): the label of the attribute, shown in legend;
- LineStyle (String attribute): indicates the style of the line enclosing the area:
- 0: linear;
- 1: dotted line;
- 2: dashed line;
- LineWeight (Double attribute): thickness of the line enclosing the area;
- Order (Int attribute): visualization order of the attribute in the graph.
Notes And References
For more information about Vision PI refer to documentation on AVEVA © portal.
For information about the web service to refer to the specific documentation.