-
-
Notifications
You must be signed in to change notification settings - Fork 23.2k
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
add pie chart layout to language card #2099
add pie chart layout to language card #2099
Conversation
@arndom is attempting to deploy a commit to the github readme stats Team on Vercel. A member of the Team first needs to authorize it. |
Great PR. I think this PR will be a great addition to the GRS ecosystem. However, we might have to scale it down a bit since the card looks a bit large. I will take a look later.
The |
Thanks. I'll have a look at the failing tests later in the day, and maybe the scaling down as well. |
Great, thanks again! I think the most important thing is that the card should look nice next to the other cards and doesn't appear too big when the maximum number of languages is used. Maybe we should limit the max number of languages when the pie chart is used. @anuraghazra, what do you think? |
@rickstaa I've resolved the failing tests and scaled down the chart, left the decision of limiting languages up to you |
Co-authored-by: Rick Staa <[email protected]>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2099 +/- ##
==========================================
- Coverage 97.35% 96.82% -0.54%
==========================================
Files 24 22 -2
Lines 4311 4000 -311
Branches 393 344 -49
==========================================
- Hits 4197 3873 -324
- Misses 112 125 +13
Partials 2 2
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please replace JSDOM and d3 with pure javascript.
@arndom Feel free to request my review if you have finished applying the requested changes to this PR 👍🏻. |
…b-readme-stats into feature/pie-chart-lang-card
@anuraghazra This PR now looks good to me. You can review and merge it later. There are two things we have to decide on before this can be merged:
|
@rickstaa Wow, that's some refactor, makes things easier to follow and the tests are pretty detailed, thanks |
@anuraghazra I fixed this in f1c67a5. The pie chart is now correctly aligned for 5-10 languages. |
@anuraghazra If you want another excellent PR to merge, I think this one should be it. One of our most requested features (see #1935). 🚀 Only thing that can still be added are animations for this new layout (See #1046). 🤔 |
86aafe8
to
8bc69e7
Compare
@arndom I just wanted to review your pull request again so that it can be merged. I, however, noticed that:
I will merge this pull request if those issues are fixed 👍🏻. |
Alright @rickstaa I will make the changes |
Thanks, no rush. Please let me know when I have to review 👍🏻. |
Hey @rickstaa, I've made the changes |
Great work. Thanks again! Will merge when tests are done 👍🏻. |
@arndom merged. You can now use this on the main branch 🚀. |
* add pie chart layout to language card * resolve failing top-lang card tests * scale down pie chart * update readme.md * Update readme.md Co-authored-by: Rick Staa <[email protected]> * style: format code * update donut layout to be created without dependencies * minor update * style: format readme * resolve failing tests * refactor: clean up code and add extra tests This commit cleans up the pie chart generation code and adds additional tests. * feat: improve pie chart positioning * rename layout pie to donut * add animation to donut layout * refactor: rename pie and doughnut to donut * feat: decrease donus animation delay --------- Co-authored-by: rickstaa <[email protected]>
* add pie chart layout to language card * resolve failing top-lang card tests * scale down pie chart * update readme.md * Update readme.md Co-authored-by: Rick Staa <[email protected]> * style: format code * update donut layout to be created without dependencies * minor update * style: format readme * resolve failing tests * refactor: clean up code and add extra tests This commit cleans up the pie chart generation code and adds additional tests. * feat: improve pie chart positioning * rename layout pie to donut * add animation to donut layout * refactor: rename pie and doughnut to donut * feat: decrease donus animation delay --------- Co-authored-by: rickstaa <[email protected]>
Added pie chart layout to language card, with some updates in the test script and readme.
I wasn't clear about the
hide
functionality so I left it out for nowShould resolve #1650
EDIT (rickstaa): This should be merged after #1046 is merged.