Skip to main content
Version: 8.1

Vision - Date Range

Component Palette Icon:

Description

The date range component provides an intuitive, drag-and-drop way to select a contiguous range of time. The user is shown a timeline and can drag or stretch the selection box around on the timeline. The selected range is always a whole number of units, where the unit is determined by the current zoom level.

note

The Start/End dates and Outer Start/End dates will be ignored when the window opens unless the Startup Mode property is set to "None."

Data Density Histogram

As an advanced optional feature, the date range can display a data density histogram inside the timeline. This is useful for historical data with gaps in it, so that the end user isn't hunting for data. (Tip: this is also great for demos, to make it easy to find historical data in a database that isn't being continuously updated).

To use this feature, bind the Data Density dataset to a query that returns just the timestamps of the target table. These timestamps will be used to fill in the histogram behind the timeline. You can use the Outer Range Start Date and Outer Range End Date properties in your query to limit the overall return size for the query.

note

Timestamps must be ordered by date (ascending) to display correctly.

Properties

PropertyDescriptionProperty TypeScriptingCategory
Background ColorThe background color of the component. Can be chosen from color wheel, chosen from color palette, or entered as RGB or HSL value. See Color Selector.Color.backgroundAppearance
BorderThe border surrounding this component. Options are No border, Etched (Lowered), Etched (Raised), Bevel (Lowered), Bevel (Raised), Bevel (Double), and Field Border.
Note: The border is unaffected by rotation.

Changed in 8.1.21
As of 8.1.21, the "Button Border" and "Other Border" options are removed.
Border.borderCommon
Box FillThe fill color for the selection box.Color.boxFillAppearance
CursorThe mouse cursor to use when hovering over this component. Options are: Default, Crosshair, Text, Wait, Hand, Move, SW Resize, or SE Resize.int.cursorCodeCommon
Data DensityA dataset that is used to calculate a histogram of data density.Dataset.densityDataData
Date StyleThe style to display dates in. For international support.int.dateStyleAppearance
Editor BackgroundThe background color of the textual date range editor portion of this component.Color.editorBackgroundAppearance
EnabledIf disabled, a component cannot be used.boolean.componentEnabledCommon
End DateThe ending date of the currently selected range.Date.endDateData
FontFont of text on this component.Font.fontAppearance
Foreground ColorThe foreground color of the component.Color.foregroundAppearance
High Density ColorThe color used to indicate high data density. See Color Selector.Color.highDensityColorAppearance
Max SelectionThe maximum size of the selected date range.String.maxSelectionSizeBehavior
Mouseover TextThe text that is displayed in the tooltip which pops up on mouseover of this component.String.toolTipTextCommon
NameThe name of this component.String.nameCommon
OpaqueIf false, backgrounds are not drawn. If true, backgrounds are drawn.boolean.opaqueCommon
Outer Range EndThe ending date of the available outer range.Date.outerRangeEndDateData
Outer Range StartThe starting date of the available outer range.Date.outerRangeStartDateData
QualityThe data quality code for any Tag bindings on this component.QualityCode.qualityData
Selection HighlightThe focus highlight color for the selection box. See Color Selector.Color.selectionHighlightAppearance
Start DateThe starting date of the currently selected range.Date.startDateData
Startup ModeControls whether or not this date range automatically assigns itself a starting range based on the current timeint.startupModeBehavior
Startup RangeIf startup mode is Automatic, this will be the starting range of time available for selection.String.startupRangeBehavior
Startup SelectionIf startup mode is Automatic, this will be the starting selected range.String.startupSelectionBehavior
StylesContains the component's styles.Dataset.stylesAppearance
Tick DensityThis is multiplied by the width to determine the current ideal tick unit.float.tickDensityBehavior
Time StyleThe style to display times of day. For international support.int.timeStyleAppearance
Today ColorThe color of the "Today Arrow" indicator. See Color Selector.Color.todayIndicatorColorAppearance
Track MarginThe amount of room on either side of the slider track. May need adjusting of default font is changed.int.trackMarginAppearance
VisibleIf disabled, the component will be hidden.boolean.visibleCommon

Deprecated Properties

PropertyDescriptionProperty TypeScriptingCategory
Data QualityThe data quality code for any Tag bindings on this component.int.dataQualityDeprecated

Scripting

Scripting Functions

See the Date Range Scripting Functions page for the full list of scripting functions available for this component.

Event Handlers

Event handlers allow you to run a script based off specific triggers. See the full list of available event handlers on the Component Events page

Customizers

Example

Code Snippet

//A Query binding on another component on the same window might look like this:

SELECT Column1, Column2, Column3
FROM MyTable WHERE
t_stamp >= "{Root Container.Date Range.startDate}" AND
t_stamp <= "{Root Container.Date Range.endDate}"