AxisX
plotynium.marks.AxisX
AxisX(data=None, x=None, y=None, anchor='bottom', label=None, fill=None, tick_rotate=0.0, tick_size=6, tick_format=None, stroke=None, stroke_opacity=1.0, stroke_width=1)
Marker for making an X axis.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
list[T] | None
|
List of data for making X axis |
None
|
|
Callable[[T], Data] | str | None
|
X accessor function or key value |
None
|
|
Callable[..., float] | str | None
|
Y accessor function or key value |
None
|
|
Literal['top', 'bottom']
|
Anchor location, where |
'bottom'
|
|
str | None
|
Label of the x axis. |
None
|
|
str | None
|
Fill color value. |
None
|
|
float
|
Tick rotation value. |
0.0
|
|
int
|
Tick size value. |
6
|
|
Callable[[T], str] | None
|
Tick format function which takes a data and returns a string. |
None
|
|
str | None
|
Stroke color value. |
None
|
|
float
|
Stroke opacity value included in [0, 1]. |
1.0
|
|
float
|
Stroke width value. |
1
|
Source code in plotynium/marks/axis.py
apply
Add X axis to SVG content
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Selection
|
SVG Content |
required |
|
Context
|
Context |
required |