Skip to content

Add an option to display byte count for Top-languages #3707

@abap34

Description

@abap34

Is your feature request related to a problem? Please describe.

Currently, the Top Language Card only displays the percentage of each language used. However, adding an option to display byte counts could incentivize more coding activity, thereby increasing the amount of code generated by individuals.

Describe the solution you'd like

I have already implemented this on my self-hosted github-readme-stats.
( So, if there is demand for this feature from the community, I can clean up the implementation and submit a pull request :)

This can be achieved by making minor modifications to the api/top-lang.js and src/cards/top-languages-card.js.

Describe alternatives you've considered

No response

Additional context

It might require CSS adjustments for many layouts. For instance, the default layout appears as follows:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.featurelang-cardIssues related to the language card.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions