GithubHelp home page GithubHelp logo

Comments (10)

wildan3105 avatar wildan3105 commented on August 28, 2024 1

Found an issue about it chartjs

After change the xAxes into this :

xAxes: [{
          stacked: false,
          beginAtZero: true,
          ticks: {
            fontColor: color,
            autoSkip: false
          }
        }]

Then it printed out all the x-axis title like this :

numpuk

Is it messy, right? How should we fix this?

from github-langs.

juancuiule avatar juancuiule commented on August 28, 2024 1

@wildan3105 when I added the chart I realized that this was happening and made some css rules in order to make the graph responsive, but when we load an user with such an amount of languages it breaks anyway. We could try by showing the language tag when the bar is :hover. I can take a look at this later today, but if @IOAyman wants to take it that's 👍

from github-langs.

wildan3105 avatar wildan3105 commented on August 28, 2024

I'm aware of this. I thought this bug was from chart.js? Let's discuss it here

from github-langs.

IOAyman avatar IOAyman commented on August 28, 2024

@juancuiule, Please do, I don't mind at all 😉

Thank you :)

from github-langs.

juancuiule avatar juancuiule commented on August 28, 2024

Google screenshot:
screenshot from 2017-10-11 16 27 34

Regular Human screenshot:
screenshot from 2017-10-11 16 27 49

I found that we could rotate the xAxis labels 90° an they will fit if we make the graph almost 100% width which does not look good with a few languages... we can add something to change this in execution time analyzing the number of languages that the user has.

@IOAyman @wildan3105 any feedback?

from github-langs.

wildan3105 avatar wildan3105 commented on August 28, 2024

I think we should limit the display of chart when a user has more than n repo language to fit the screen. My thought is the screen should remain constant, and the width must not exceed too far from the width of search bar.

from github-langs.

juancuiule avatar juancuiule commented on August 28, 2024

how many languages are you thinking?

from github-langs.

wildan3105 avatar wildan3105 commented on August 28, 2024

As long as it not exceed the screen bar's width too much, that would be okay. I could see that chart.js has a relative size for single vertical bar based on the data length, right? Maybe we could do trial-error (with different user's repo amount) to count how many languages are best to display.

from github-langs.

juancuiule avatar juancuiule commented on August 28, 2024

I think that 20 is a good number, and I think that we could add a few features (a dropdown or something like that) in order to allow the user to see more than 20, or just to sum every other language in a bar that says "Others"

from github-langs.

wildan3105 avatar wildan3105 commented on August 28, 2024

Closed by #41

from github-langs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.