Status Chart
Component Palette Icon:
The status chart component allows you to visualize the status of one or more discrete datapoints over a time range. The X-axis is always a timeseries axis, and the Y-axis is a category axis, with one entry per data series. The chart is populated with a single dataset, the first column of which must be a datetime column.
Wide vs Tall Datasets.
In Wide format, all of the columns but the first must be numeric. These "series" columns' headers will be used as the names on the y-axis. In Tall format, there should be exactly 3 columns. The first is the timestamp, the second is the series name, and the third is the value. For example:
Wide Format
t_stamp |
Valve1 |
Valve2 |
2010-01-13 8:00:00 |
0 |
2 |
2010-01-13 8:02:00 |
0 |
2 |
2010-01-13 8:04:00 |
1 |
2 |
2010-01-13 8:06:00 |
1 |
1 |
2010-01-13 8:08:00 |
0 |
1 |
Tall Format
t_stamp |
Name |
Value |
2010-01-13 8:00:00 |
Valve1 |
0 |
2010-01-13 8:00:00 |
Valve2 |
2 |
2010-01-13 8:02:00 |
Valve1 |
0 |
2010-01-13 8:02:00 |
Valve2 |
2 |
2010-01-13 8:04:00 |
Valve1 |
1 |
2010-01-13 8:04:00 |
Valve2 |
2 |
2010-01-13 8:06:00 |
Valve1 |
1 |
2010-01-13 8:06:00 |
Valve2 |
1 |
2010-01-13 8:08:00 |
Valve1 |
0 |
2010-01-13 8:08:00 |
Valve2 |
1 |
Color Mapping
Apart from getting the data into the series chart, the only other commonly configured option is the mapping of discrete values to colors. This is done in the Series Chart Customizer. Each named series can have its own mapping of colors, if desired. These mappings are stored in the expert-level dataset property Series Properties Data so they can be altered at runtime.
Name |
Description |
Property Type |
Scripting |
Category |
Antialias |
Draw with antialias on? Makes text smoother |
boolean |
.antialias |
Appearance |
Background Color |
The background color of the component. |
Color |
.background |
Appearance |
Border |
The border surrounding this component. NOTE that the border is unaffected by rotation. |
Border |
.border |
Common |
Chart Title |
Title of this chart. |
String |
.chartTitle |
Appearance |
Cursor |
The mouse cursor to use when hovering over this component. |
int |
.cursorCode |
Common |
Data Format |
Format of the incoming data. In "wide" format, the first column of the dataset needs to be a timestamp, and every subsequent column represents one series in the chart. In "tall" format, the first column is a timestamp, the second column is a series name |
int |
.dataFormat |
Data |
Data Quality |
The data quality code for any tag bindings on this component. |
int |
.dataQuality |
Data |
Date Style |
The style to display dates in. For international support. |
int |
.dateStyle |
Appearance |
Domain Axis Color |
Color used on the domain axis. |
Color |
.domainAxisColor |
Domain Axis |
Domain Axis Font |
Font used on the domain axis. |
Font |
.domainAxisFont |
Domain Axis |
Domain Axis Label |
Label on the domain axis. |
String |
.domainAxisLabel |
Domain Axis |
Domain Axis Location |
Location of the domain axis. |
int |
.domainAxisLocation |
Domain Axis |
Mouseover Text |
The text that is displayed in the tooltip which pops up on mouseover of this component. |
String |
.toolTipText |
Common |
Name |
The name of this component. |
String |
.name |
Common |
Properties Loading |
The number of properties currently being loaded. (Read only. Usable in bindings and scripting.) |
int |
.propertiesLoading |
Uncategorized |
Range Axis Color |
Color used on the range axis. |
Color |
.rangeAxisColor |
Range Axis |
Range Axis Font |
Font used on the range axis. |
Font |
.rangeAxisFont |
Range Axis |
Range Axis Label |
Label on the range axis. |
String |
.rangeAxisLabel |
Range Axis |
Range Axis Location |
Location of the range axis. |
int |
.rangeAxisLocation |
Range Axis |
Range Axis Lower Margin |
Lower margin of the range axis. |
double |
.rangeAxisLowerMargin |
Range Axis |
Range Axis Upper Margin |
Upper margin of the range axis. |
double |
.rangeAxisUpperMargin |
Range Axis |
Series Data |
Data about each series. Data can be in either "wide" or "tall" format. |
Dataset |
.data |
Data |
Series Properties Data |
Properties for each series |
Dataset |
.properties |
Data |
Series Spacing |
Affects the amount of spacing between series. Can be between 0.0 and 1.0. The series present on this chart are given equal space to display themselves. Series spacing is the percentage of that space that they use to do so. |
double |
.seriesSpacing |
Appearance |
Show Domain Axis |
Sets whether or not the domain axis is visible |
boolean |
.domainAxisVisible |
Domain Axis |
Show Range Axis |
Sets whether or not the range axis is visible. |
boolean |
.rangeAxisVisible |
Range Axis |
Time Style |
The style to display times of day. For international support. |
int |
.timeStyle |
Appearance |
Title Color |
Color of the chart title. |
Color |
.titleColor |
Appearance |
Title Font |
Font of the chart title. |
Font |
.titleFont |
Appearance |
Visible |
If disabled, the component will be hidden. |
boolean |
.visible |
Common |
This component does not have scripting functions associated with it.
getToolTip
-
Description
Return a formatted tool tip String
-
Parameters
Component self - A reference to the component that is invoking this function.
int seriesIndex -The series index corresponding to the column in the series dataset.
int selectedTimeStamp -The time stamp corresponding to the x value of the displayed tooltip. The time stamp is the number of seconds since the epoch.
int timeDiff -The width of the current status interval measured in seconds since the epoch.
int seletedStatus -The status value corresponding to the x value of the displayed tooltip.
PyDataset data -The series dataset as a PyDataset.
PyDataset properties -The series properties dataset as a PyDataset.
string defaultString -The default tooltip string.
-
Return
String defaultString
-
Scope
Client
mouse
mouseClicked
This event signifies a mouse click on the source component. A mouse click the combination of a mouse press and a mouse release, both of which must have occurred over the source component. Note that this event fires after the pressed and released events have fired.
.source |
The component that fired this event |
.button |
The code for the button that caused this event to fire. |
.clickCount |
The number of mouse clicks associated with this event. |
.x |
The x-coordinate (with respect to the source component) of this mouse event. |
.y |
The y-coordinate (with respect to the source component) of this mouse event. |
.popupTrigger |
Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
.altDown |
True (1) if the Alt key was held down during this event, false (0) otherwise. |
.controlDown |
True (1) if the Control key was held down during this event, false (0) otherwise. |
.shiftDown |
True (1) if the Shift key was held down during this event, false (0) otherwise. |
mouseEntered
This event fires when the mouse enters the space over the source component.
.source |
The component that fired this event |
.button |
The code for the button that caused this event to fire. |
.clickCount |
The number of mouse clicks associated with this event. |
.x |
The x-coordinate (with respect to the source component) of this mouse event. |
.y |
The y-coordinate (with respect to the source component) of this mouse event. |
.popupTrigger |
Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
.altDown |
True (1) if the Alt key was held down during this event, false (0) otherwise. |
.controlDown |
True (1) if the Control key was held down during this event, false (0) otherwise. |
.shiftDown |
True (1) if the Shift key was held down during this event, false (0) otherwise. |
mouseExited
This event fires when the mouse leaves the space over the source component.
.source |
The component that fired this event |
.button |
The code for the button that caused this event to fire. |
.clickCount |
The number of mouse clicks associated with this event. |
.x |
The x-coordinate (with respect to the source component) of this mouse event. |
.y |
The y-coordinate (with respect to the source component) of this mouse event. |
.popupTrigger |
Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
.altDown |
True (1) if the Alt key was held down during this event, false (0) otherwise. |
.controlDown |
True (1) if the Control key was held down during this event, false (0) otherwise. |
.shiftDown |
True (1) if the Shift key was held down during this event, false (0) otherwise. |
mousePressed
This event fires when a mouse button is pressed down on the source component.
.source |
The component that fired this event |
.button |
The code for the button that caused this event to fire. |
.clickCount |
The number of mouse clicks associated with this event. |
.x |
The x-coordinate (with respect to the source component) of this mouse event. |
.y |
The y-coordinate (with respect to the source component) of this mouse event. |
.popupTrigger |
Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
.altDown |
True (1) if the Alt key was held down during this event, false (0) otherwise. |
.controlDown |
True (1) if the Control key was held down during this event, false (0) otherwise. |
.shiftDown |
True (1) if the Shift key was held down during this event, false (0) otherwise. |
mouseReleased
This event fires when a mouse button is released, if that mouse button's press happened over this component.
.source |
The component that fired this event |
.button |
The code for the button that caused this event to fire. |
.clickCount |
The number of mouse clicks associated with this event. |
.x |
The x-coordinate (with respect to the source component) of this mouse event. |
.y |
The y-coordinate (with respect to the source component) of this mouse event. |
.popupTrigger |
Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
.altDown |
True (1) if the Alt key was held down during this event, false (0) otherwise. |
.controlDown |
True (1) if the Control key was held down during this event, false (0) otherwise. |
.shiftDown |
True (1) if the Shift key was held down during this event, false (0) otherwise. |
mouseMotion
mouseDragged
Fires when the mouse moves over a component after a button has been pushed.
.source |
The component that fired this event |
.button |
The code for the button that caused this event to fire. |
.clickCount |
The number of mouse clicks associated with this event. |
.x |
The x-coordinate (with respect to the source component) of this mouse event. |
.y |
The y-coordinate (with respect to the source component) of this mouse event. |
.popupTrigger |
Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
.altDown |
True (1) if the Alt key was held down during this event, false (0) otherwise. |
.controlDown |
True (1) if the Control key was held down during this event, false (0) otherwise. |
.shiftDown |
True (1) if the Shift key was held down during this event, false (0) otherwise. |
mouseMoved
Fires when the mouse moves over a component, but no buttons are pushed.
.source |
The component that fired this event |
.button |
The code for the button that caused this event to fire. |
.clickCount |
The number of mouse clicks associated with this event. |
.x |
The x-coordinate (with respect to the source component) of this mouse event. |
.y |
The y-coordinate (with respect to the source component) of this mouse event. |
.popupTrigger |
Returns True (1) if this mouse event is a popup trigger. What constitutes a popup trigger is operating system dependent, which is why this abstraction exists. |
.altDown |
True (1) if the Alt key was held down during this event, false (0) otherwise. |
.controlDown |
True (1) if the Control key was held down during this event, false (0) otherwise. |
.shiftDown |
True (1) if the Shift key was held down during this event, false (0) otherwise. |
propertyChange
propertyChange
Fires whenever a bindable property of the source component changes. This works for standard and custom (dynamic) properties.
.source |
The component that fired this event |
.newValue |
The new value that this property changed to. |
.oldValue |
The value that this property was before it changed. Note that not all components include an accurate oldValue in their events. |
.propertyName |
The name of the property that changed. NOTE: remember to always filter out these events for the property that you are looking for! Components often have many properties that change. |
This component has a customizer to customize the colors of the each series.
There are no examples associated with this component.