pygal.adapters module

Value adapters to use when a chart doesn’t accept all value types

pygal.adapters.decimal_to_float(x)[source]

Cast Decimal values to float

pygal.adapters.none_to_zero(x)[source]

Return 0 if value is None

pygal.adapters.not_zero(x)[source]

Return None if value is zero

pygal.adapters.positive(x)[source]

Return zero if value is negative