WangJinfeng000202 opened a new issue, #20617:
URL: https://github.com/apache/echarts/issues/20617
### Version
5.1.0.0-current
### Link to Minimal Reproduction
without
### Steps to Reproduce
``
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ECharts 饼图示例</title>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.2.2/echarts.min.js"></script>
</head>
<body>
<div id="main" style="width: 600px; height: 400px;"></div>
<script>
var myChart = echarts.init(document.getElementById('main'));
var option = {
title: {
text: '访问来源',
left: 'center'
},
legend: {
icon: 'circle',
itemWidth: 8
},
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b} : {c} ({d}%)'
},
series: [
{
name: '访问来源',
type: 'pie',
radius: '50%',
data: [
{value: 1048, name: '搜索引擎'},
{value: 735, name: '直接访问'},
{value: 580, name: '邮件营销'},
{value: 484, name: '联盟广告'},
{value: 300, name: '视频广告'}
],
emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
},
itemStyle: {
borderWidth: 1,
borderColor: '#ffffff'
},
label: {
show: true,
color: 'inherit'
}
}
]
};
myChart.setOption(option);
</script>
</body>
</html>
`
`
### Current Behavior
when pie legend icon="circle", series itemStyle influence it's size.
### Expected Behavior
legend icon size keep it the same
### Environment
```markdown
OS: macOS Monterey
Browser: Chrome 96.0.4664.55
Framework Vue
```
### 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]