HistogramChart#
- class qf_lib.plotting.charts.histogram_chart.HistogramChart(series: Sequence, best_fit: bool = False, bins: int | str = 20, start_x: Any = None, end_x: Any = None, **plot_settings)[source]#
Bases:
ChartConstructs a new histogram based on the
seriesspecified.- Parameters:
series (Sequence) – The series to plot in the histogram.
best_fit (boolean, default
False.) – Whether a best fit line should be drawn.bins (int, str) – The amount of intervals to use for this histogram.
start_x (Any) – The upper bound of the x-axis.
end_x (Any) – The lower bound of the x-axis.
plot_settings – Options to pass to the
histfunction.