pygal.formatters module¶
Formatters to use with value_formatter and x_value_formatter configs
-
class
pygal.formatters.
Default
(precision=10)[source]¶ Bases:
pygal.formatters.Significant
,pygal.formatters.IsoDateTime
,pygal.formatters.Raw
Try to guess best format from type
-
class
pygal.formatters.
HumanReadable
(none_char='∅')[source]¶ Bases:
pygal.formatters.Formatter
Format a number to engineer scale
-
ORDERS
= 'yzafpnµm kMGTPEZY'¶
-
-
class
pygal.formatters.
Integer
[source]¶ Bases:
pygal.formatters.Formatter
Cast number to integer
-
class
pygal.formatters.
IsoDateTime
[source]¶ Bases:
pygal.formatters.Formatter
Iso format datetimes
-
class
pygal.formatters.
Raw
[source]¶ Bases:
pygal.formatters.Formatter
Cast everything to string
-
class
pygal.formatters.
Significant
(precision=10)[source]¶ Bases:
pygal.formatters.Formatter
Show precision significant digit of float