You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "kalyanvedurumudi (via GitHub)" <gi...@apache.org> on 2024/06/10 12:43:01 UTC
[I] [Bug] - All X-Axis labels are not shown [echarts]
kalyanvedurumudi opened a new issue, #20014:
URL: https://github.com/apache/echarts/issues/20014
### Version
5.5.0
### Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=line-simple&version=5.4.3&code=PYBwLglsB2AEC8sDeBYAULTsBEBzAThACbYBcy6WVOANgKYBmYZsADADSXWbaG4AWzchy7dsAI2BgwwALYsAzK1GwAvpwxZsADwCC2iAGcWAbRVVUm7lWxEAhmDunz1m4buyQ9WAEZY7z3psDVdXbACvOlgAJn8PSOCXUJwI7wU4wLpEq2StVKiAFgyEkNy3eO8AVmKg0rKefNgANhqsuvreOllgADcosH4o6DptMFgnJOoAXXawuwNDABk7cToaFkt6rQYYMABlCAAvLPIfERyy7F66fAYaYAB3FmwwfABXaABjBzbJsIfiAMWABOc5bBr8R4sV5vOizXLYfjEOgAeT6-BodhALAYdhohjofywqkmJJyMxU2AAnvojM4LlhNgjDJCnuQYYSGZgyVQpuhVABuIA
### Steps to Reproduce
I have a simple chart, with 7 labels on the x-axis.
below are the options for axislabel under x-axis.
"axisLabel": {
"fontSize": 10,
"overflow": "truncate",
"width": 90,
"show": true,
"hideOverlap": false
}
The label seems to be truncated if the width of the label is exceeded more than 90 and ellipsis can be seen.
ISSUE: All the labels are not seen and only alternative labels are shown in the axis.
By reducing the length of the label from the axis labels, all the labels seem to be rendering.
(for ex: please remove the last character from the last label for all the labels to render)
Labels hidden

All labels seen after removing some characters from the labels.

Please go through the below link for the issue reproduction.
https://echarts.apache.org/examples/en/editor.html?c=line-simple&version=5.4.3&code=PYBwLglsB2AEC8sDeBYAULTsBEBzAThACbYBcy6WVOANgKYBmYZsADADSXWbaG4AWzchy7dsAI2BgwwALYsAzK1GwAvpwxZsADwCC2iAGcWAbRVVUm7lWxEAhmDunz1m4buyQ9WAEZY7z3psDVdXbACvOlgAJn8PSOCXUJwI7wU4wLpEq2StVKiAFgyEkNy3eO8AVmKg0rKefNgANhqsuvreOllgADcosH4o6DptMFgnJOoAXXawuwNDABk7cToaFkt6rQYYMABlCAAvLPIfERyy7F66fAYaYAB3FmwwfABXaABjBzbJsIfiAMWABOc5bBr8R4sV5vOizXLYfjEOgAeT6-BodhALAYdhohjofywqkmJJyMxU2AAnvojM4LlhNgjDJCnuQYYSGZgyVQpuhVABuIA
**Expectation**: All labels should be shown, and if the label length exceeds the width specified, the labels exceeding should be truncated.
### Current Behavior
Labels hidden when the length of the label is longer, even after width and overflow options are given.
### Expected Behavior
All labels should be shown, based on the width and overflow options, the label should be either wrapped or truncated.
### Environment
```markdown
- OS:Windows
- Browser: chrome
- Framework:
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] - All X-Axis labels are not shown [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20014:
URL: https://github.com/apache/echarts/issues/20014#issuecomment-4695650035
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] - All X-Axis labels are not shown [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20014:
URL: https://github.com/apache/echarts/issues/20014#issuecomment-2162141018
> (A) All labels should be shown, (B) based on the width and overflow options, the label should be either wrapped or truncated.
A: use _interval_, B: use shorter _width_ to see truncation - [Demo](https://echarts.apache.org/examples/en/editor.html?c=line-simple&version=5.4.3&code=PYBwLglsB2AEC8sDeAoWsDmAnCATAXMmurADYCmAZmIQAwA0x6OGAFjbA07AEbBhhgAW0IBmWsQC-jdAA8AgrIgBnQgG1uqEiVwBDMLvXdtAcmW6hICrACMsc5YomZ2kmYtXysAEz2PTl1dYd0cvUT9Q52M3B09YABYIzyig9BC4gFYkgOi02OsANmzyFNSTLHIhYAA3LzBWL2hyWTBYXRNogF1Akl0lZQAZXR5yUkItVMoYMABlCAAvckIbLlTYGvIsSlJgAHdCEzAsAFdoAGN9Ep7tXbx6wgB2VdTWPHIAeVqsUl0QQkpdKRlORriQINAwJtqoDYHRQdJuJJiN1iABPRQqIzaCbaZSsPaEI7HciI5GMSQAbiAA)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] - All X-Axis labels are not shown [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #20014: [Bug] - All X-Axis labels are not shown
URL: https://github.com/apache/echarts/issues/20014
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org
Re: [I] [Bug] - All X-Axis labels are not shown [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20014:
URL: https://github.com/apache/echarts/issues/20014#issuecomment-4760045941
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org