graphical.sparkline
OneLinePlotStyle
Bases: Enum
Styles for one-line plots.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cell_style
|
PlotCellStyle
|
One of the plot styles defined in PlotCellStyle. |
required |
Source code in src/graphical/sparkline.py
AREA = PlotCellStyle.BLOCK_V
class-attribute
instance-attribute
Style for area plots
HORIZON = PlotCellStyle.BLOCK_V
class-attribute
instance-attribute
Style for horizon plots.
LINE = PlotCellStyle.LINE_V
class-attribute
instance-attribute
Style for line plots.
SHADE = PlotCellStyle.SHADE
class-attribute
instance-attribute
Style for shaded plots.
Sparkline
A console renderable to draw a sparkline.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
values
|
List[float]
|
Values displayed in the sparkline. |
required |
value_range
|
Tuple[float, float]
|
Range of values. Defaults to None |
None
|
color
|
Union[Color, str]
|
Color of the sparkline. Defaults to "default". |
'default'
|
bgcolor
|
Union[Color, str]
|
Background color of the sparkline. Defaults to "default". |
'default'
|
plot_style
|
OneLinePlotStyle
|
Data representation syle. Defaults to OneLinePlotStyle.AREA. |
AREA
|
end
|
str
|
End character. Defaults to newline. |
'\n'
|