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: [489 343 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). Graphical output could not be included in the installation file because toolboxes cannot be greater than 20MB. To load locally the image files, download zip file http://rosa.unipr.it/fsda/images.zip and unzip it to <tt>(docroot)/FSDA/images</tt> or simply run routine <tt>downloadGraphicalOutput.m</tt>

  • 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: [489 343 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). Graphical output could not be included in the installation file because toolboxes cannot be greater than 20MB. To load locally the image files, download zip file http://rosa.unipr.it/fsda/images.zip and unzip it to <tt>(docroot)/FSDA/images</tt> or simply run routine <tt>downloadGraphicalOutput.m</tt>

    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: [489 343 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',FSColors.greysh.RGB)
    ans = 
    
      Figure (4) with properties:
    
          Number: 4
            Name: ''
           Color: [0.9400 0.9400 0.9400]
        Position: [489 343 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: [489 343 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.

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

    If x is a matrix, the function displays one funnel chart for each column of x.

    Data Types: double

    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.

    The title of the Funnel Chart specified by the user.

    Example: 'Title','The Funnel Chart'

    Data Types: char

    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