GridX
plotynium.marks.GridX
GridX(data=None, x=None, y1=None, y2=None, stroke=None, stroke_opacity=0.1, stroke_width=1, stroke_dasharray=None)
Marker for adding vertical lines from x ticks.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
list[T]
|
List of x positions where vertical lines will be placed. |
None
|
|
Callable[[T], Data] | str | None
|
X accessor function or key value |
None
|
|
Callable[[T], Data] | str | None
|
Y accessor function or key value for tail coordinates of the lines |
None
|
|
Callable[[T], Data] | str | None
|
Y accessor function or key value for head coordinates of the lines |
None
|
|
Callable[[T], str] | str | None
|
Function which takes a data and returns a color applied for |
None
|
|
float
|
Stroke width value. |
1
|
|
float
|
Stroke opacity value included in [0, 1]. |
0.1
|
|
str | None
|
Stroke dasharray value. |
None
|
Source code in plotynium/marks/grid.py
apply
Add vertical lines from x ticks.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Selection
|
SVG Content |
required |
|
Context
|
Context |
required |