axis nametextstyle overflow truncate not working HELP ASAP
See original GitHub issueVersion
5.0.2
Steps to reproduce
I used this options
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
show: true,
name: 'bhemmmmmmmmmmmmmm gfdsmmmmmmmmmmmmmmmmmmmmmmmmmmm',
type: 'value',
nameTextStyle: {
overflow: 'truncate',
width: 10
}
},
series: [{
data: [150, 230, 224, 218, 135, 147, 260],
type: 'line'
}]
};
What is expected?
I am expecting the axis name to be truncated at a specific width
What is actually happening?
It is not getting truncated, I think the width property is not working
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
[GitHub] [echarts] JaganPandu commented on issue #15429
[GitHub] [echarts] JaganPandu commented on issue #15429: axis nametextstyle overflow truncate not working HELP ASAP.
Read more >Label can't display when ECharts label's length is too long
I just use the treemap type of EChart to show the data. But I meet a problem. And the label ...
Read more >lineOverflow:'truncate' cannot be implemented properly #15248
Set height text overflow, ellipsis not displayed ... This is the best way for us to reproduce it and solve the problem faster....
Read more >Changelog - Apache ECharts
[Fix] Fix text truncate bug in treemap when using SVG renderer. [Fix] Fix label.rotate does not work in graph. Fix #9182, contributed by...
Read more >Wrapping, truncating, and auto-rotating axis labels - amCharts
labels.template . An axis label is an object of type Label . Click the link on it to explore it's all options. For...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The
nameTruncate
property will do this job. Noticed this proprety in/echarts/src/coord/axisDefault.js
@TheLostDory
@Jagan-P & @jackielan66
nameTruncate
works for me. But i wanted to break the name, so it can appear as complete in next line ?any solution for that?
nameTextStyle: { overflow: 'break-all' | 'break', width: 10 }
Not working either