[Bug] Radar chart setting the overflow property of the indicator text has no effect
See original GitHub issueVersion
5.2.2
Link to Minimal Reproduction
https://codepen.io/jianyf-jianyf/pen/rNGbgoP
Steps to Reproduce
- create a radar chart with below option
option = {
title: {
text: 'Proportion of Browsers',
subtext: 'Fake Data',
top: 10,
left: 10
},
tooltip: {
trigger: 'item'
},
legend: {
type: 'scroll',
bottom: 10,
data: (function () {
var list = [];
for (var i = 1; i <= 28; i++) {
list.push(i + 2000 + '');
}
return list;
})()
},
visualMap: {
top: 'middle',
right: 10,
color: ['red', 'yellow'],
calculable: true
},
radar: {
indicator: [
{ text: 'IE8werwrerwrwerwerwerwerwrwerwer-', max: 400 },
{ text: 'IE9+werwrwerwerwerwerwerwerwerwerwerwerwe', max: 400 },
{ text: 'Safari', max: 400 },
{ text: 'Firefox', max: 400 },
{ text: 'Chrome', max: 400 }
],
radius: '35%',
center: ['50%', '50%'],
width: 10,
axisName: {
show: true,
overflow: 'truncate',
ellipsis: '...',
},
},
series: (function () {
var series = [];
for (var i = 1; i <= 28; i++) {
series.push({
type: 'radar',
symbol: 'none',
lineStyle: {
width: 1
},
emphasis: {
areaStyle: {
color: 'rgba(0,250,0,0.3)'
}
},
data: [
{
value: [
(40 - i) * 10,
(38 - i) * 4 + 60,
i * 5 + 10,
i * 9,
(i * i) / 2
],
name: i + 2000 + ''
}
]
});
}
return series;
})()
};
Current Behavior
You can see that the indicator text is not truncated
Expected Behavior
Indicator text is truncated normally like this image
Environment
- OS: mac 12.1
- Browser: chrome 95.0.4638.69(正式版本) (x86_64)
Any additional comments?
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
Newest 'radar-chart' Questions - Stack Overflow
I'm using chart js 3 to draw a radar graph . I'm getting labels text from backend . I'm trying to make labels...
Read more >Changelog - Apache ECharts
[Fix] Fix overflow symbol not display when clip is set false in line series. ... which enables setting different color for each indicator...
Read more >fl_chart | Flutter Package - Pub.dev
A powerful Flutter chart library, currently supporting Line Chart, Bar Chart and Pie Chart.
Read more >IBM Cognos Analytics - Reporting Version 11.1 : User Guide
Range Indicator Charts. ... Set the Position of the First Slice in a Pie Chart. ... Overflow Error Occurs When a Value in...
Read more >franklin.chm.colostate.edu/ebooks/widgets/populati...
Text function has been removed o The Radar chart option ... common method o The default overflow: CSS setting for tooltips is now...
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 workaround I’ve found, I’ve posted in issue https://github.com/apache/echarts/issues/13551#issuecomment-1280431622
Seems a duplicate of https://github.com/apache/echarts/issues/13551