Comments (10)
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 :
Is it messy, right? How should we fix this?
from github-langs.
@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.
I'm aware of this. I thought this bug was from chart.js
? Let's discuss it here
from github-langs.
@juancuiule, Please do, I don't mind at all 😉
Thank you :)
from github-langs.
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.
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.
how many languages are you thinking?
from github-langs.
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.
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.
Closed by #41
from github-langs.
Related Issues (20)
- Cannot accessing the app on normal browsing mode HOT 6
- Watch changes file SCSS HOT 3
- Links on 404 not found page are not clear enough HOT 6
- [Open for suggestion] What's next for github-langs HOT 2
- Differentiate between original & forked repositories HOT 2
- [Help needed] add unit test for utils: chart.js HOT 9
- [Help needed] add unit test for utils: social.js
- [Help needed] add unit test for util: spinner.js HOT 2
- Better code structure HOT 2
- Preview URL upon Pull Request creation
- Functionality test cases
- Heroku starts charging the app; let's move to the another cloud platform HOT 2
- Upgrade node to the LTS version HOT 1
- `npm start` produces public/css/screen/base.min.css differently each time HOT 1
- Update badges HOT 1
- Can't browse the repositories from each language
- Separate `frontend` and `backend` directory
- Change to auth request instead of `client_id` and `client_secret` HOT 1
- Differentiate between `personal` and `org` when browsing repositories
- Graceful handle for big data being fetched HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-langs.