AreaY
plotynium.marks.AreaY
AreaY(data, x=None, y=None, y1=None, y2=None, fill=None, fill_opacity=1.0, stroke=None, stroke_width=1.0, stroke_opacity=1.0, stroke_dasharray=None, opacity=1.0)
Marker for drawing areas defined by y positions.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
list[T]
|
List where point coordinates are stored. |
required |
|
Callable[[T], Data] | str | None
|
X accessor function or key value |
None
|
|
Callable[[T], Data] | str | None
|
Y accessor function or key value when area begins from |
None
|
|
Callable[[T], Data] | str | None
|
Y accessor function or key value for y positions for the bottom area's part (do
not specify |
None
|
|
Callable[[T], Data] | str | None
|
Y accessor function or key value for y positions for the top area's part (do
not specify |
None
|
|
Callable[[T], str] | str | None
|
Function which takes a data and returns a color applied for |
None
|
|
float
|
Fill opacity value included in [0, 1]. |
1.0
|
|
Callable[[T], str] | str | None
|
Function which takes a data and returns a color applied for |
None
|
|
float
|
Stroke width value. |
1.0
|
|
float
|
Stroke opacity value included in [0, 1]. |
1.0
|
|
str | None
|
Stroke dasharray value. |
None
|
|
float
|
General opacity value included in [0, 1]. |
1.0
|
Raises:
Type | Description |
---|---|
RuntimeError
|
When incoherence found between 'y0' and 'y1' domains. |
ValueError
|
When 'y' is undefined or 'y1' and 'y2' are undefined. |
Source code in plotynium/marks/area.py
apply
Add an area defined by y values on SVG content.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Selection
|
SVG Content |
required |
|
Context
|
Context |
required |