Line
plotynium.marks.Line
Line(data, x=None, y=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 lines between point coordinates.
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 |
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
|
Source code in plotynium/marks/line.py
apply
Adds lines from stored points on SVG content.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Selection
|
SVG Content |
required |
|
Context
|
Context |
required |
Source code in plotynium/marks/line.py
group
Groups data according to their stroke and fill values.
Returns:
Type | Description |
---|---|
list[dict]
|
List of groups defined as dictionaries where:
* the key |