BarValuesDecorator

class qf_lib.plotting.decorators.bar_values_decorator.BarValuesDecorator(series: qf_lib.containers.series.qf_series.QFSeries, key: str = None)[source]

Bases: qf_lib.plotting.decorators.chart_decorator.ChartDecorator

Adds values next to each bar on the bar chart.

Parameters
  • series (QFSeries) – series that is going to be decorated by the cone

  • key (str) – see ChartDecorator.key.__init__#key

Methods

decorate(chart)

Modifies the axes object taken from the chart (e.g.

decorate(chart: Chart) → None[source]

Modifies the axes object taken from the chart (e.g. adds legend, draws cone, etc.).