Sparkline

Sparkline icon The Sparkline chart is a CygNet-aware single-value control that displays historical data for a single point on a single line. This lightweight line chart is drawn without axes, labels, or legend, and is typically used to understand the shape of historical data: trends up or down, highlight maximum or minimum values, and identify spikes in the data. A Sparkline supports configurable line and background color, configurable x-axis and y-axis, configurable date ranges, both relative and absolute, and live data updates to allow the Sparkline to request new data at a configured interval giving the appearance that the Sparkline is trending data at a real-time pace.

A Sparkline can be added to other controls, including: a CygNet Grid, a Detail control, and a Tile View control.

The Sparkline has a Click event which is limited to the chart line itself, and not the surrounding space, allowing you to overlay the Sparkline control on top of another control. Scripting is not supported by TWC

Sparkline Example

The following image shows a Tag Chooser , two Sparklines, and a CygNet Grid containing Sparkline columns.

Sample Sparkline

Sample Sparkline and CygNet Grid controls with facilities selected in the Tag Chooser

Property Inheritance

Property Inheritance

Property inheritance, or sending and receiving, is a widely used concept in Canvas. The application supports an explicit relationship between screens, objects, and controls, where certain property values, such as facilities and SiteService details, are passed from one element to another via an inheritance framework. Screens, objects, and controls can be configured as property senders or property receivers and provide configuration options where you can explicitly define the source of the facility and SiteService. Depending on how you have your screens, objects, and controls configured, the facility and SiteService may be received from any one of the following sources:

Broadcasting

Screens and objects support an additional notification option to broadcast their facility and SiteService selection changes to other open screens. If configured, a <Broadcast> option is available to source the screen's facility and SiteService properties from another open screen.

For example, a Text Tool can be configured to get its facility from the screen and the screen can be configured to get its facility from a Tag Chooser. Or Screen_A might source its facility from Screen_B, which gets its facility from a Tag Chooser.

Receiver or Sender

The Sparkline control supports property inheritance as a receiver of its SiteService and facility:

Receive from Send to
SiteService Facility SiteService Facility
self
screen
self
screen
other controls
none none

The Sparkline does not send its SiteService or facility to other controls.

Related Topics