AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.2.0 version of this document. Switch to the 8.2.1 version to see the up to date information.

class anychart.utils.HatchFillPalette Improve this Doc

Extends: anychart.Base

HatchFills palette.

Methods Overview

Miscellaneous
hatchFillAt()Setter for the hatchFill at index if the opt_hatchFill set, getter otherwise.
hatchFills()Getter/setter for hatchFills list of palette.

Methods Description

hatchFillAt

Setter for the hatchFill at index if the opt_hatchFill set, getter otherwise.

Params:

Name Type Description
index number Index of hatchFill to get/set.
patternFillOrTypeOrState anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill | function | anychart.graphics.vector.HatchFill.HatchFillType | string | boolean PatternFill or HatchFill instance or type or state of hatch fill.
color string Color.
thickness number Thickness.
size number Pattern size.

hatchFills

Getter/setter for hatchFills list of palette.

Params:

Name Type Description
hatchFills Array.<(anychart.graphics.vector.HatchFill|anychart.graphics.vector.PatternFill)> .

Returns:

Array.<(anychart.graphics.vector.HatchFill|anychart.graphics.vector.PatternFill)> anychart.utils.HatchFillPalette - HatchFills list or self for method chaining.