-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
distance
keyword for data_labels
has no effect in pie charts
#183
Comments
Thanks, @JulienBacquart : This looks to be a bug. I'll look into it and resolve it in the next release. |
distance
keyword for data_labels
has no effect in pie charts
Hi @hcpchris Looking at the code code, I don't think it will work, because of this part: def distance(self, value):
if not value:
self._distance = None According to the PEP8 :
I think you should be using: if value is None:
self._distance = None Because if you use: if not value:
self._distance = None You will return The problem is I think I run in the same problem in other places: 'tooltip': {
'headerFormat': '',
..., In my opinion, the empty string should be a valid value to override the default 'tooltip': {
'headerFormat': 'null',
..., |
Thanks, @JulienBacquart : That's a good catch. Typically, if a false-y value is a valid value I employ the As for the |
Hi @hcpchris , It's probably because we have different hierarchies, as a parameter for a plotOptions: {
pie: {
dataLabels: {
distance: -100, plotOptions: {
series: {
dataLabels: [{
distance: 20, |
Hi @hcpchris,
From the donut-charts.ipynb demos:
The
distance
keyword for the dataLabels has no effect, whatever the value.Running:
Return:
Where the
distance
keyword is not present.If I look at the data_labels class, I can't see no
distance
keyword.But the JS class seems to have it: https://api.highcharts.com/highcharts/series.pie.dataLabels.distance
Trying to run this JS demo for the pie chart
Result in all labels overlapping because of the
distance
keyword missing:The text was updated successfully, but these errors were encountered: