Type Definitions
ChartLabelType
Defines the {year, halfYear, quarterYear, month, thirdMonth, week, day, hour, minute, second} type for labels, toolTips fields of ChartOptions object. Every field of the ChartLabelType supports alternative HTML labels being separated by "<|>" and values for Count and Unit being separated by "<||>". By alternate HTML label we mean that you can define a list of HTML labels that may be displayed in the chart's header based on the space allocated for the time-unit. In other words, the control chooses automatically the alternate HTML label to be displayed for best fitting in the portion of the chart where the time-unit should be shown.
The label field format is "ALT1[<|>ALT2<|>...[<||>COUNT[<||>UNIT]]]" where
ALT defines a HTML label(the parts delimited by [] brackets may miss)
COUNT specifies the value for the count field
UNIT field indicates the value for the unit field
The ALT part of the label supports ex-HTLM tags such as (<b>, <i>, <fgcolor>, ...) and <%DATE%> tags as follows:
- <%d%> - Day of the month in one or two numeric digits, as needed (1 to 31)
- <%dd%> - Day of the month in two numeric digits (01 to 31)
- <%d1%> - First letter of the weekday (S to S)
- <%loc_d1%> - Indicates day of week as a one-letter abbreviation using the current user settings
- <%d2%> - First two letters of the weekday (Su to Sa)
- <%loc_d2%> - Indicates day of week as a two-letters abbreviation using the current user settings
- <%d3%> - First three letters of the weekday (Sun to Sat)
- <%loc_d3%> equivalent with <%loc_ddd%>
- <%ddd%> - First three letters of the weekday (Sun to Sat)
- <%loc_ddd%> - Indicates the day of week as a three-letter abbreviation using the current user regional and language settings
- <%dddd%> - Full name of the weekday (Sunday to Saturday)
- <%loc_dddd%> - Indicates day of week as its full name using the current user regional and language settings
- <%i%> - Displays the number instead the date
- <%w%> - Day of the week (1 to 7)
- <%ww%> - Week of the year (1 to 53)
- <%m%> - Month of the year in one or two numeric digits, as needed (1 to 12)
- <%mr%> - Month of the year in Roman numerals, as needed (I to XII)
- <%mm%> - Month of the year in two numeric digits (01 to 12)
- <%m1%> - First letter of the month (J to D)
- <%loc_m1%> - Indicates month as a one-letter abbreviation using the current user settings
- <%m2%> - First two letters of the month (Ja to De)
- <%loc_m2%> - Indicates month as a two-letters abbreviation using the current user settings
- <%m3%> - First three letters of the month (Jan to Dec)
- <%loc_m3%> - equivalent with <%loc_mmm%>
- <%mmm%> - First three letters of the month (Jan to Dec)
- <%loc_mmm%> - Indicates month as a three-letter abbreviation using the current user regional and language settings
- <%mmmm%> - Full name of the month (January to December)
- <%loc_mmmm%> - Indicates month as its full name using the current user regional and language settings
- <%q%> - Date displayed as the quarter of the year (1 to 4)
- <%y%> - Number of the day of the year (1 to 366)
- <%yy%> - Last two digits of the year (01 to 99)
- <%yyyy%> - Full year (0100 to 9999)
- <%hy%> - Date displayed as the half of the year (1 to 2)
- <%loc_g%> - Indicates period/era using the current user regional and language settings
- <%loc_gg%> - Indicates period/era using the current user regional and language settings
- <%loc_sdate%> - Indicates the date in the short format using the current user regional and language settings
- <%loc_ldate%> - Indicates the date in the long format using the current user regional and language settings
- <%loc_dsep%> - Indicates the date separator using the current user regional and language settings (/)
- <%h%> - Hour in one or two digits, as needed (0 to 23)
- <%hh%> - Hour in two digits (00 to 23)
- <%h12%> - Hour in 12-hour time format, in one or two digits - [0(12),11]
- <%hh12%> - Hour in 12-hour time format, in two digits - [00(12),11]
- <%n%> - Minute in one or two digits, as needed (0 to 59)
- <%nn%> - Minute in two digits (00 to 59)
- <%s%> - Second in one or two digits, as needed (0 to 59)
- <%ss%> - Second in two digits (00 to 59)
- <%AM/PM%> - Twelve-hour clock with the uppercase letters "AM" or "PM", as appropriate
- <%loc_AM/PM%> - Indicates the time marker such as AM or PM using the current user regional and language settings
- <%loc_A/P%> - Indicates the one character time marker such as A or P using the current user regional and language settings
- <%loc_time%> - Indicates the time using the current user regional and language settings
- <%loc_time24%> - Indicates the time in 24 hours format without a time marker using the current user regional and language settings
- <%loc_tsep%> - indicates the time separator using the current user regional and language settings (:)
- <%loc_y%> - Represents the Year only by the last digit, using current regional settings
- <%loc_yy%> - Represents the Year only by the last two digits, using current regional settings. A leading zero is added for single-digit years
- <%loc_yyyy%> - Represents the Year by a full four or five digits, depending on the calendar used. Thai Buddhist and Korean calendars have five-digit years. The "yyyy" pattern shows five digits for these two calendars, and four digits for all other supported calendars. Calendars that have single-digit or two-digit years, such as for the Japanese Emperor era, are represented differently. A single-digit year is represented with a leading zero, for example, "03". A two-digit year is represented with two digits, for example, "13". No additional leading zeros are displayed
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
year |
string | specifies the predefined format of the level when it displays years. |
halfYear |
string | specifies the predefined format of the level when it displays half of years |
quarterYear |
string | specifies the predefined format of the level when it displays quarter of years |
month |
string | specifies the predefined format of the level when it displays months |
thirdMonth |
string | specifies the predefined format of the level when it displays third of months |
week |
string | specifies the predefined format of the level when it displays weeks |
day |
string | specifies the predefined format of the level when it displays days |
hour |
string | specifies the predefined format of the level when it displays hours |
minute |
string | specifies the predefined format of the level when it displays minutes |
second |
string | specifies the predefined format of the level when it displays seconds |
Example
The following sample defines alternate-labels for year, month, week and day time-units:
{
year: "<%yy%><|>'<%yy%><|><%yyyy%>",
month: "<|><%m1%><|><%m2%><|><%m3%><|><%mmmm%><|><%m3%> '<%yy%><|><%mmmm%> <%yyyy%>",
week: "<|><%ww%><|><%m3%> <%d%>, '<%yy%><r><%ww%><|><%mmmm%> <%d%>, <%yyyy%><r><%ww%><||><||>256",
day: "<|><%d%><|><%d1%> <%d%><|><%d2%> <%d%><|><%d3%> <%d%><|><%dddd%> <%d%><|><%d3%>, <%m3%> <%d%>, '<%yy%><|><%dddd%>, <%mmmm%> <%d%>, <%yyyy%><||><||>4096",
}
where "<%yy%><|>'<%yy%><|><%yyyy%>" indicates that the "year" will be displayed using two or four digits based on the size of the field that displays it.
ChartLabelType
DisplayLinkType
Defines the {type, dir, width, color, arrow, style, startPos, endPos} type for criticalPathLinkApp, criticalPathOffLinkApp fields of DefSchedulePDM type, link, linkStartFrom, linkEndTo, linkUnselected fields of ChartOptions type.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
type |
exontrol.LinkTypeEnum | Specifies the type of the link.
The exontrol.LinkTypeEnum supports the following values:
null {null}, indicates the default type of link, which is similar with rectangular-link but more symmetrical (equivalent of -1) |
dir |
number | The dir field specifies whether the link's direction is shown or hidden.
The dir field can be any of the following values:
null {null}, shows the direction/arrow where the link ends (equivalent of 2) |
width |
number | The width field defines the size/width of the link. Example: null {null}, indicates links of 1-pixel wide |
color |
string | The color field specifies the color to show the link (defines the color of the link as a CSS color format). Example: null {null}, indicates a black link |
arrow |
string | The arrow field indicates the arrow's color (if it is missing or not specified the arrow is shown using the link's color). Example: null {null}, indicates that the link's color defines the color of the link's arrow |
arrowSize |
number | The arrowSize field indicates the arrow's size (if it is missing or not specified the arrow's size is defined by link's width). Example: null {null}, indicates that the link's width defines the size of the link's arrow |
arrowShape |
object | The arrowShape field defines the custom-shape to draw the link's arrow, as an object of exontrol.Def.Shape type. Example: null {null}, indicates that the link's arrow is shown by default as a triangle oriented to point the direction |
style |
null | number | Array.<number> | The style field defines the style of the link. Could be any of the following:
null {null}, defines a solid grid-lines |
startPos |
null | number | string | The startPos field defines the in-element's corners, the link can start from. Could be any of the following:
null {null}, equivalent of ["TC","ML","BC","MR"], specifies that the link starts from the in-element's closest point to out-element |
endPos |
null | number | string | The endPos field defines the out-element's corners, the link can end into. Could be any of the following:
null {null}, equivalent of ["TC","ML","BC","MR"], specifies that the link ends into the out-element's closest point to in-element |
ScrollRangeType
Defines the {start, end} type for scrollRange field of ChartOptions object.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
start |
any | indicates the scroll range's start/left-margin date/time Both start and end fields must be specified, else scroll range has no effect. The start field can be of one of the following types:
|
end |
any | indicates the scroll range's end/right-margin date/time Both start and end fields must be specified, else scroll range has no effect. The end field can be of one of the following types:
|
Example
The following sample limits the chart's scroll-range to Jan 1st, 2001 to Jan 1st, 2002:
{
start: 2001
end: 2002
}
The following sample limits the chart's scroll-range to Apr 1st, 2021 to Apr 30, 2021:
{
start: "#4/1/2021#"
end: "#4/30/2021#"
}
ScrollRangeType