@@ -27,8 +27,10 @@ export class BoxPlotController extends StatsBase<IBoxPlot, Required<IBoxplotOpti
2727 }
2828
2929 _transformStats < T > ( target : any , source : IBoxPlot , mapper : ( v : number ) => T ) {
30- for ( const key of [ 'min' , 'max' , 'median' , 'q3' , 'q1' , 'whiskerMin' , 'whiskerMax' ] ) {
31- target [ key ] = mapper ( source [ key as 'min' | 'max' | 'median' | 'q3' | 'q1' | 'whiskerMin' | 'whiskerMax' ] ) ;
30+ for ( const key of [ 'min' , 'max' , 'median' , 'q3' , 'q1' , 'whiskerMin' , 'whiskerMax' , 'mean' ] ) {
31+ target [ key ] = mapper (
32+ source [ key as 'min' | 'max' | 'median' | 'q3' | 'q1' | 'whiskerMin' | 'whiskerMax' | 'mean' ]
33+ ) ;
3234 }
3335 for ( const key of [ 'outliers' , 'items' ] ) {
3436 if ( Array . isArray ( source [ key as keyof IBoxPlot ] ) ) {
@@ -47,7 +49,7 @@ export class BoxPlotController extends StatsBase<IBoxPlot, Required<IBoxplotOpti
4749 numbers : {
4850 type : 'number' ,
4951 properties : BarController . defaults . datasets . animation . numbers . properties . concat (
50- [ 'q1' , 'q3' , 'min' , 'max' , 'median' , 'whiskerMin' , 'whiskerMax' ] ,
52+ [ 'q1' , 'q3' , 'min' , 'max' , 'median' , 'whiskerMin' , 'whiskerMax' , 'mean' ] ,
5153 boxOptionsKeys . filter ( ( c ) => ! c . endsWith ( 'Color' ) )
5254 ) ,
5355 } ,
0 commit comments