Skip to content

Commit

Permalink
add datalabel pie chart
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdu committed Feb 22, 2025
1 parent 0928e82 commit f9eb3cc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ export class FindingStatusChartComponent {
}
},
datalabels: {
display: false
display: true,
color: '#fff',
font: {
weight: 'bold',
size: 14
},
formatter: (value: any) => {
return value > 0 ? value : '';
}
}
}
};
Expand Down
Empty file.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {UIChart} from 'primeng/chart';
UIChart
],
templateUrl: './severity-chart.component.html',
styleUrl: './severity-chart.component.scss'
})
export class SeverityChartComponent {

Expand Down Expand Up @@ -44,7 +43,15 @@ export class SeverityChartComponent {
}
},
datalabels: {
display: false
display: true,
color: '#fff',
font: {
weight: 'bold',
size: 14
},
formatter: (value: any) => {
return value > 0 ? value : '';
}
}
}
};
Expand Down

0 comments on commit f9eb3cc

Please sign in to comment.