hebikani.graph.hist

hebikani.graph.hist(data: list[tuple[datetime.datetime, int]], width: int = 80, total: int = 0, linesep: str = '\n')[source]

Create histogram over data from left to right

The values on the left are the dates of this bucket. The values on the right are the number of reviews of this bucket.

Parameters
  • data – list[tuple[datetime, int]] The items to count over.

  • width – int The number of characters for the width (columns).

  • total – int The total number of items at the start of the histogram.

  • linesep – str The requested line seperator. default: os.linesep

Returns

histogram over data from left to right.

Return type

str