Short notes on excel chart

sharshra

Active Member
Joined
Mar 20, 2013
Messages
276
Office Version
  1. 365
I have an excel chart where I want to add short notes. See the attached dummy sample. Now I'm adding text boxes where required. It is not dynamic & needs lot of manual work when changes are made. Is there a better way to do this?
chart notes.PNG
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try doing the following.
Write your notes below the headings where you want it to go
So, Notes - mno below 20211007, Notes - xys below 20211013
Note that all the notes should be in same row (assuming your 202110xx are your column headings)
  1. Click on the red data in your chart, add data labels to it
  2. In Label Options, select Value From Cells, and select the row with notes
  3. Deselect Value
  4. Go to size and Properties,
  5. Under Alignment, set Text direction as -90°
 
Upvote 0
Thanks, QuestionBaker. Not sure if I got it right, had trouble in getting this work.

It is a pivot chart. I'm not clear how to insert the data for notes for specific dates in the source table so that it appears correctly in the pivot table & pivot chart. Probably, some more information may really help. Or, am I missing anything? ?
 
Upvote 0
Unfortunately, I have no experience with pivot tables.
So, I am not sure my method is applicable or not.
Here is what I did
The data
1637816298417.png

I wish to add notes to B, D and G
Add the notes below data column and enable data lables
1637816369904.png

double click any of the data label to show its option
1637816456749.png

When prompted for cell range, select the notes cell
1637816533122.png

You will get something like this
1637816563678.png

Change the custom angle to -90 to get the following result
1637816631600.png

Please try and let me know it works with Pivot tables
 
Upvote 0
Solution
Thank you very much for the detailed response, QuestionBaker. It is really helpful (y)

As a workaround, I copied the data from pivot table & followed your steps to create chart with notes. Though it is not an ideal solution, it saved lot of time for me & partially solved my problem. I'm happy to mark it as a 'solution'. It may help other as well.

However, curious to know how it works on pivot table / pivot chart. Does anyone know how to make it work on pivot table / pivot chart?

I observed an interesting thing. Consider the following example. Note that what is shown here is a simplified dummy example table for illustration purpose only. With this, I'm getting the chart with notes as suggested by you.
DateABCDEFGHNotes
202110101444111
202110111516165551224Notes - abc
20211012141811500183
20211013151911514113
202110142414132141Notes - xyz
202110151118466142
202110161422Notes - mno
2021101714111Notes - pqr
202110181510155381641

1637821813995.png


I observe that if there is no value in any cells in the column with highest values (column D in this case), data label notes is not displayed. Not sure why it happens. Does anyone know?

For example, look at the cell highlighted in yellow in the table. Data label (Notes - pqr) is not displayed in the graph even though we expect it to be there. If I just add any value to yellow cell, data label (Notes - pqr) appears ?. See the updated table & chart below ??‍?

DateABCDEFGHNotes
202110101444111
202110111516165551224Notes - abc
20211012141811500183
20211013151911514113
202110142414132141Notes - xyz
202110151118466142
202110161422Notes - mno
20211017141111Notes - pqr
202110181510155381641

1637822444328.png
 
Upvote 0
Since there is no, data in the highlighted cell, no data label is applicable.
Alternativley, you can add a dummy Column (try playnig around with its position, before A or after H) you can set its value as max(A:H) of that row.
Set the data label for that data set and just change fill colour as no fill to hide it from your chart.
 
Upvote 0
I don't think that is correct. There is no data in few other cells as well, but data label is displayed. Also, data label is not against any particular column, but is specific to the row.

For example, row 20211017 doesn't have data under E, G & H. Why not having data under D only impacts the data label? Also, data label 'Notes - pqr' should be against 20211017, but not against D.
 
Upvote 0
You have 8 data independent data series, 1st one is called A, 2nd one is called B and so on...
Each series has data points at various dates.
Think it as independent sets of X-Y points. One series is called A, another is called B and so on
So, when you enable data labels, you have to enable it for a particular series.
If a series has a point missing, then the data label can't be displayed.

As per your requirement, you may want the labels for dates and not for a particular data series, but the method I employed shows labels for a particular series.
We can, as humans look at it and say, it applies for the date, and that is what we are doing.

To answer your question, why it applies only series D, because you selected series D and applied data labels to it.
Had you selected any other series, then labels would have been applied to it.

That is why I asked you to add one more column (thus adding a series) and setting it as max(A:H) for that particular row. This will ensure that a data point is always applicable. If you want to make it foolproof, then your formula should read something like
if(isnumber(max(A:H)), max(A:H), 0)
First check if max(A:H) returns a number, if it doesn't then simply insert 0, if it does, then use that number.

Try changing your D values and you will notice that the height from which the notes are displayed will change.

Try changing the series to which data label is set to, you will notice the notes will move slightly to left or slightly to right.

Alternatively, you can just set new series as a constant and not bother with the max formula,

but make sure you set the fill option as none for that data series, as that is not something you want to show it your chart.
 
Upvote 0
Thanks, QuestionBaker. Now the notes are getting displayed. I see the chart now as follows.
chart notes.PNG
1638084340167.png

Now, notes are appearing as bars. Though fill option is selected as none, it still shows the borders. If I select border as none, it obviously disappears. Some more fine tuning to be done.
1. How can I get rid of 'series for notes' in legend?
2. Instead of bars, I would like to have a line (dotted / dashed line) where notes are displayed. I have put the notes in secondary axis so that only that can be changed. Other bars are on primary axis & can remain as bars. I searched internet to see how bars can be displayed as lines, but couldn't find the right solution. I have changed the width to minimum using 'Gap width' option, but it is still a bar, not a line.
 
Upvote 0
I've found a few ways, but I am not so happy with the solution.
set the Series for notes values as 0 instead of 555.
Manually drag the labels up and then format Leader Line.
You can get a result something like this
1638163161342.png

Deleting legends is easy.
Just don't write series for notes or second method (but I do not recommend it, but you should still know about)
  1. Click on Legend
  2. Wait for a second
  3. Click on series for notes
  4. press del key from your keyboard
The problem with this method is, you disable and enable legends once again, you will have to redo the 4 steps once again.
 
Upvote 0

Forum statistics

Threads
1,215,050
Messages
6,122,868
Members
449,097
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top