BarY
plotynium.marks.BarY
BarY(data, x=None, y=None, sort=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 vertical bars based on given data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
list[T]
|
List where bar information 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
|
|
SortOptions | dict | None
|
Sort options used for ordering bars |
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/bar.py
apply
Add vertical bars on SVG content.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Selection
|
SVG Content |
required |
|
Context
|
Context |
required |