funnelchart

funnelchart displays a funnel chart

Syntax

Description

Funnel chart provides a graphic representation of data values across multiple stages in a process. The chart displays progressively decreasing values in proportions amounting to 100 percent in total. For example, you could use a funnel chart to show the number of sales prospects at each stage in a sales pipeline. Typically, the values decrease gradually, allowing the bars to resemble a funnel. This type of chart can also be useful in identifying potential problem areas in an organization’s sales processes. A funnel chart is similar to a stacked percent bar chart. For more details see: https://en.wikipedia.org/wiki/Funnel_chart

example

h =funnelchart(x) funnelchart with all default options.

example

h =funnelchart(x, Name, Value) funnelchart with Labels option.

Examples

expand all

  • funnelchart with all default options.
  • x=[500 425 200 150 100 90];
    funnelchart(x)
    ans = 
    
      Figure (1) with properties:
    
          Number: 1
            Name: ''
           Color: [0.9400 0.9400 0.9400]
        Position: [488 242 560 420]
           Units: 'pixels'
    
      Use GET to show all properties
    
    
    Click here for the graphical output of this example (link to Ro.S.A. website).

  • funnelchart with Labels option.
  • x=[500 425 200 150 100 90];
    labels={'Prospects', 'Qualified prospects', 'Needs analysis', 'Price quotes', ...
    'Negotiations', 'Closed sales'};
    funnelchart(x,'Labels',labels)
    ans = 
    
      Figure (2) with properties:
    
          Number: 2
            Name: ''
           Color: [0.9400 0.9400 0.9400]
        Position: [488 242 560 420]
           Units: 'pixels'
    
      Use GET to show all properties
    
    
    Click here for the graphical output of this example (link to Ro.S.A. website).

    Related Examples

    expand all

  • funnelchart when x is a matrix.
  • x=100*abs(randn(10,4));
    x=sort(x,1,'descend');
    labels={'A', 'B', 'C', 'D', 'E', ...
    'F', 'G' 'H', 'I' 'J'};
    funnelchart(x,'Labels',labels)
    ans = 
    
      Figure (3) with properties:
    
          Number: 3
            Name: ''
           Color: [0.9400 0.9400 0.9400]
        Position: [488 242 560 420]
           Units: 'pixels'
    
      Use GET to show all properties
    
    
    Click here for the graphical output of this example (link to Ro.S.A. website)

  • funnelchart with a non-default color.
  • x=100*abs(randn(10,4));
    x=sort(x,1,'descend');
    labels={'A', 'B', 'C', 'D', 'E', ...
    'F', 'G' 'H', 'I' 'J'};
    funnelchart(x,'Labels',labels,'Color',aux.FSColors.greysh.RGB)
    ans = 
    
      Figure (4) with properties:
    
          Number: 4
            Name: ''
           Color: [0.9400 0.9400 0.9400]
        Position: [488 242 560 420]
           Units: 'pixels'
    
      Use GET to show all properties
    
    
    Click here for the graphical output of this example (link to Ro.S.A. website)

  • funnelchart with a title.
  • x=100*abs(randn(10,4));
    x=sort(x,1,'descend');
    labels={'A', 'B', 'C', 'D', 'E', ...
    'F', 'G' 'H', 'I' 'J'};
    funnelchart(x,'Labels',labels,'Title','A Funnel Chart')
    ans = 
    
      Figure (5) with properties:
    
          Number: 5
            Name: ''
           Color: [0.9400 0.9400 0.9400]
        Position: [488 242 560 420]
           Units: 'pixels'
    
      Use GET to show all properties
    
    
    Click here for the graphical output of this example (link to Ro.S.A. website)

  • Example of the use of option h.
  • Create a subplot

    ax=subplot(3,2,5);
    % Create the funnelchart inside the axes specified by ax instead of in
    % the current axes (gca)
    funnelchart(rand(5,1),'h',ax)

    Input Arguments

    expand all

    x — input data. Vector or matrix or table.

    If x is a vector, a single funnel chart is displayed.

    If x is a matrix or table with multiple columns, the function displays one funnel chart for each column of x.

    Data Types: double, table

    Name-Value Pair Arguments

    Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

    Example: 'Labels',false , 'Color',[0.12 0.6 0.15] , 'Title','The Funnel Chart' , h,ax, where ax=subplot(3,2,5);

    Labels —Box labels.character array | string array | cell array | numeric vector.

    Box labels, specified as the comma-separated pair consisting of 'Labels' and a character array, string array, cell array, or numeric vector containing the box label names. Specify one label per x value.

    Example: 'Labels',false

    Data Types: char | string | cell | single | double

    Color —Color of the boxes.character | RGB triplet vector.

    The color specified by the user.

    Example: 'Color',[0.12 0.6 0.15]

    Data Types: char | array

    Title —Title.character array | string array.

    The overall title of the Funnel Chart specified by the user if Title is a scalar else if length(Title)=size(X,2), the title will be added to each subplot.

    Example: 'Title','The Funnel Chart'

    Data Types: char or string

    h —Target axes.if you do not specify the axes the plot function uses the current axes.

    Example: h,ax, where ax=subplot(3,2,5);

    Data Types: axes object | graphics object

    Output Arguments

    expand all

    h —Graphics handle to the plot. Graphics handle

    Graphics handle which is produced on the screen.

    References

    See Also

    This page has been automatically generated by our routine publishFS