Class Reference
%ZEN.SVGComponent.timeLine
Server:appadmin-00044-deployment-6bf4cbc86d-9f4xc
Instance:IRIS
User:SuperUser
 
-
  [USER] >  [%ZEN] >  [SVGComponent] >  [timeLine]
Private  Storage

deprecatedclass %ZEN.SVGComponent.timeLine extends svgComponent

SVG TimeLine component. This displays a series of "events" along a time line.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
12 13


Summary

Properties
%condition %import %includeFiles %page
%resource aux birthDate boundless
composite dateFormat document endTime
height hidden id index
marginLeft marginRight name onclick
ongetdata onrenderitem onselect onupdate
parent position preserveAspectRatio selectedId
spanHeight startTime svgComponent svgGroup
title tuple viewBoxHeight viewBoxWidth
visible width window x
y

Methods
%AddToSaveSet %Attr %BindExport %ClassIsLatestVersion
%ClassName %ConstructClone %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %DrawHTML %DrawJSStrings %Eval
%EvalC %Extends %ForceClientRender %GetEventHandlers
%GetParameter %GetXMLName %IsA %IsModified
%MakeId %New %NormalizeObject %ObjectModified
%OnAddToPageAfter %OnAddToPageBefore %OnDrawObjectProperties %OnObjectSynch
%OnZENDeserialize %OriginalNamespace %PackageName %QuoteValue
%QuoteValueL10N %RemoveFromSaveSet %Self %SerializeObject
%SetModified %ValidateObject XMLDTD XMLExport
XMLExportToStream XMLExportToString XMLNew XMLSchema
XMLSchemaNamespace XMLSchemaType beginWaitState calculateViewBox
clickHandler computeAge dragThumb endWaitState
findElement findSVGElement fireOnUpdateEvent getCellInfo
getFrame getModel getProperty getSettings
getSizeAbsolute getType invokeSuper isOfType
itemClick makeId onCreate onDelete
onSerialize onloadHandler onunloadHandler onupdateHandler
refreshContents render renderContents renderData
renderOneItem renderSVG renderTimeCells selectItem
setOverlayMode setPosition setPositionHandler setProperty
setSize setSizeHandler setTextNode setTimeRange
sizingMouseDownHandler sortModel unrender wrapMethod


Properties

• property birthDate as %ZEN.Datatype.string;
"Birth date" (as YYYY-MM-DD HH:MM:SS). If provided, then a time bar showing current age is also displayed.
• property dateFormat as %ZEN.Datatype.string(MAXLEN=3,VALUELIST=",MDY,DMY,YMD") [ InitialExpression = "YMD" ];
Optional. Specifies the display format used for this component. (Note that the internal value of this control is always YYYY-MM-DD). Possible values are:
  • "YMD" - Year,Month,Day
  • "MDY" - Month,Day,Year
  • "DMY" - Day,Month,Year
• property endTime as %ZEN.Datatype.string;
Latest displayed time (as YYYY-MM-DD HH:MM:SS).
• property marginLeft as %ZEN.Datatype.integer [ InitialExpression = 20 ];
Left margin (in pixels).
• property marginRight as %ZEN.Datatype.integer [ InitialExpression = 20 ];
Right margin (in pixels).
• property ongetdata as %ZEN.Datatype.eventHandler;
ongetdata event handler: This defines the client-side code that returns an graph of javascript objects used to provide the contents of this view.
• property onrenderitem as %ZEN.Datatype.eventHandler;
onrenderitem event handler: This event handler is called when an event is plotted and makes it possible to plot custom content on the time line.
• property onselect as %ZEN.Datatype.eventHandler;
onselect event handler: This event handler is called when the user selects a new item within the timeline.
• property selectedId as %ZEN.Datatype.string;
Id of selected item.
• property spanHeight as %ZEN.Datatype.integer [ InitialExpression = 20 ];
Height (in pixels) of a time span box on the time line.
• property startTime as %ZEN.Datatype.string;
Earliest displayed time (as YYYY-MM-DD HH:MM:SS).
• property title as %ZEN.Datatype.string;
Chart title.

Methods

• method computeAge(birthDate, currDate) [ Language = javascript ]
Compute the age between currDate and birthDate, return it as an object.
• method dragThumb(evt) [ Language = javascript ]
Drag handler for vertical scrollbar thumb.
• method getCellInfo(cell, majorUnits, minorUnits, index) [ Language = javascript ]
Return information about a cell within the grid line.
• method getModel() [ Language = javascript ]
Get the model used to drive the user portion of the time line.
• method itemClick(evt, newId) [ Language = javascript ]
Click on item.
• method renderContents() [ Language = javascript ]
Render the inner SVG contents of this component.
• method renderData(dataGroup, marginTop) [ Language = javascript ]
Render the actual time line data.
• method renderOneItem(group, item, length, size) [ Language = javascript ]
Render one item on the timeline. group is the svg group to append to. length is the length (in pixels) of the time range to plot.. Return the size of the rendered item via size.
• method renderTimeCells() [ Language = javascript ]
Render the time cells on the top/bottom.
• method selectItem(newId) [ Language = javascript ]
Select an item.
• method setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.
• method setTimeRange(startTime, endTime, reset, which) [ Language = javascript ]
Set the timeline start and end dates and update. Time values are in 'yyyy-mm-dd' format. This prevents the repaint that would happen if start and end dates are set separately. If endTime is not provided, update it to preserve the current time range using startTime as a new starting time.
If reset is true, clear the internal structures used to compute the locations of the time events.
If which is provided, it specifies whether the change is "translate" or "scale" (to make it easy to connect to a timeRange controller).
• method sortModel(model, range) [ Language = javascript ]
Take the user-supplied data model and sort it by time. Return a sorted and decorated model. Also find earliest and latest times and return via range object.


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.