Jump to content
We've recently updated our Privacy Statement, available here. ×
  • Configuring a Combination Chart as a Pareto Chart


    Introduction to Pareto Chart

    Pareto charts highlight the most important among a (typically large) set of factors by combining both bars and line graph, with individual values represented by bars in descending order, and the cumulative total represented by the line. They are useful when analyzing data where many courses of action are competing for attention, for instance indicating the frequency or causes of problems, as well as their cumulative impact. Pareto charts help to find the problems to prioritize in order to observe the greatest overall improvement.

    Learn more about visualizations and dashboards with Spotfire®

    Creating a Pareto Chart in Spotfire®

    This configuration works with all versions of Spotfire. This tutorial uses the "Sales and Marketing" sample analysis available in the Spotfire library (Library > Samples > Sales and Marketing). Open the "Sales & Marketing" sample analysis and create a new blank page.

    image.thumb.png.f2fbbd9efe3ceab4b708f0672bbceb45.png

     

    The Pareto chart is created with a Combination Chart. Open the visualization panel and add a Combination Chart to the canvas.

    image.thumb.png.8f5df9877d0c83d981daabb6cfc30963.png

     

    Select a category column in the X-axis and select 2 columns on the Y-axis. In this example we use the (State) column as X-axis and (Class Sales) as Y-axis twice.

    image.thumb.png.02ea77e7d7bd736ee6fe19c5a776a624.png

     

    Change the aggregation type for one Y-axis to "Cumulative Sum". 

    image.thumb.png.044d1afe50a74619ba3c2eb1da7b9383.png

     

     

     

     

     

     

     

     

     

     

     

     

    Sort X-axis by the calculation column to re-order all bars including the cumulative column. Open Combination Chart properties > Appearance and set Sort x-axis by: to "Sum(Class Sales)" in this example.

    image.thumb.png.adfd233121832a852332f2e1c03a3b37.png

     

    Make sure the X-axis only uses the currently filtered data instead of showing all data by default which may cause the line chart to display incorrectly when filtering data. Open Combination Chart properties > X-axis > Settings... and set Evaluate axis expression on: to "Current filtering only".

    image.thumb.png.fabb19fc7efb7bfd5f10d3b306b734dd.png

     

    Now, in order to configure the Combination Chart as a Pareto Chart, the Y-axis cumulative calculation must be modified. Right-click on its Y-axis selector and select "Custom Expression..."

    image.thumb.png.dba27d30e238127cf84594e9eacffda6.png

     

    Modify the expression to use the "AllNext" function instead of the default "AllPrevious" function. In this example, the expression should be as follows: Sum([Class Sales]), Sum([Class Sales]) THEN Sum([Value]) OVER (AllNext([Axis.X]))

    image.thumb.png.ad709db23dae054372220c9326df638f.png

     

    Clicking OK should result with the following visualization:

    image.thumb.png.0d7aa00f7da4544353f57e2aebee6aaa.png

     

    You will notice that the cumulative calculation still does not look as expected. This is because the computation is still based on the original order of the (State) column. To re-order the original sequence by including the height of the bars we need to modify the X-axis expression. Right-click on the X-axis selector and select "Custom Expression"...

    image.thumb.png.927e6ca6439133ba5ffeab2496225fee.png

     

    Modify the expression to use the height of the bars. In this example, the expression should be as follows: <Sum([Class Sales])over([state]) NEST [state]>

    image.thumb.png.d3e5f8c86ef5ce6bd2be8bb88619243c.png

     

    Clicking OK should result with the following visualization:

    image.thumb.png.b066bfd231a244f336f469cd973fd01e.png

     

    Now we can change the cumulative bards to show as a line to get closer to a Pareto chart. From the Combination Chart legend, click the bars icon for the cumulative calculation Y-axis and set it to "Show as lines".

    image.thumb.png.03d98a54f9bf1ebe33a8920482ddae1d.png

    Additional Configurations

    Allowing each Y-axis to have its own scale

    Right-click the Y-axis scale and set it to "Multiple Scales"

    image.thumb.png.03040e7163fadad2bb329bf1a891a1e1.png

     

    Turning cumulative calculation into percentage

    Right-click on the Y-axis selector for the cumulative calculation and select "Custom Expression...". Modify the expression as follows:

    Sum([Class Sales]) as [sales], Sum([Class Sales]) THEN Sum([Value]) OVER (AllNext([Axis.X])) / (Sum([Value]) OVER (All([Axis.X]))) as [Cum%]

    image.thumb.png.6475bcf6a3cda64d20265df8820e2c70.png

     

    Clicking OK should result with the following visualization:

    image.thumb.png.cfa2af077853a16f1a2db5177ad2a348.png

     

    Display the (Cum%) as percentage. Open Combination Chart properties > Formatting and set Y:Cum% to percentage.

    image.thumb.png.6f73e5d4008ad0f736fed856ffe8e74f.png

     

    Set the Y-axis for cumulative calculation to "Show as Iines" again.

    image.thumb.png.0fbf8ec8eb144006c7e95ca9fae928bf.png

     

    Changing labels orientation

    Changing the X-axis labels orientation will make them readable. Right-click the X-axis scale and set it to "Vertical Labels".

    The result should be a Pareto chart that looks like this:

    image.thumb.png.7ff76cec3c48b5bb50d5a7a64738529d.png


    User Feedback

    Recommended Comments

    There are no comments to display.


×
×
  • Create New...