Statistic

class pdfpug.modules.Statistic(label, value, **kwargs)

A statistic element can be used to show metrics. It adds emphasis with its visual appearance.

Using it is very simple as shown below!

>>> from pdfpug.modules.Statistic
>>> no_of_flights = Statistic(label="Flights", value=14567)
../_images/statistic.png
Parameters:
  • label (str) – Text to provide context of the metric
  • value (Union[str, int, float]) – Metric
  • color (Optional[Color]) – Display color
  • size (Optional[Size]) – Display size
  • orientation (Optional[Orientation]) – Layout of the label and value