Solved

Excel 2007:  Stop line chart data labels from overlapping

Posted on 2013-05-23
4
1,712 Views
Last Modified: 2013-06-19
Hello Experts,

I have several charts that I fix the label formats so they don't overlap.  Just requires a slight move nothing big.  I was wondering if there are any macros out there that would do this for me?

Thanks!!

Using Excel 2007
example.docx
0
Comment
Question by:Maliki Hassani
4 Comments
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 39192762
I'm not aware of any existing code to optimize label placement.

Were I to write a macro to optimize label positioning, my first attempt would be using the Solver add-in to minimize the square of the distance between the label and the point, subject to the constraint that labels shouldn't overlap. There might be an additional constraint that the data point should lie outside the label. Solver would find it easiest to solve the problem if there were a calculation of the % of overlap for each label.

If you just have a few charts, it would be far easier to use manual positioning. Excel 2007 can position the labels for each series on top of, above, below, right or left of the points. In addition, you can drag an individual label to a new position.

For the sample chart in the Word document, I'd use label below the points for the bottom series, and above the points for the top two series. I'd also suggest increasing the height of the y-axis, such as be changing the minimum scale value to 150. Label tweaking shouldn't take more than a minute or two per chart.

For best presentation, I'd eliminate both the markers and data labels. If the reader needs the data, there should be a separate table listing it. The point of the chart is to communicate the trends, and the data labels and markers get in the way of that communication.
0
 

Author Comment

by:Maliki Hassani
ID: 39192777
That sounds good!  I did find a macro that reposition the labels on google but it didn't work.  I think if I set the labels like you stated it could work.  I will leave the thread open for now and close tomorrow afternoon.

Thank you!!
0
 
LVL 47

Expert Comment

by:Martin Liss
ID: 39258773
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question