@@ -10,18 +10,18 @@ interface RatingDistributionProps {
1010 resultFilter ?: 'all' | 'accepted' | 'rejected' ; // 通过性筛选状态
1111}
1212
13- // Rating 区间定义
13+ // Rating 区间定义(分数由高到低排序)
1414const RATING_RANGES = [
15- { min : 800 , max : 1199 , label : 'Newbie' , color : '#808080' } ,
16- { min : 1200 , max : 1399 , label : 'Pupil' , color : '#008000' } ,
17- { min : 1400 , max : 1599 , label : 'Specialist' , color : '#03a89e' } ,
18- { min : 1600 , max : 1899 , label : 'Expert' , color : '#0000ff' } ,
19- { min : 1900 , max : 2099 , label : 'Candidate Master' , color : '#aa00aa' } ,
20- { min : 2100 , max : 2299 , label : 'Master' , color : '#ff8c00' } ,
21- { min : 2300 , max : 2399 , label : 'International Master' , color : '#ff8c00' } ,
22- { min : 2400 , max : 2599 , label : 'Grandmaster' , color : '#ff0000' } ,
23- { min : 2600 , max : 2999 , label : 'International Grandmaster' , color : '#ff0000' } ,
2415 { min : 3000 , max : 5000 , label : 'Legendary Grandmaster' , color : '#ff0000' } ,
16+ { min : 2600 , max : 2999 , label : 'International Grandmaster' , color : '#ff0000' } ,
17+ { min : 2400 , max : 2599 , label : 'Grandmaster' , color : '#ff0000' } ,
18+ { min : 2300 , max : 2399 , label : 'International Master' , color : '#ff8c00' } ,
19+ { min : 2100 , max : 2299 , label : 'Master' , color : '#ff8c00' } ,
20+ { min : 1900 , max : 2099 , label : 'Candidate Master' , color : '#aa00aa' } ,
21+ { min : 1600 , max : 1899 , label : 'Expert' , color : '#0000ff' } ,
22+ { min : 1400 , max : 1599 , label : 'Specialist' , color : '#03a89e' } ,
23+ { min : 1200 , max : 1399 , label : 'Pupil' , color : '#008000' } ,
24+ { min : 800 , max : 1199 , label : 'Newbie' , color : '#808080' } ,
2525] ;
2626
2727// 未定分题目区间
0 commit comments