A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi @Samuel Wolfe
I want the graph to be able to stratify the two groups, ie, one group's cases on the top half of the graph, and then the second era's cases displayed on the bottom half of the graph
Based on my tests, here is a workaround. If needed, please refer to following steps, some Scatter lines, you can skip if you don't need them.
- Combine the two groups time data together. Put the data of the second month in the same column as the data of the first month.
- To mark the bars of different months in the chart later, you can create a Scatter with Smooth lines. Please use "Count" function to calculate the number of surgeries performed in the first month, and the number of surgeries performed in these 2 months.
- In My example, I get 19 for the first month and 37 for 2 months. Then please add 2 columns data of X and Y like following image.
- Select Data from A1 to B4, insert a Scatter with lines chart. Right click the chart > Select Data > Add, add a new series of Scatter, the X values are from A2 to A3, the Y values are from B2 to B3.
- Select the Vertical Axis and format it, change the Bounds to 0 and the numbers of total number, set Units to be 1.
- Then right click the chart again > Select Data > Add, add the Finish2 data as a new series like following image. And then right click the chart again > Change Chart Type > Combo. Set the correct chart types for these 3 series. In my example, X and Y are Scatter with Smooth lines chart, Finish2 is Clustered Bar chart. The Secondary Axis will be ticked for Finish2 automatically.
- Follow the previous step to add Start 2 and Finish1 series.
- Then follow the steps I suggested earlier to set the overlap ratio, change the Start2 bar solid fill color to white, adjust the Axis Bounds values, etc.
- At last, according to the Bounds and Units values that you set for Axis, and the number for first month, you may add following data to create a new Scatter with Smooth lines, this line is used to separate two months of bars.
- For the clarity of the chart, it is recommended that you go to the "Select Data" option and check to display the X and Y series. Via Select Data and Add options, create this new line. Additionally, this line uses primary axis like X and Y Series.
Please make sure the Axis Bounds and Units values are not changed.
- If you need data labels, you can add them. If you don't want to display the 0 for Start1, you can customize its format to be
#,##0.000;(#,##0.000);. The final effect is shown in the figure below.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.