Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Excel 2007:  Stop line chart data labels from overlapping

Posted on 2013-05-23
4
Medium Priority
?
1,937 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 2000 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 49

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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.
Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

916 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