AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings Improve this Doc

Extends: anychart.core.VisualBaseWithBounds

Timeline element.

Methods Overview

Coloring
fill()Fill settings.
Content Text Settings
adjustFontSize()Adjusting settings.
disablePointerEvents()Pointer events settings.
fontColor()Font color settings.
fontDecoration()Font decoration settings.
fontFamily()Font family settings.
fontOpacity()Font opacity settings.
fontSize()Font size settings.
fontStyle()Font style settings.
fontVariant()Font variant settings.
fontWeight()Font weight settings.
hAlign()Text horizontal align settings.
letterSpacing()Text letter spacing settings.
lineHeight()Line height settings.
maxFontSize()Maximum font size setting.
minFontSize()Minimum font size settings.
textDirection()Text direction settings.
textIndent()Text indent settings.
textOverflow()Text overflow settings.
useHtml()Text useHtml settings.
vAlign()Text vertical align settings.
wordBreak()Word break mode.
wordWrap()Word-wrap mode.
Interactivity
selectable()Text selectable option.
Size and Position
padding()Padding settings

Methods Description

adjustFontSize

Getter for the adjust font settings.

Returns:

Object - AdjustFontSize settings.
Setter for the adjust font settings.

Params:

NameTypeDefaultDescription
bothOrByWidthObject | Array.<boolean> | boolean
{width: false, height: false}
If only one param is set, its value goes for another too (see source code).
byHeightboolean
Is font needs to be adjusted by height.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.
Example
timeLineHolidays.adjustFontSize(false);
// the same
timeLineHolidays.adjustFontSize(false, false);
// the same
timeLineHolidays.adjustFontSize([false, false]);

disablePointerEvents

Getter for the pointer events settings.

Returns:

boolean - The pointer events settings.
See listing
var disablePointerEvents = timeLineHolidays.disablePointerEvents();
Setter for the pointer events settings.

Params:

NameTypeDefaultDescription
enabledboolean
false
Value to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

fill

Getter for the fill color.

Returns:

anychart.graphics.vector.Fill - The fill color.
See listing
var fill = holidays.fill();
Setter for fill settings using an array or a string. Learn more about coloring.

Params:

NameTypeDescription
coloranychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)>Color as an object, an array or a string.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.
Fill color with opacity.

Params:

NameTypeDescription
colorstringColor as a string.
opacitynumberColor opacity.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.
Linear gradient fill. Learn more about coloring.

Params:

NameTypeDescription
keysArray.<(anychart.graphics.vector.GradientKey|string)>Gradient keys.
anglenumberGradient angle.
modeboolean | anychart.graphics.vector.Rect | ObjectGradient mode.
opacitynumberGradient opacity.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.
Radial gradient fill. Learn more about coloring.

Params:

NameTypeDescription
keysArray.<(anychart.graphics.vector.GradientKey|string)>Color-stop gradient keys.
cxnumberX ratio of center radial gradient.
cynumberY ratio of center radial gradient.
modeanychart.graphics.math.RectIf defined then userSpaceOnUse mode, else objectBoundingBox.
opacitynumberOpacity of the gradient.
fxnumberX ratio of focal point.
fynumberY ratio of focal point.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

Params:

NameTypeDescription
imageSettingsanychart.graphics.vector.FillObject with settings.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

fontColor

Getter for font color settings.

Returns:

string - Font color settings.
See listing
var fontColor = timeLineHolidays.fontColor();
Setter for font color settings.

Params:

NameTypeDescription
colorstringColor to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

fontDecoration

Getter for the text font decoration.

Returns:

anychart.graphics.vector.Text.Decoration | string - Font decoration.
See listing
var fontDecoration = timeLineHolidays.fontDecoration();
Setter for the text font decoration.

Params:

NameTypeDefaultDescription
typeanychart.graphics.vector.Text.Decoration | string
anychart.graphics.vector.Text.Decoration#NONE
Value to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

fontFamily

Getter for the font family.

Returns:

string - Font family.
See listing
var fontFamily = timeLineHolidays.fontFamily();
Setter for font family.

Params:

NameTypeDescription
fontFamilystringValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

fontOpacity

Getter for the text font opacity.

Returns:

number - Font opacity.
See listing
var fontOpacity = timeLineHolidays.fontOpacity();
Setter for the text font opacity.
Double value from 0 to 1.

Params:

NameTypeDescription
opacitynumberValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

fontSize

Getter for font size settings.

Returns:

number - Font size settings.
See listing
var fontSize = timeLineHolidays.fontSize();
Setter for font size settings.

Params:

NameTypeDescription
sizenumber | stringValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

fontStyle

Getter for font style settings.

Returns:

anychart.graphics.vector.Text.FontStyle - Font style settings.
See listing
var fontStyle = timeLineHolidays.fontStyle();
Setter for font style settings.

Params:

NameTypeDescription
typestring | anychart.graphics.vector.Text.FontStyleValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

fontVariant

Getter for font variant settings.

Returns:

anychart.graphics.vector.Text.FontVariant - Font variant settings.
See listing
var fontVariant = timeLineHolidays.fontVariant();
Setter for font variant settings.

