Skip to content

Commit

Permalink
Merge pull request biigle#525 from biigle/ImprovedLblPieChart
Browse files Browse the repository at this point in the history
Improved lbl pie chart
  • Loading branch information
mzur authored Dec 9, 2022
2 parents 88394fa + 23ab9a8 commit 61b0b50
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
ret.push(formatObj);
}
return ret;
return ret.sort((a, b) => b.value - a.value);
},
option() {
return {
Expand All @@ -60,6 +60,12 @@ export default {
trigger: 'item',
formatter: '{b} : <b>{c}</b> ({d}%)'
},
legend: {
orient: 'horizontal',
bottom: '5%',
left: 'center',
type: 'scroll',
},
series: [
{
type: 'pie',
Expand Down

0 comments on commit 61b0b50

Please sign in to comment.