charted.charts package

Submodules

charted.charts.axes module

class charted.charts.axes.Axis(*args, **kwargs)

Bases: G

property axis_labels: G
classmethod calculate_axis_dimensions(data: list[list[float]] | None = None, stacked: bool = False, has_labels: bool = False, zero_index: bool = True) AxisDimension
classmethod calculate_axis_values(data: list[list[float]], labels: list[str] | None = None, zero_index: bool = True, stacked: bool | None = None) tuple[AxisDimension, list[float]]
property count: int
property grid_lines: Path
property labels: list[MeasuredText]
reproject(value: float) float
property reprojected_values
reverse(value: float) float
property values: list[float]
property zero: float
class charted.charts.axes.XAxis(*args, **kwargs)

Bases: Axis

property axis_labels: G
property coordinates
property grid_lines: Path
reproject(value: float) float
reverse(value: float) float
class charted.charts.axes.YAxis(*args, **kwargs)

Bases: Axis

property axis_labels: G
property coordinates
property grid_lines: Path
reproject(value: float) float
reverse(value: float) float

charted.charts.chart module

class charted.charts.chart.Chart(*args, **kwargs)

Bases: Svg

property bottom_padding: float
property colors: list[str]
property container: Path
property h_pad: float
property h_padding: float
property height: float
property left_padding: float
property legend
property plot_height: float
property plot_width: float
property representation: G
property right_padding: float
property title: MeasuredText
property top_padding: float
property v_pad: float
property v_padding: float
validate_x_data(data: list[float] | list[list[float]] | None) list[list[float]]
validate_y_data(data: list[float] | list[list[float]] | None) list[list[float]]
property width: float
property x_count: int
property x_data: list[list[float]]
property x_label_rotation: tuple[float, float, float]
property x_labels: list[MeasuredText] | None
x_stacked: bool = False
property x_values: list[list[float]]
property x_width: float
property y_count: int
property y_data: list[list[float]]
property y_labels: list[MeasuredText] | None
property y_offsets: list[list[float]]
y_stacked: bool = False
property y_values: list[list[float]]
property zero_line: Path

charted.charts.column module

class charted.charts.column.ColumnChart(*args, **kwargs)

Bases: Chart

property representation: G
property x_width: float
y_stacked: bool = True

charted.charts.line module

class charted.charts.line.LineChart(*args, **kwargs)

Bases: Chart

property representation: G
validate_x_data(data: list[float] | list[list[float]] | None) list[list[float]]

charted.charts.scatter module

class charted.charts.scatter.ScatterChart(*args, **kwargs)

Bases: Chart

property representation: G

Module contents