Hi,
Could someone please direct me to the best way of producing a life expectancy chart such as the one attached?
Hi,
Could someone please direct me to the best way of producing a life expectancy chart such as the one attached?
Your picture looks like a butterfly or tornado chart. Most tutorials I have seen for these charts are based on a stacked bar chart. I would start with a tutorial like this, https://best-excel-tutorial.com/56-c...utterfly-chart then adapt to your specific needs.
Originally Posted by shg
That seems to be what I am after, thank you. I could not see this level of detail when I started the chart in Excel. Looks like it may take a while!
Thanks for your help.
Hi,
Could I ask something else? I am trying to split a category into two i.e. I have two lots of data for the same year. I am having trouble separating the line into two, do you have any tips please?
Show us some sample data that needs to be split in an excel file. See the yellow banner at the top of this page.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
There is no tab allowing me to add chart element. I basically need to split a version of something into a and b for each year.
Very crudely put:
Eng a Eng b Scot a Scot b Wales a Wales b N Ire a N Ire b
2009 1 2 3
2010
2011
2012
2013
2014
So to show two versions of England as separate lines.
Ideally I would like a chart that compares the two versions, a and b, if possible. I am messing around with the charts, but they are all not the right ones!
Can you present the data in a worksheet and attach as asked using the yellow banner. It is difficult to manipulate the data shown as it is not separated into cells and not easily able to determine which items belong in which column. Help us to help you by giving us workable information.
I, too, am not sure I understand. The only difference between your picture and the tutorial is that you have two "stacks" for each category on each side of the butterfly, where the tutorial's chart only has one "stack" on each side. Is that what you mean by "split each category into two"? If so, then, because the butterfly chart is already a stacked bar chart, it should be as simple as adding additional data series to the chart.
If it helps to place it in the context of the tutorial, the tutorial has their data of interest in columns B and C. Columns D, E, and F are for "dummy" data series that are used to give the butterfly effect. If the goal is to have "two stacks" on each side, then that means four columns instead of two for the data of interest. So, you would be using columns B, C, D, and E for your data of interest and column F, G, and H will contain the dummy data for the unseen dummy series. Am I guessing right? Does that help?
Beyond that, I agree with Alansidman. It could be difficult to help you further without seeing your (dummy) data and your current attempt at the chart. That should help us to explain what you need to do differently.
Sorry, I understand I am not explaining it well enough. Please see attached data example. I have two sets of information for each year and each region. I also need it for male and female. So several threads to compare on the same graph. It really doesn't matter which type, as long as it shows the trend change through the years of the two sets of information comparing the a and b, and the female and male.
I appreciate this very much, it is important, and I have driven myself into knots now.
I'm still not sure I understand. The data in your sample file does not include any male/female indicators, so I'm not sure what you really have or how that is incorporated. I took your data and created a butterfly chart (in LO Calc, hopefully Excel will be able to read the chart information, sometimes it doesn't do it exactly right) with the "a" data on the left side of the butterfly and the "b" data on the right side of the butterfly. Time is increasing as you move up the chart. Each region is a separate data series. Is that even close to what you want to see? Where does male/female fit into the data?
Maybe this is a better example?
That's a basic stacked column chart -- one of the basic chart types supported by Excel. Have you tried it with your data? Review this, https://www.excel-easy.com/examples/column-chart.html if you are uncertain of the basic mechanics of creating a column chart (their example is for a clustered column. the only difference for you is to select stacked column instead of clustered column).
I'll have a go, thank you. Please don't go anywhere!
How would I add two batches onto the same graph? i.e. one half showing male, one for female? I believe I need to split the data in the actual table?
Assuming I understand, I would reply, "yes". Charts have no data analysis or generation capabilities of their own. They can only show data that you have entered/calculated in the spreadsheet. Once the necessary data are calculated/entered into the spreadsheet, then adding male/female data to the chart should be as simple as adding enough data series/legend entries to the chart and telling the chart where to find the male/female data for these data series.I believe I need to split the data in the actual table?
I'm on the verge of tears here. It isn't enough. The clustered column, yes, but I need an extra dimension.
It's two separate criteria for each year trending over a period of years.
So the blue chart attached - but the cluster chart instruction does not address this. I have sets A and B which I need to compare for each UK region over a period of years. The instruction only shows for example, one set for each region over a period of years.
Please can you help, I am stressing so much? How can I make this graph?
I think actually after all this, a line chart would be better. Two single lines going across the years, so I could compare the two. But I cannot find how to putt two separate lines.
I am attaching two graphs whose data need to be represented together on one chart. Would you have any idea which chart would best suit this please?
I'm sorry that this is frustrating, and I know that frustration makes this sort of thing harder. Take a break or something, if you need to, so you can approach this without frustration muddying things up.
It would help if we had a better idea what data you have. You talk about having "A and B" data, and you also talk about having "male and female" data. Are these the same (A is male and B is female), are they different (there is data for A + male, A + female, B + male, B + female)? Your original example also showed region. Is your current stacked bar example for one region, or are you still wanting to combine multiple regions into a single chart, or are we now ignoring region?
Assuming we are now working on data for a single region, two categories, with male and female within each category, here's how I would expect to create any basic Excel chart:
1) Data entry: Enter the data like this:2) Select this table and insert the desired chart type. Stacked column or line or area or stacked area or clustered bar or whatever chart type you want to try.Please Login or Register to view this content.
3) Look at the chart and see if I like it. If not, I can select the chart (make sure the chart is selected and not a single data series), find the "chart type" command and change the chart type to a different basic chart type.
4) If I cycle through all of the basic chart types and I don't like any of them, then I need to stop and think about what I like and don't like about each chart type and identify what I need different that the basic chart types don't readily offer. Then I can start exploring more advanced charting techniques to get different effects. But everything has to start by being able to create the basic chart types.
Here's a file I created to show this. I started from your data in post #11, removed everything but the Wales data. Then I split Wales a and b into male and female for a total of 4 data columns (plus the time column to make a total of 5 columns). Filled the table with random numbers, then inserted 2 charts from the data. One is a clustered column, the other is a line. As noted in step 3, it should be easy to change either of these charts to any other basic chart type. Do either of these charts look good? If so, what looks good about them? If not, what do you need different? If you enter some reasonable values (rather than my random values) into the table, what do you see? What chart type looks good with real data? What do you want to see different?
More exactly, how can I put both male and female versions on the same graph, of these attached?
It should be exactly like I show in post 21 -- 4 columns of data (Wales HLE M, Wales HLE F, Wales LE @ birth M, Wales LE @ birth F) plus a leftmost column for dates. Select the resulting block of cells and insert a line chart (line without marker subtype). Is there something in your spreadsheet that prevents you from doing the same thing I did in post #21?
It looks like we are finally getting somewhere! I am attaching the graph - do you think it represents a good enough comparison between the two sets of stats and male/female, from an outside point of view?
It would be good to get rid of the extra green block (that I put in to split the bars), is this possible? Or can I split the date another way?
I don't know what constitutes a "good enough comparison". As an outsider, I can look at this chart and quickly see:
1) LE is consistently larger (about 20 units) than HLE for both genders.
2) There appears to be little or no trend through time for each group.
3) Female LE and HLE are consistently a little bit higher than male LE and HLE.
If there are other things you want me to see, I don't see them right away as an outsider.
I did not see an extra green block, but I assume you mean the "series 3" gray blocks. You can "hide" the columns in the chart by selecting the data series and formatting the series so it has no border and no fill -- effectively rendering it invisible. You can remove the "series 3" legend entry by selecting the legend, then click on the "series 3" legend entry, then press delete.
Thanks! How would I add a figure to show a difference in numbers? e.g. please see attached. I think this may be the last thing I ask you - hopefully!!
How exactly must you match the picture? Easiest, though it would not exactly match, would be to:
1) Calculate the desired differences in an adjacent column in the spreadsheet.
2a) Add error bars to one of the data series (error bar help file: https://support.microsoft.com/en-us/...5-864049a145f0 ).
2b) Format the error bars to have only positive (left column data series) or negative (right column data series) error bars.
2c) While formatting the error bars, select "custom values" and choose the spreadsheet column calculated in step (1) for the error values.
3) Add data labels to the chosen data series https://support.microsoft.com/en-us/...2-f467c9f4eb2d choose "values from cells", and, again, select the column calculated in step (1).
Will that be close enough, or do we need to get more complicated in order to more exactly match the picture?
I will have a go and see what happens, it's a shame I'm not in the US, I owe you a serious amount of drinks!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks