highcharts-for-python / highcharts-core

Python wrapper for the Highcharts Core JavaScript library
https://www.highcharts.com/integrations/python
Other
58 stars 13 forks source link

`PieDataLabel.distance` does not support a distance of `0` #192

Closed hcpchris closed 4 months ago

hcpchris commented 4 months ago

As identified in a comment to #183 , the setter on PieDataLabel.distance is a little too-broad in validating False-y values. Because it uses the if not value: pattern, that prevents the user from being able to set PieDataLabel.distance = 0. This should be fixed to be more precise (i.e. if value is None:)