AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.palettes.HatchFills Improve this Doc

Extends: anychart.core.Base

HatchFills palette class.

Methods Overview

Specific settings
itemAt()Hatch fill by index.
items()Palette hatch fills list.

Methods Description

itemAt

Getter for type palette HatchFills from list by index.

Params:

NameTypeDescription
indexnumberIndex to get type.
Setter for type palette HatchFills from list by index.

Params:

NameTypeDescription
indexnumberIndex of hatchFill to set.
typeanychart.graphics.vector.HatchFill.HatchFillType | stringHatchFill type.
colorstringColor.
thicknessnumberThickness.
sizenumberPattern size.

Returns:

anychart.palettes.HatchFills - Self instance for method chaining.
Setter for type palette HatchFills from list by index using patternFill.

Params:

NameTypeDescription
indexnumberIndex of hatchFill to set.
patternFillanychart.graphics.vector.PatternFillPatternFill settings.

Returns:

anychart.palettes.HatchFills - Self instance for method chaining.
Setter for type palette HatchFills from list by index using instance.

Params:

NameTypeDescription
indexnumberIndex of hatchFill to set.
instanceanychart.graphics.vector.HatchFillHatchFill instance.

Returns:

anychart.palettes.HatchFills - Self instance for method chaining.
Enables/disables type palette HatchFills from list by index.

Params:

NameTypeDescription
indexnumberIndex of hatchFill to set.
statebooleanState of hatch fill.

Returns:

anychart.palettes.HatchFills - Self instance for method chaining.