Consulting

Results 1 to 3 of 3

Thread: XY Scatter graphs

  1. #1
    VBAX Newbie
    Joined
    Feb 2007
    Posts
    1
    Location

    XY Scatter graphs

    Hi... In setting up an XY scatter graph I have used a macro (taken from another post) to add the data labels however this macro actual plots the data labels on the chart. I just need to be able to have the labels show up when the particular plot is selected by pointing on the graph. I have tried to hide the data labels through the normal chart options toolbar without success. Can someone please assist.

    Secondly, I need to add a 45 degree trendline through the chart.. Any suggestions to accomplish this

    Thanks

  2. #2
    VBAX Regular
    Joined
    May 2007
    Posts
    6
    Location
    I'm no expert but on the 45 degree trendline, if you highlight a particular series of data on your graph and right click, one of the options is "add trendline". What you need is the default. i.e. linear

  3. #3
    MS Excel MVP VBAX Tutor
    Joined
    Mar 2005
    Posts
    246
    Location
    If you want a line at Y=X, you just need two points, the minimum and the maximum. Set it up like this in a 2x2 cell region:

    0 0
    1 1

    Replace 0 with your minimum value and 1 with your maximum. Copy this range, select the chart, and use Paste Special (Edit menu) to add it as a new series, with categories in the first row. Format the line as desired.

    There's no built-in way to make the labels appear when you mouse over a point, but you can make it work with chart events:

    http://www.computorcompanion.com/LPMArticle.asp?ID=221

    If you don't want to program all that, download Tushar Mehta's Chart Hover Labels utility, from http://tushar-mehta.com.
    - Jon
    -------
    Jon Peltier, Microsoft Excel MVP
    Peltier Technical Services
    Tutorials and Custom Solutions
    http://PeltierTech.com
    _______

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •