MCPcopy Create free account
hub / github.com/spotify/chartify / _histogram_example2

Function _histogram_example2

chartify/examples.py:894–900  ·  view source on GitHub ↗

# Horizontal histogram

(data)

Source from the content-addressed store, hash-verified

892
893@_print_source
894def _histogram_example2(data):
895 """# Horizontal histogram"""
896 ch = chartify.Chart(blank_labels=True, x_axis_type="density")
897 ch.set_title("Horizontal histogram with grouping")
898 ch.set_subtitle("")
899 ch.plot.histogram(data_frame=data, values_column="unit_price", color_column="fruit")
900 ch.show(_OUTPUT_FORMAT)
901
902
903plot_histogram.__doc__ = _core.plot.PlotNumericDensityXY.histogram.__doc__

Callers 1

plot_histogramFunction · 0.85

Calls 4

set_titleMethod · 0.95
set_subtitleMethod · 0.95
showMethod · 0.95
histogramMethod · 0.80

Tested by

no test coverage detected