@@ -500,12 +500,23 @@ function computeAxesRefOptions(axes, propsAttr) {
500500export const TextInfo = connectToContainer ( UnconnectedFlaglist , {
501501 modifyPlotProps : ( props , context , plotProps ) => {
502502 const { localize : _ , container} = context ;
503- const options = [
503+
504+ let options = [
504505 { label : _ ( 'Label' ) , value : 'label' } ,
505506 { label : _ ( 'Value' ) , value : 'value' } ,
506507 { label : _ ( '%' ) , value : 'percent' } ,
507508 ] ;
508509
510+ if ( container . type === 'funnel' ) {
511+ options = [
512+ { label : _ ( 'Label' ) , value : 'label' } ,
513+ { label : _ ( 'Value' ) , value : 'value' } ,
514+ { label : _ ( '% initial' ) , value : 'percent initial' } ,
515+ { label : _ ( '% previous' ) , value : 'percent previous' } ,
516+ { label : _ ( '% total' ) , value : 'percent total' } ,
517+ ] ;
518+ }
519+
509520 if ( container . text ) {
510521 options . push ( { label : _ ( 'Text' ) , value : 'text' } ) ;
511522 }
@@ -591,11 +602,11 @@ export const HoverInfo = connectToContainer(UnconnectedFlaglist, {
591602 options = [ ] ;
592603 }
593604
594- if ( container . labels && [ 'pie' , 'sunburst' ] . includes ( container . type ) ) {
605+ if ( container . labels && [ 'pie' , 'sunburst' , 'funnelarea' ] . includes ( container . type ) ) {
595606 options . push ( { label : _ ( 'Label' ) , value : 'label' } ) ;
596607 }
597608
598- if ( container . values && [ 'pie' , 'sunburst' ] . includes ( container . type ) ) {
609+ if ( container . values && [ 'pie' , 'sunburst' , 'funnelarea' ] . includes ( container . type ) ) {
599610 options . push ( { label : _ ( 'Value' ) , value : 'value' } ) ;
600611 }
601612
0 commit comments