Skip to content

Commit

Permalink
fix: Added unallocated capacity legend to homepage cluster capacity p…
Browse files Browse the repository at this point in the history
…ie chart
  • Loading branch information
wangdaiming authored and SeanHai committed Dec 18, 2023
1 parent d2a6149 commit ceeccb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/charts/cluster-overview/ClusterSpaceChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ const drawChart = () => {
legend: {
bottom: 10,
left: 'center',
data: ['已分配不可回收容量', '已分配可回收容量'],
data: ['已分配不可回收容量', '已分配可回收容量','未分配容量'],
formatter: function (name: string) {
return name.length > 10 ? name.substr(0, 10) + '...' : name
}
},
}
myChart.value.setOption(option)
Expand Down

0 comments on commit ceeccb4

Please sign in to comment.