Solved

Excel 2007:  Stop line chart data labels from overlapping

Posted on 2013-05-23
4
1,789 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 48

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

628 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