style(ops): 还原饼图右侧图例,饼图回到左侧布局
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -422,11 +422,20 @@ function getStatusDistributionChartOptions(): ECOption {
|
|||||||
return `${marker}${params.name}<br/><span style="font-size:16px;font-weight:600">${params.value}</span> 个 <span style="color:#8c8c8c;margin-left:4px">${params.percent}%</span>`;
|
return `${marker}${params.name}<br/><span style="font-size:16px;font-weight:600">${params.value}</span> 个 <span style="color:#8c8c8c;margin-left:4px">${params.percent}%</span>`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
legend: { show: false },
|
legend: {
|
||||||
|
orient: 'vertical',
|
||||||
|
right: '4%',
|
||||||
|
top: 'center',
|
||||||
|
itemWidth: 10,
|
||||||
|
itemHeight: 10,
|
||||||
|
itemGap: 14,
|
||||||
|
icon: 'circle',
|
||||||
|
textStyle: { fontSize: 12, color: '#595959' },
|
||||||
|
},
|
||||||
graphic: [
|
graphic: [
|
||||||
{
|
{
|
||||||
type: 'text',
|
type: 'text',
|
||||||
left: 'center',
|
left: '23%',
|
||||||
top: '38%',
|
top: '38%',
|
||||||
style: {
|
style: {
|
||||||
text: `${total}`,
|
text: `${total}`,
|
||||||
@@ -438,7 +447,7 @@ function getStatusDistributionChartOptions(): ECOption {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'text',
|
type: 'text',
|
||||||
left: 'center',
|
left: '23%',
|
||||||
top: '55%',
|
top: '55%',
|
||||||
style: {
|
style: {
|
||||||
text: '近7天工单',
|
text: '近7天工单',
|
||||||
@@ -453,7 +462,7 @@ function getStatusDistributionChartOptions(): ECOption {
|
|||||||
name: '工单状态分布',
|
name: '工单状态分布',
|
||||||
type: 'pie',
|
type: 'pie',
|
||||||
radius: ['48%', '70%'],
|
radius: ['48%', '70%'],
|
||||||
center: ['50%', '50%'],
|
center: ['25%', '50%'],
|
||||||
avoidLabelOverlap: false,
|
avoidLabelOverlap: false,
|
||||||
label: { show: false },
|
label: { show: false },
|
||||||
emphasis: {
|
emphasis: {
|
||||||
|
|||||||
Reference in New Issue
Block a user