Skip to content

Fixes Pie Charts with empty values and single slice (#89)#141

Merged
Hermanya merged 2 commits into
chart-kit:masterfrom
paulomoreno:master
Aug 9, 2019
Merged

Fixes Pie Charts with empty values and single slice (#89)#141
Hermanya merged 2 commits into
chart-kit:masterfrom
paulomoreno:master

Conversation

@paulomoreno

Copy link
Copy Markdown
Contributor

I noticed a problem with Pie Charts and empty data. I worked on a fix that also fixes another issue. I hope it helps more people facing the same problem.

  1. Pie Charts with empty values would crash the app

IMG_2E8E62F8B344-1

  1. Pie Charts with one color would not displaying correclty ( Issue Pie chart not display with 100% percentage #89 )

IMG_4144

Notice: Updating paths-js to 0.4.10 fixed the crashing and issue 89. Some checking was necessary to prevent NaN labels on empty data.

@Hermanya Hermanya self-requested a review August 8, 2019 02:57
@Hermanya Hermanya merged commit 6b2131c into chart-kit:master Aug 9, 2019
@Hermanya

Hermanya commented Aug 9, 2019

Copy link
Copy Markdown
Contributor

Good job! Thank you for your contribution 👍
This is now available in version 3.2.1

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.

2 participants