The Easy Chart has a Chart Modes property that changes the behavior of the chart in several ways. The mode is set in the Vision Property Editor in the Chart Mode Property.
This mode places a Date Range Selector component at the bottom of the chart. This mode allows users to select a start and end date for the trends. The data density is shown at the bottom of the chart: the more vibrant the color, the higher the density. This the default mode, and commonly used in situations where users need to look at specific date ranges. It is important to remember that the chart does not poll in this mode. New values are only added to the chart when the selection box is moved or re-sized.
Displays the most recent data for each pen. Users are able determine how far back in time the trend should display with the Spinner and Dropdown components at the bottom of the chart. In this mode, the chart polls for data at the rate specified by the Poll Rate property.
In some cases, you may notice that the most recent values on tag pens tend to flat-line, and then 'snap' to a different value. This is generally due to how often the chart polls versus how often history is being generated. If the chart polls at a 1,000ms rate, but history is only recorded at a 10,000ms rate, then the chart will extrapolate the last recorded value for 9,000ms. After a new value is recorded, the next poll will return the latest value, and the flat-line will change position.
Similar to the Historical mode in that trends range from two points in time. However, there is not a built-in method for users to change the data range. Instead, some sort of binding can be applied to the chart's Start Date and End Date property. This mode is generally used in situations where only certain date ranges should be shown, such as values recorded during the previous day, or shift.
Pens on the chart, or each series of data points on the chart, can be customized to take on a number of different styles and colors. There are three types of pens, and each pen functions in a similar manner. What makes them different is how their data is collected.
Pens can be added manually to the chart with the Easy Chart Customizer or added dynamically by modifying the various pens properties listed under Chart Configuration in the Vision Property Editor. These properties contain the configuration of each type of pen and can make use of the binding system. Because of this, pen preferences can be saved to a database table and then queried in the runtime with a SQL binding. Additional adjustments can be made with Cell Update bindings or scripting to create a dynamic-yet-robust chart.
When you add pens to the Easy Chart, all pens will show up with a white X next to their name. This exists for creating an ad hoc chart used with the Tag Browse Tree component. To remove the ability to delete pens, you must edit the Tag Pens dataset property. Click on the dataset viewer icon, then in the last column "User Removable", deselect the checkbox and click OK.
Aside from the properties on the component, the Easy Chart Customizer allows modifications to be made to the chart. Along with configuring pens, the customizer can be used to create subplots, new axes, and dynamic groups. Once created, each pen can be assigned to any available axes or subplots. This way different values can be shown on different plots with an axis that is specific to data at hand.