态势感知平台-开源生态与贡献价值全景-基础设施覆盖率注释样式修改
This commit is contained in:
@@ -125,7 +125,7 @@ const initInfrastructureChart = () => {
|
|||||||
chartInstances.value.infrastructureChart = myChart;
|
chartInstances.value.infrastructureChart = myChart;
|
||||||
|
|
||||||
const seriesData: any[] = [];
|
const seriesData: any[] = [];
|
||||||
const center = ['50%', '50%'];
|
const center = ['50%', '55%'];
|
||||||
|
|
||||||
infrastructureData.value.forEach(item => {
|
infrastructureData.value.forEach(item => {
|
||||||
const completeValue = item.value;
|
const completeValue = item.value;
|
||||||
@@ -222,12 +222,12 @@ const initInfrastructureChart = () => {
|
|||||||
color: d.color
|
color: d.color
|
||||||
}
|
}
|
||||||
})),
|
})),
|
||||||
orient: 'vertical',
|
orient: 'horizontal',
|
||||||
right: '5%',
|
top: '3%',
|
||||||
top: 'center',
|
left: 'center',
|
||||||
itemWidth: 12, // 图例方块宽度
|
itemWidth: 12, // 图例方块宽度
|
||||||
itemHeight: 12, // 图例方块高度
|
itemHeight: 12, // 图例方块高度
|
||||||
itemGap: 15, // 图例项之间的间距
|
itemGap: 20, // 图例项之间的间距
|
||||||
icon: 'circle', // 图例形状:'circle'圆形, 'rect'方形, 'roundRect'圆角方形
|
icon: 'circle', // 图例形状:'circle'圆形, 'rect'方形, 'roundRect'圆角方形
|
||||||
textStyle: {
|
textStyle: {
|
||||||
color: '#333',
|
color: '#333',
|
||||||
@@ -239,7 +239,7 @@ const initInfrastructureChart = () => {
|
|||||||
{
|
{
|
||||||
type: 'text',
|
type: 'text',
|
||||||
left: 'center',
|
left: 'center',
|
||||||
top: '45%',
|
top: '50%',
|
||||||
style: {
|
style: {
|
||||||
text: '总覆盖度',
|
text: '总覆盖度',
|
||||||
fill: '#666',
|
fill: '#666',
|
||||||
@@ -250,7 +250,7 @@ const initInfrastructureChart = () => {
|
|||||||
{
|
{
|
||||||
type: 'text',
|
type: 'text',
|
||||||
left: 'center',
|
left: 'center',
|
||||||
top: '52%',
|
top: '57%',
|
||||||
style: {
|
style: {
|
||||||
text: `${avgCoverage}%`,
|
text: `${avgCoverage}%`,
|
||||||
fill: '#3b82f6',
|
fill: '#3b82f6',
|
||||||
|
|||||||
Reference in New Issue
Block a user