@@ -45,6 +45,9 @@ const QualityPieChart: React.FC<QualityPieChartProps> = function ({ annotationTy
45
45
const wrongOrRemovedBg = useColorModeValue ( 'rgba(161, 56, 56, 0.2)' , 'rgba(211, 104, 104, 0.2)' ) ;
46
46
const wrongOrRemovedBorder = useColorModeValue ( 'rgba(133, 47, 47, 1)' , 'rgba(230, 153, 153, 1)' ) ;
47
47
48
+ const missedBg = useColorModeValue ( 'rgba(114,56,161,0.2)' , 'rgba(168,104,211,0.2)' ) ;
49
+ const missedBorder = useColorModeValue ( 'rgb(89,47,133)' , 'rgb(193,153,230)' ) ;
50
+
48
51
const unsureBg = useColorModeValue ( 'rgba(161, 144, 56, 0.2)' , 'rgba(211, 186, 104, 0.2)' ) ;
49
52
const unsureBorder = useColorModeValue ( 'rgba(133, 122, 47, 1)' , 'rgba(230, 215, 153, 1)' ) ;
50
53
@@ -54,6 +57,8 @@ const QualityPieChart: React.FC<QualityPieChartProps> = function ({ annotationTy
54
57
const textColor = useColorModeValue ( '#000' , '#FFF' ) ;
55
58
56
59
const autogeneratedAnnotations = annotations . filter ( ( it ) => ( it . authors ?? [ ] ) . includes ( '$autogen$' ) ) ;
60
+ const manualAnnotations = annotations . filter ( ( it ) => ! ( it . authors ?? [ ] ) . includes ( '$autogen$' ) ) ;
61
+
57
62
const numberOfCorrectAnnotations = autogeneratedAnnotations . filter (
58
63
( it ) => ! it . isRemoved && isCorrect ( it ) && ( it . authors ?? [ ] ) . length <= 1 ,
59
64
) . length ;
@@ -63,6 +68,7 @@ const QualityPieChart: React.FC<QualityPieChartProps> = function ({ annotationTy
63
68
const numberOfWrongOrRemovedAnnotations = autogeneratedAnnotations . filter (
64
69
( it ) => it . isRemoved || it . reviewResult === ReviewResult . Wrong ,
65
70
) . length ;
71
+ const numberOfMissedAnnotations = manualAnnotations . filter ( ( it ) => ! it . isRemoved && isCorrect ( it ) ) . length ;
66
72
const numberOfUnsureAnnotations = autogeneratedAnnotations . filter (
67
73
( it ) => ! it . isRemoved && it . reviewResult === ReviewResult . Unsure ,
68
74
) . length ;
@@ -71,18 +77,26 @@ const QualityPieChart: React.FC<QualityPieChartProps> = function ({ annotationTy
71
77
) . length ;
72
78
73
79
const data = {
74
- labels : [ 'Correct' , 'Changed' , 'Wrong or Removed' , 'Unsure' , 'Unchecked' ] ,
80
+ labels : [ 'Correct' , 'Changed' , 'Wrong or Removed' , 'Missed' , ' Unsure', 'Unchecked' ] ,
75
81
datasets : [
76
82
{
77
83
data : [
78
84
numberOfCorrectAnnotations ,
79
85
numberOfChangedAnnotations ,
80
86
numberOfWrongOrRemovedAnnotations ,
87
+ numberOfMissedAnnotations ,
81
88
numberOfUnsureAnnotations ,
82
89
numberOfUncheckedAnnotations ,
83
90
] ,
84
- backgroundColor : [ correctBg , changedBg , wrongOrRemovedBg , unsureBg , uncheckedBg ] ,
85
- borderColor : [ correctBorder , changedBorder , wrongOrRemovedBorder , unsureBorder , uncheckedBorder ] ,
91
+ backgroundColor : [ correctBg , changedBg , wrongOrRemovedBg , missedBg , unsureBg , uncheckedBg ] ,
92
+ borderColor : [
93
+ correctBorder ,
94
+ changedBorder ,
95
+ wrongOrRemovedBorder ,
96
+ missedBorder ,
97
+ unsureBorder ,
98
+ uncheckedBorder ,
99
+ ] ,
86
100
borderWidth : 1 ,
87
101
} ,
88
102
] ,
0 commit comments