Chart
class Chart()Represents a chart with metadata from matplotlib.
Attributes:
typeChartType - The type of charttitlestr - The title of the chartelementsList[Any] - The elements of the chartpngOptional[str] - The PNG representation of the chart encoded in base64
ChartType
class ChartType(str, Enum)Chart types
Enum Members:
LINE(“line”)SCATTER(“scatter”)BAR(“bar”)PIE(“pie”)BOX_AND_WHISKER(“box_and_whisker”)COMPOSITE_CHART(“composite_chart”)UNKNOWN(“unknown”)
Chart2D
class Chart2D(Chart)Represents a 2D chart with metadata.
Attributes:
x_labelOptional[str] - The label of the x-axisy_labelOptional[str] - The label of the y-axis
PointData
class PointData()Represents a point in a 2D chart.
Attributes:
labelstr - The label of the pointpointsList[Tuple[Union[str, float], Union[str, float]]] - The points of the chart
PointChart
class PointChart(Chart2D)Represents a point chart with metadata.
Attributes:
x_ticksList[Union[str, float]] - The ticks of the x-axisx_tick_labelsList[str] - The labels of the x-axisx_scalestr - The scale of the x-axisy_ticksList[Union[str, float]] - The ticks of the y-axisy_tick_labelsList[str] - The labels of the y-axisy_scalestr - The scale of the y-axiselementsList[PointData] - The points of the chart
LineChart
class LineChart(PointChart)Represents a line chart with metadata.
Attributes:
typeChartType - The type of chart
ScatterChart
class ScatterChart(PointChart)Represents a scatter chart with metadata.
Attributes:
typeChartType - The type of chart
BarData
class BarData()Represents a bar in a bar chart.
Attributes:
labelstr - The label of the bargroupstr - The group of the barvaluestr - The value of the bar
BarChart
class BarChart(Chart2D)Represents a bar chart with metadata.
Attributes:
typeChartType - The type of chartelementsList[BarData] - The bars of the chart
PieData
class PieData()Represents a pie slice in a pie chart.
Attributes:
labelstr - The label of the pie sliceanglefloat - The angle of the pie sliceradiusfloat - The radius of the pie sliceautopctfloat - The autopct value of the pie slice
PieChart
class PieChart(Chart)Represents a pie chart with metadata.
Attributes:
typeChartType - The type of chartelementsList[PieData] - The pie slices of the chart
BoxAndWhiskerData
class BoxAndWhiskerData()Represents a box and whisker in a box and whisker chart.
Attributes:
labelstr - The label of the box and whiskerminfloat - The minimum value of the box and whiskerfirst_quartilefloat - The first quartile of the box and whiskermedianfloat - The median of the box and whiskerthird_quartilefloat - The third quartile of the box and whiskermaxfloat - The maximum value of the box and whiskeroutliersList[float] - The outliers of the box and whisker
BoxAndWhiskerChart
class BoxAndWhiskerChart(Chart2D)Represents a box and whisker chart with metadata.
Attributes:
typeChartType - The type of chartelementsList[BoxAndWhiskerData] - The box and whiskers of the chart
CompositeChart
class CompositeChart(Chart)Represents a composite chart with metadata. A composite chart is a chart that contains multiple charts (subplots).
Attributes:
typeChartType - The type of chartelementsList[Chart] - The charts (subplots) of the composite chart