I have data on neighbourhood complaints regarding dogs, noise, garbage etc. I'm trying to visualize with a column chart. The neighbourhoods on the x-axis have to be ordered by the count (occurences) on the y-axis.
Alfabetical ordering is default, but I do not know how to change it. I've tried to sort neighboudhood by ID, but this doesn't work.
No code is used as this was produced in the Dashboard module.
The result should include a column chart, ordering neighbourhoods by the number of complaints in a descending order.
Who can help me out?
Thanks in advance!
I had a quick look at my 11.1.4 dashboard chart with Product line on the X axis and Revenue on the Y axis. If I sort on Revenue the chart displays in the correct order. What happens when you sort the Number of Occurrences field in your chart?
Related
I have a data set that has ages listed and the number of passengers who are that age. I need to create a histogram to show that data. I only seem to get a histogram chart output of 1 column of the data, not both though. See image below.
How do I get essentially a column chart (but as a histogram) to show the quantity of passengers in each age group?
enter image description here
I think you want to use a clustered column chart, with the age column as the horizontal axis.
you can reduce the gap width for the look of a histogram.
I am having issues creating a Bar graph in Excel. Currently, the Y-axis is a 'series' value input allowing for salability whereas, the x-axis is a 'categorical' input. I am trying to graph the 1st year earnings (y-axis) for each major at two Universities(UF-USF) with the number of graduates at the universities on the x-axis. I'm using the same population data for both so the columns overlap and can compare degree earnings between the universities. I managed to create a graph that has a "scaled" x-axis but, it's still categorical data so I cannot manipulate it- Figure 1. I want to make it look like Figure 2 while displaying the disproportionate number of graduates per the three degrees on the far right. I've already considered other graphs but must have a bar chart.
Figure 1: 'Scaled horizontal axis with Categorical input
https://gyazo.com/8e8d97bc2696113071d487ed96212b61
Figure 2: Overlapping University Bar Chart(Categorical X-axis)
https://gyazo.com/f1fbdebee4b1c4df27471c812d04da0e
Figure 3: Alternate Bar Chart without University Overlap (Categorical X-axis)
https://gyazo.com/3ed448c369827c0dd056fc151444df06
Figure 4: Data
https://gyazo.com/73ace8e16f481b5776a333911084b8a1
The 1st year, 5th year and 10th year earnings are in the data set. Until this is figured out, I'm only graphing 1st-year data.
Thank you!
I have an excel 2010 sheet with a bunch of customer data. I have the ages for the customers. They are a float value. I want a pie chart that shows the number of customers under 30, between 30 and 50, and over 50.
There are over 2000 rows.
I highlight the column, click inset, click the pie chart icon, and I get a disco ball coloured chart with the numbers 1-9 in the legend, excel then proceeds to crash. I get that, there are too many ages to put in a pie chart at that point.
So I've tried adding a column with a nested if statement to give me the values "Under 30", "Over 30 and under 50", and "Over 50". I thought, given there are only 3 unique values in this column, I could create a pie chart on it. Hoping it would give me the percentage of each age range. But I only get a legend value of 1 and a blank pie.
I know I'm obviously missing something really simple but I can't get my head around it. Any help is greatly appreciated.
Two things:
A pie chart does not aggregate data automatically. You need to do the aggregation and feed the aggregated data to the pie chart
A pie chart needs numbers, not text. Well, any chart does.
So, to aggregate, you can use Countif or Countifs. For example, in the screenshot below the three numbers are calculated this way:
under 30 =COUNTIFS(A:A,"<30")
30 to 50 =COUNTIFS(A:A,">=30",A:A,"<50")
over 50 =COUNTIFS(A:A,">=50")
Then select the data as in the screenshot and insert a pie chart.
Add data labels and change the data label to show percentages if you want.
Say you had people's names and their exam scores. When you generate a bar graph with their score as y-axis and name as the x-axis, how can you make the bar graph display the people with the highest score in the left and descend all the way to the right to the people with the lowest scores?
Sort the data source. The chart will plot the data points in the order of the data source. Most likely, a horizontal bar chart will be more suitable than a vertical columns chart. The names will be easier to read.
I have a table (came from a pivot table) where I have formatted the column 4 cells to show 1 billion as 1. But when I select the table and insert a chart, I am getting my units in millions. So the 14.8 billion number for Mexico is showing up as 14,800 on the chart. Why might this be happening and how can I fix this? This is also making all my other bars negligibly small. Note that the first three columns are not in billions and are totally different things. Some are percentages, some are other small numbers.
Table:
Chart:
You need a secondary horizontal axis and some formatting on the Axes.
In Excel 2013
First change the Chart Type to Combo and select Clustered Bar for both sets of data, then Check
Secondary Axis for the Percentage Series.
Then set up the axis limits so they match, e.g.
Percentage: min -.5 max 2
Billions: min -5e9 max 20e9
Then set the percentage format on the source data to a custom Number format of "";(0)%;0%
Then set the Billions format as 0,,,;"";0
You will get something like this:
EDIT
Now that we have the general principles, we can apply them to your specific data.
I will also switch to Excel 2010 do show the different menus.
The data selection looks like this
Select the non-Billion series (plural!) and check the secondary axis
If the larger data is always positive then you can use custom formatting to clean up the axis
Align the primary and secondary axes so that the grid lines match on both
The end result is clean and readable.
Mixing percentages and numbers for the smaller numbers is not handled by this but I would suggest that that would be confusing anyway?
The simplest way to fix this might be to plot cells containing the billions values divided by 10^9 rather than to plot the billions themselves, though via a secondary axis may be possible.
Using Excel 2007. For the purple bars, the example on the left uses ColumnE values, on the right ColumnF values. E1 contains =F1/10^9 and F1 contains =14800000000:
It appears that there are 3 questions here: 1) "Why might this be happening", 2) "how can I fix this", and 3) something like "how can I plot data which lie on two widely differing ranges, and make them all reasonably visible anyway", even if there was no explicit question on this.
There are several ways to solve issue #2 about the units (e.g., billions) and numbers (e.g., 14.8 vs. 14,800.0) shown in the axis, each one with its own pros and cons:
Use Format Axis -> Axis Options -> Display units.
This might be the answer to your issue #1 as well, you might have the following selection: Display units -> Millions, and unchecked Show display units... Otherwise, I wouldn't know why you chart shows what it shows.
Use faked tick marks, as indicated in the (excellent) site of Jon Peltier
http://peltiertech.com/Excel/Charts/ArbitraryAxis.html
It gives detailed instructions on how to create tick marks on an axis with arbitrary labels (which may be text, numbers, etc.), which is more generic than what the OP wants here. In this particular case, the labels will be the desired numbers.
Create new cells containing data that would be plotted exactly the way you want.
As for your issue #3, I guess the only option is to have a Secondary Axis (see the answer by pnuts).
Thus, to come up with the best final chart for you might use a combination of one of the options I gave here and a secondary axis.