Params:

NameTypeDescription
typestring | anychart.graphics.vector.Text.FontVariantValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

fontWeight

Getter for font weight settings.

Returns:

string | number - Font weight settings.
See listing
var fontWeight = timeLineHolidays.fontWeight();
Setter for font weight settings.

Params:

NameTypeDescription
weightstring | numberValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

hAlign

Getter for text horizontal align settings.

Returns:

anychart.graphics.vector.Text.HAlign - Horizontal align settings.
See listing
var hAlign = timeLineHolidays.hAlign();
Setter for the text horizontal align settings.

Params:

NameTypeDescription
typestring | anychart.graphics.vector.Text.HAlignValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

letterSpacing

Getter for letter spacing settings.

Returns:

number | string - Letter spacing settings.
See listing
var letterSpacing = timeLineHolidays.letterSpacing();
Setter for letter spacing settings.

Params:

NameTypeDescription
spacingnumber | stringValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

lineHeight

Getter for the text line height.

Returns:

string | number - Text line height.
See listing
var lineHeight = timeLineHolidays.lineHeight();

Params:

NameTypeDescription
heightstring | numberValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

maxFontSize

Getter for the font size for adjust text to.

Returns:

number - Maximum font size.
Setter for the font size for adjust text to.

Params:

NameTypeDescription
sizenumber | stringValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

minFontSize

Getter for minimum font size settings for adjust text from.

Returns:

number - Minimum font size.
Setter for minimum font size settings for adjust text from.

Params:

NameTypeDescription
sizenumber | stringValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

padding

Getter for the padding.

Returns:

anychart.core.utils.Padding - Padding.
Setter for paddings in pixels using a single value.

Params:

NameTypeDescription
paddingnull | Array.<(number|string)> | ObjectPadding to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.
Examples for paddings
// all paddings 15px
holidays.padding(15);
// all paddings 15px
holidays.padding('15px');
// top and bottom 5px ,right and left 15px
holidays.padding(anychart.utils.padding(5,15));
Setter for paddings in pixels using several numbers.

Params:

NameTypeDescription
value1string | numberTop or top-bottom space.
value2string | numberRight or right-left space.
value3string | numberBottom space.
value4string | numberLeft space.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.
Examples for paddings
// 1) top and bottom 10px, left and right 15px
holidays.padding(10, '15px');
// 2) top 10px, left and right 15px, bottom 5px
holidays.padding(10, '15px', 5);
// 3) top 10px, right 15px, bottom 5px, left 12px
holidays.padding(10, '15px', '5px', 12);

selectable

Getter for the text selectable option.

Returns:

boolean - Text selectable option.
See listing
var selectable = timeLineHolidays.selectable();
Setter for the text selectable.

Params:

NameTypeDefaultDescription
enabledboolean
false
Value to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

textDirection

Getter for the text direction.

Returns:

anychart.graphics.vector.Text.Direction | string - Text direction.
See listing
var textDirection = timeLineHolidays.textDirection();
Setter for the text direction.

Params:

NameTypeDefaultDescription
typeanychart.graphics.vector.Text.Direction | string
'ltr'
Value to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

textIndent

Getter for the text indent.

Returns:

number - Text indent.
See listing
var textIndent = timeLineHolidays.textIndent();
Setter for the text indent.

Params:

NameTypeDescription
indentnumberValue to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

textOverflow

Getter for the text overflow settings.

Returns:

anychart.graphics.vector.Text.TextOverflow | string - Text overflow settings.
See listing
var textOverflow = timeLineHolidaystextOverflow();
Setter for the text overflow settings.

Params:

NameTypeDefaultDescription
valueanychart.graphics.vector.Text.TextOverflow | string
""
Value to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

useHtml

Getter for the useHTML flag.

Returns:

boolean - Value of useHTML flag.
See listing
var useHtml = timeLineHolidays.useHtml();
Setter for the useHTML flag.

Params:

NameTypeDefaultDescription
enabledboolean
false
Value to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

vAlign

Getter for the text vertical align.

Returns:

anychart.graphics.vector.Text.VAlign | string - Text vertical align.
See listing
var vAlign = timeLineHolidays.vAlign();
Setter for the text vertical align.

Params:

NameTypeDefaultDescription
typeanychart.graphics.vector.Text.VAlign | string
'top'
Value to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

wordBreak

Getter for the word-break mode.

Returns:

anychart.enums.WordBreak | string - Word-break mode.
See listing.
var wordBreak = timeLineHolidays.wordBreak();
Setter for the word-break mode.

Params:

NameTypeDefaultDescription
typeanychart.enums.WordBreak | string
'normal'
Value to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.

wordWrap

Getter for the word-wrap mode.

Returns:

anychart.enums.WordWrap | string - Word-wrap mode.
See listing.
var wordWrap = annotation.wordWrap();
Setter for the word-wrap mode.

Params:

NameTypeDefaultDescription
typeanychart.enums.WordWrap | string
'normal'
Value to set.

Returns:

anychart.core.gantt.TimeLineHeaderLevelHolidaysSettings - Self instance for method chaining.