Skip to content

Linefill

Handle for a linefill between two lines.

Static Methods

new

navi
Linefill.new(
    line1: series Line,
    line2: series Line,
    color: series color
  ): series Linefill

Creates a new linefill object and displays it on the chart, filling the space between line1 and line2 with the color specified in color.

Parameters

NameTypeDefaultDescription
line1series Line
line2series Line
colorseries color

Returns: series Linefill

Static Properties

all

Type: series Array<Linefill>

Returns an array filled with all the current linefills drawn by the script.

Methods

delete

navi
Linefill.delete(id: series Linefill)

Deletes the specified linefill from the chart.

Parameters

NameTypeDefaultDescription
idseries Linefill

get_line1

navi
Linefill.get_line1(id: series Linefill): series Line

Returns the first line of the linefill.

Parameters

NameTypeDefaultDescription
idseries Linefill

Returns: series Line


get_line2

navi
Linefill.get_line2(id: series Linefill): series Line

Returns the second line of the linefill.

Parameters

NameTypeDefaultDescription
idseries Linefill

Returns: series Line


set_color

navi
Linefill.set_color(id: series Linefill, color: series color)

Sets the color of the linefill.

Parameters

NameTypeDefaultDescription
idseries Linefill
colorseries color

Released under the MIT License.