World Statistics Day was yesterday, but we’re celebrating all week long! This celebration means acknowledging the impact statistics has on our world. Who is your favorite statistician? Share with us who they are and why they top your favorites list.
Choose Language Hide Translation Bar
Highlighted
Level III

## How to overlay line plot on top of side-by-side bar chart?

I'd like to be able to create a chart like this   but I don't know how to overlay the line with the side-by-side bars -----     I have the data formatted to plot the line and I have a graph builder script to plot the line....

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Staff

## Re: How to overlay line plot on top of side-by-side bar chart?

Here's a quick example DT.

4 REPLIES 4
Highlighted
Staff

## Re: How to overlay line plot on top of side-by-side bar chart?

In Graph Builder use Date as X and use Active, Arrival, and Kill as Y. Then turn on both the Bar element and the Line element. Now you'll have three sets of bars and three lines. Right-click in the graphs and under each element's submenu use the Y menu to turn off the Ys that don't apply to that element.

Highlighted
Level III

## Re: How to overlay line plot on top of side-by-side bar chart?

xan --- thanks for the help ----    I'm still having trouble producing the graph ----   perhaps my datatable is not setup properly?

Could you provide a very brief table that would produce the chart?

In my table I have a date column, and a column for the number of defects that 'arrived' for  each date     and a column for the number of defects 'killed' for each data....

Highlighted
Staff

## Re: How to overlay line plot on top of side-by-side bar chart?

Here's a quick example DT.

Highlighted
Level III

## Re: How to overlay line plot on top of side-by-side bar chart?

Xan,

Thanks ----  this made it clear ---- I was dragging In/out/Net to the right Y-axis and couldn't get it to work ---- but dragging to the left Y-axis worked....

Article Labels

There are no labels assigned to this post.