Skip to content

Commit c5e7f7b

Browse files
arndomrickstaa
andauthored
add pie chart layout to language card (#2099)
* 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]>
1 parent daa1977 commit c5e7f7b

File tree

5 files changed

+588
-159
lines changed

5 files changed

+588
-159
lines changed

package-lock.json

+36-109
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.md

+12
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,14 @@ You can use the `&layout=compact` option to change the card design.
423423
[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats)
424424
```
425425

426+
### Donut Chart Language Card Layout
427+
428+
You can use the `&layout=donut` option to change the card design.
429+
430+
```md
431+
[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=donut)](https://github.com/anuraghazra/github-readme-stats)
432+
```
433+
426434
### Hide Progress Bars
427435

428436
You can use the `&hide_progress=true` option to hide the percentages and the progress bars (layout will be automatically set to `compact`).
@@ -439,6 +447,10 @@ You can use the `&hide_progress=true` option to hide the percentages and the pro
439447

440448
[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=compact)](https://github.com/anuraghazra/github-readme-stats)
441449

450+
- Donut Chart layout
451+
452+
[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&layout=donut)](https://github.com/anuraghazra/github-readme-stats)
453+
442454
- Hidden progress bars
443455

444456
[![Top Langs](https://github-readme-stats.vercel.app/api/top-langs/?username=anuraghazra&hide_progress=true)](https://github.com/anuraghazra/github-readme-stats)

0 commit comments

Comments
 (0)