Hide text labels of X-Axis in Excel - excel

I have the following simple Excel table:
A B C D E F
1 Q1 Q2 Q3 Q4
2 2.500 1.000 3.000 4.000
3
Based on this data I created a bar chart looking like this:
All this works fine so far.
Now I want to hide the text labels of the X-Axis.
Therefore I tried this:
Step 1: Click on Format Axis
Step 2: Click on Number
Step 3: Go to Custom
Step 4: Add ;;; into line Format Code
However, this only works if the labels of the X-Axis are numbers.
In my case they are text.
Do you have any idea how I can hide text labels of the X-Axis without deleting the X-Axis itself?

When formatting the axis, just set the Axis Labels dropdown to None.

Related

How Can I create a distribution chart in Microsoft 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.

How to make a categorical count bar plot with time on x-axis

I want to count the number of occurrences of categories in a variable and plot it against time.
The data looks like following:
Date_column Categorical_variable
20-01-2019 A
20-01-2019 B
20-01-2019 C
21-01-2019 A
21-02-2019 A
22-02-2019 B
........................
23-04-2020 A
I want to show that in month of Jan I had 1 occurrence of B/C whereas 2 occurrences of A. In feb, I had 1 occurrence of A/B and so on. The bar plots can be stacked to know the total number of occurrences.
I've been very close to it. But haven't been able to draw plot out of it.
df['Date_column'].groupby([df.Date_column.dt.year, df.Date_column.dt.month]).agg('count')
The other way is to change the dates to 1st of every month, and then group by to count a occurence. But I'm unable to draw plot out of it.
df.groupby(df['Date_column'], df['Categorical_variable']).count()
Use crosstab with Series.dt.to_period:
df['Date_column'] = pd.to_datetime(df['Date_column'])
df = pd.crosstab(df['Date_column'].dt.to_period('m'), df['Categorical_variable'])
df.plot.bar()

Add horizontal axis per series in excel

How frustrating is Excel.. working on this for half an hour now.
I simply try to make a frequency plot of two groups, with different colours. On the x-axis I would like to display the subject.ids per bar.
However, if I select a different range for the horizontal x axis per series (series 1 = blue, series 2 = orange) with the subject id, it changes the x-axis in the other series to the same. What in hell am i doing wrong?
3007 1
23121 1
3009 1
3005 1
3011 2
23171 2
3207 2
3102 3
3207 6
13302 7
2411 11
23191 11
3008 11
3106 12
110031 1
110031 1
110030 1
110017 1
110014 1
110008 1
110004 1
110007 2
110035 4
110020 4
110003 4
110036 10
110019 11
110015 21
AFAIK, you cannot put 2 series onto the x axis.
You have 2 alternate ways to solve your problem:
Concatenate each positional pair into a new column and use this as the x-axis label series. It will look like this:
You could use data labels for each series. However, this will add the data to the columns themselves and not the axis (you could put it at the base of the column). To do so, you will need to right click on the graph, select 'Add Data Labels'. By default it adds the value as the label, but you can select the labels, right click to format the data labels and use the 'values from cells' option. Once you do this and play around with the orientation and location of the labels, it will look like this:
For simplicity, I'd go with the first method
Adding a 3rd option; simply put the columns for the axis labels beside each other and when selecting the Data for the Axis Labels, just select both columns instead of the usual 1. It will look like this:

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.

Categories

Resources