How Can I create a distribution chart in Microsoft Excel? - excel

I want to create a histogram in Microsoft Excel. I think this should be easy but I am oddly having some difficulties.
I have the following table:
Bins | Frequency
50000 | 800
100000 | 500
150000 | 300
and so on. The Bins column shows the bin width for this histogram. The Frequency column shows the number of values in each bin. How can I then turn the above table into a histogram?

Since you already have the Bins and Frequency created, you can select these cells and insert a normal column chart under Insert -> Charts -> 2D-Column.
In order to make it look more like a histogram you can alter the formatting of the chart.
First change the Gap Width under Series Options -> Series Options to 0%
Then add in a border to help distinguish the bars under Series Options -> Fill & Line
You can also play around with the Axis names and add "Frequency" to the y-axis and "Bins" to the x-axis by clicking on the Chart Elements Button (Green plus when hovering over chart) and selecting Axis Titles.

Related

Excel chart Categories against variable quantity of Price Points

I have some data which I would like to plot, presumably in a scatter chart. The data is in the following format.
Category, ID
Cat1, 560000
Cat1, 560005
Cat1, 880011
Cat2, 580000
Cat2, 580001
Cat2, 580002
Cat2, 780052
Cat3, 600000
Cat3, 600010
Cat3, 600011
Cat3, 1003452
For non-developers, you could think of this as Categories of Tyres and their Prices. I'd like to see that in the "Car" category, we sell items in a set of different price points and in the "Bicycle" category we sell items at a different set of price points. This metaphor only breaks down in that no 2 products can use the same price.
For developers out there, these are in fact a Long, Primary-Key to a particular relational database table and I'm attempting to plot how much and what parts of the available ID range have been utilised already, based on splitting the data into some categories.
I have 13 categories, so these will have to become the x axis due to excel limiting that to 255. Therefore ID will be my Y axis.
By using a 2D Line Chart on just the IDs, and squashing the chart, I was able to plot the overall usage of the ID range.
However, I'm unable to get any chart type to split this by category - I presume XY Scatter or Heatmap has this ability somehow.
Update:- Since posting I have encountered this "Contiguity Chart" which is roughly what I'm after but in Excel if feasible
https://qvdesign.wordpress.com/2012/03/29/qlikview-contiguity-chart-aka-that-chart-from-the-windows-disk-defragmenter/

How to plot a graph showing the rolls of a dice and the frequency?

I have a a column of data which tells me the outcome after a roll of the dice.
In Excel how do I plot a graph which shows frequency of the outcomes on the y axis and numbers between 1 and 6 on the x axis?
Use a pivot table to create this graph.
Insert tab > PivotTable
Row Labels (lower left box) should be the dice roll value. Values (lower right box) should be the count of the dice roll value. Lastly create a bar chart from the pivot table.

need to create salary data with salary bands

looking to create a salary chart for all my employees. should be xy scatter plot with all salary data for my employees grouped by their title. I want floating bar graph representing salary range for that title.
salary data:
employee,title,salary
joe, eng 1, 15000
mike, eng 1, 16000
kelly, eng 3, 25000
steve, eng 2, 20000
jane, eng 3, 30000
michelle, eng 5, 60000
anan, eng 5, 70000
eng level salary band
title,min, max
eng 1, 10000, 20000
eng 2, 15000, 30000
eng 3, 25000, 40000
eng 4, 30000, 60000
eng 5, 50000, 80000
eng 6, 60000, 100000
note i wont have employees in every level, but want to show that level on the chart, the levels should be shown left to right on the graph from eng 1 to eng 6
i am having a hard time to figure out how to do this in excel...your help would be appreciated
We'll make a floating bar chart with the salary bands, then overlay XY scatter points with the individual data.
First, insert a column between min and max salary in the bands table, and use a formula to compute the span between max and min, as shown below. Select the shaded range and insert a stacked column chart. It looks like the top chart below.
Format the chart as follows: Remove the title (or enter something useful). Remove the legend. Change the number format of the vertical axis to 0,"k" (the comma knocks off a set of three zeros). Format the Min series with no border and no fill, so it is invisible. Format the Span series to use a lighter fill color. Change the gap width of the Span series to something like 75.
Insert a column that contains the number of the salary band (or just change "eng X" to "X") as shown below left. Copy the shaded range, select the chart, choose Paste Special from the Paste dropdown on the Home tab of the ribbon, and use the options shown in the dialog below right (add cells as new series, series in columns, series names in first row, category labels in first column). The chart looks like it got a new set of stacked bars; we'll fix it shortly.
Right click the added series, choose Change Series Chart Type, and choose the XY Scatter style with markers and no lines (below left). Select the new series with markers, press the Ctrl+1 shortcut to format it, choose Primary axis, so it aligns nicely with the existing floating bars, and choose a format that stands out. I used a dark blue marker border and white marker fill (bottom left). Add labels using the Excel 2013 option, Label contains value from cells, or in older versions of Excel, install Rob Bovey's Chart Labeler add-in (free from http://appspro.com) to add arbitrary labels. Also, you should stretch the chart vertically to add resolution (below right).

how do you get each item in a scatterchart legend to appear only once

The legend in my scatter chart shows a cluster for every point, I would like it to just show the unique items, and therefore it should only have 3 (A, B, C) not 6.
You have 5 series on your chart, each with 1 point I think (right click on the chart and click "Select data" and check how many series are there). What you need it 3 series: first and second one with 2 points and last one with 1 point.
Another option is to delete the repeating legend entries.

Creating a scatter-plot with series from row values, and XY values from two other rows

I am doing a project that requires me to study the several condition that affect GPS accuracy, and after I collected a set of data and dumped it to Excel, I was trying to plot a scatter graph, grouping the data into different series according to a value: in this case, I wanted to plot the Latitude and Longitude values as the XY scatter values, and separate the series by the number of satellites when the fix was obtained.
Timestamp Latitude Longitude #Satellites
133009.279 3839.3354 904.7395 0
133010.279 3839.3354 904.7395 0
133011.279 3839.3354 904.7395 0
133026 3845.9863 907.4513 4
133027 3845.986 907.4491 4
133028 3845.9851 907.448 4
133222 3845.9909 907.4866 4
133023.28 3845.9817 907.4429 5
133024.28 3845.9867 907.4549 5
133048 3845.9868 907.452 5
133205 3845.9929 907.4858 5
133206 3845.9927 907.486 5
133207 3845.9925 907.4862 5
133056 3845.9885 907.4569 6
133057 3845.9881 907.4578 6
133223 3845.9905 907.4868 6
133224 3845.9901 907.487 6
I have tried selecting the three rows, adding the series afterwards by selecting the appropriate row, and even tried pivot tables, but these don't allow for scatter-plots unfortunately.
All this to no avail, but I am positive that you can plot the graph. Does anyone have an idea?
PS: Manually selecting the series myself isn't an option, since there is a large number of data. If I could select all of the data for one specific value in a row, though, would let my select each series, and I think I would be able to make it from there.
Have a look at the XY charts from FusionCharts XT - http://www.fusioncharts.com/demos/gallery/#bubble-and-xycharts

Resources