Skip to content
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

Component | Donut: Rendering empty segments #116

Merged
merged 1 commit into from
Jan 27, 2023
Merged

Conversation

reb-dev
Copy link
Collaborator

@reb-dev reb-dev commented Jan 24, 2023

This PR fixes the appearance of empty segments when padAngle is set.

showEmptySegments: true

Screen Shot 2023-01-23 at 4 21 05 PM

showEmptySegments: true
padAngle: 0.02

Screen Shot 2023-01-23 at 4 16 58 PM

@reb-dev reb-dev requested a review from rokotyan January 24, 2023 00:25
@reb-dev reb-dev linked an issue Jan 24, 2023 that may be closed by this pull request
@rokotyan
Copy link
Contributor

@reb-dev I like your approach but it doesn't solve the wrong segment colors problem, when showEmptySegments is set to false:
image

Also, can you please combine my WIP commit with yours and update the commit history?

@reb-dev reb-dev force-pushed the fix/donut-empty-segments branch 4 times, most recently from 892dc76 to 1ad9a60 Compare January 26, 2023 00:30
packages/ts/src/components/donut/types.ts Outdated Show resolved Hide resolved
packages/ts/src/components/donut/index.ts Outdated Show resolved Hide resolved
@rokotyan rokotyan merged commit 9c6973a into main Jan 27, 2023
@rokotyan rokotyan changed the title Fix: Donut empty segments Component | Donut: Rendering empty segments Feb 15, 2023
@rokotyan rokotyan mentioned this pull request Feb 15, 2023
@rokotyan rokotyan deleted the fix/donut-empty-segments branch May 22, 2023 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Component | Graph: padAngle doesn't work well with showEmptySegments
2 participants