Hide Text Axis and Have Chart Readjust in Excel - excel

I have the following table in excel:
A B C
1 Object 1 100 100
2 Object 2 0 0
3 Object 3 100 100
4 Object 4 0 0
When I create a stacked bar chart with this values I get the following result:
Stacked Bar Chart 1
I need to figure out a way for the chart to adjust automatically and exclude any object for which both columns B and C have 0 values. In this case Object 2 and 4. Numbers will flow automatically into my template and I will not be able to manually update the charts. The end result with my example should look like this:
Stacked Bar Chart 2
I appreciate all the help.

Related

required data structure for Excel stacked bar chart

I am working in Excel 2013. I have the following data structure:
column A column B column C
Key Dimension Date
1 a 1/2/2019
2 a 1/3/2019
3 b 1/1/2019
4 a 2/5/2019
5 b 2/20/2019
6 b 2/1/2019
I want to create a stacked bar chart of the count of Key, by month-year (from Date) as my horizontal axis, and Dimension as my legend. How can I do this? From the tutorials online, all I can find is how to create stacked bar charts from some sort of pivot table.

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:

Spotfire - How to update a marking after the data to the chart has been filtered

I have 3 charts on a page Chart 1, Chart 2 and Chart 3 (all bar charts). Each of these charts have their respective markings Marking 1, Marking 2 and Marking 3. Each of these charts are limited by markings of the other 2 charts. For example Chart 1 is limited by Marking 2 and Marking 3 and is displaying all the data when no items are marked from Marking 2 or Marking 3.
Now Lets say there are a total of 1000 rows and out of which I mark 100 of them in Chart 1 (Marking 1). This triggers and limits the data in Chart 2 and Chart 3.
Chart 1 - Marking 1 = 100 rows
Chart 2 - Marking 2 = 0 rows
Chart 3 - Marking 3 = 0 rows
Now that Chart 2 is showing a bar chart for only those marked 100 rows, I go ahead and apply a marking on that too, lets say 50 rows.
Chart 1 - Marking 1 = 100 rows
Chart 2 - Marking 2 = 50 rows
Chart 3 - Marking 3 = 0 rows
When I do this, Chart 3 still shows me data for 100 rows that where marked in Marking 1. As Marking 1 has a bigger subset and contains everything in Marking 2. I have to re-select over my Marked items in Marking 1 , which then makes both Marking 1 and 2 at 50 rows and now Chart 3 is updated.
Is there any way I can fix it, is there a way where I dont have to re-select my markings and Marking 1 automatically gets updated after Marking 2.
unfortunately that's the intended behavior for marking interactions.
the workaround I usually implement for this scenario is to include instructions and a button for "reset selection" (or "reset marking" if your users are savvy).
you may be able to get around this by using a Data Function, but I haven't come across anything to unmark based on other markings, only to perform some action when a marking is made.

Graph grouping by and percentages

I want to create a chart in Excel but I don't know how is it possible having the table below:
ID | MODEL
==========
1 LG-1
2 HP-2
3 HP-2
4 HP-2
5 LG-1
6 GE
7 HP-1
8 HP-1
9 HP-2
10 HP-2
The result I need is a graph showing the percentage of each model in the table
e.g. in any chart:
LG-1 = 20 %
GE = 10 %
HP-1 = 20 %
HP-2 = 50 %
Somewhere the relative counts of groups (i.e. their percentage shares) need to be calculated so I suggest for Excel 2013 selecting your data range (including labels) and clicking on INSERT > Charts - PivotChart (the down arrow) and PivotChart then select Existing Worksheet entering a suitable Location: and OK. In PivotChart Fields, drag ID to VALUES and MODEL to AXES. Click on the arrow next to Sum of ID, change to Count of ID and click on Value Field Settings..., on Show Values As and select Show values as "% of Grand Total", OK.
This way I end up with:

add labels to non-zero elements in stacked column chart Excel 2013

I'm generating a stacked column chart out of an a table like this:
Year 1 2 3
A 50 0 0
B 50 0 0
C 0 100 0
D 0 50 0
E 0 0 10
F 0 0 15
I want column stacks for every year, with series labels for every non-zero value. Currently if I try and add labels then I get 6 labels for every series (with the zero values clustered around the axis). How do I generate series labels for all non-zeroes? I am happy to rearrange my data to a different format to the table above. I am using Excel 2013.
You can throw an error to replace the zeros in your data. That way they won't appear on your chart. You can use:
=NA()

Resources