Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix logic for dataLabelFormat code in Pie and Donut charts #802

Merged

Conversation

cronin4392
Copy link
Contributor

@cronin4392 cronin4392 commented Jul 22, 2020

Currently line 280 will overwrite line 279 if the chart type is PIE or DONUT.

What I did was add a conditional check, mimicking the pattern of line 278 to see if dataLabelFormat code is set, and I also moved this check up above the non-conditioned dataLabelFormatCode.

Fixes #803

@cronin4392 cronin4392 force-pushed the fix-data-label-format-code-pie-chart branch from e3348fc to 3922511 Compare July 24, 2020 19:07
@gitbrent gitbrent self-assigned this Dec 26, 2020
@gitbrent gitbrent added this to the 3.4.0 milestone Dec 26, 2020
@gitbrent gitbrent mentioned this pull request Dec 26, 2020
@gitbrent gitbrent merged commit b23bed5 into gitbrent:master Dec 26, 2020
gitbrent added a commit that referenced this pull request Dec 26, 2020
@gitbrent
Copy link
Owner

Thanks @cronin4392 !

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dataLabelFormatCode appears to be getting overwritten in Pie and Donut charts
2 participants