Show Sidebar Hide Sidebar

# Create a Pareto Chart with Plotly and Excel

A Step-by-Step Guide to Create a Pareto Chart

Step 1

A Pareto chart combines a bar and line chart. The Pareto principle states that, 'for many events, roughly 80% of the effects come from 20% of the causes.' In this example, we will see that 80% of complaints come from 20% of the complaint types.

Step 2

Open the data file for this tutorial in Excel. You can download the file here in CSV format

Step 3

Step 4

Once you've loaded the data in Plotly, label your columns like we did below. You'll have complaint type on the x axis data and complaint count and cumulative percentage on the y axis data. Then, select 'Line plots' from the CHOOSE PLOT TYPE menu. When you're finished, click on the blue 'LINE PLOT' button in the sidebar.

Your plot would initially look something like this.

Remember, a Pareto chart combines a bar and line chart. The complaint count will be the 'bar' portion of the chart and the cumulative percentage will be the 'line' portion of the chart. Let's set the complaint count trace (Col2) to 'Bar.' Head to the 'Traces' menu and select 'Bar' as type.

Take a moment to resize your plot to something less wide. A width of 800 and a height of 600 seems reasonable. Head to the layout menu to do this.

Next, we'll add a second y-axis for the other trace (Col3). To do this, head to the 'Traces' menu then to 'New Axis/Subplot.' Set your 'New Y' to 'Right.'

Your plot should now look something like this.

Now, we'll clean up the grid lines. Go to the 'Axes' menu, then select 'Y Axis 2' in the drop down menu. Set 'Grid lines' to off.

Step 5

Your graph should now look something like this.

Head to the 'Traces' menu and then the 'Style' tab to set the trace color to your liking. You can title your graph and axes like we did. You can add 'Tick Suffixes' to 'Y Axis 2' by heading to the 'Axes' menu, then the 'Labels' menu within.

Here's our finished graph.