+ Reply to Thread
Results 1 to 2 of 2

Mouse hover on area graphs shows incorrect values

  1. #1
    Registered User
    Join Date
    07-26-2018
    Location
    Brazil
    MS-Off Ver
    2010
    Posts
    1

    Mouse hover on area graphs shows incorrect values

    Hi All!

    I have a dataset where the x axis represent weekly dates and the y axis are random values between -1 and 1.
    In the x and y axis I have some N/A() errors used to make the graph ignore these data points and start plotting at the first value in the x axis.
    However, when I hover the mouse along the area graph, it shows a date that doesn't correspond to the x series.
    I also tested with other types of graphs and this problem shows only on area graphs.

    I attached an excel file containing an example of the problem.

    Do you guys know if this is a technical bug on Excel and if there's alternatives to fix it?

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Mouse hover on area graphs shows incorrect values

    What is confusing the display is that the X-Axis on the chart is being treated as a date axis. This takes the lowest date and the highest date and sort of spreads them out evenly. However these do not necessarily match up with the data points.

    If, you select the axis and force it to be a Text Axis, the dates are correct. However, the #N/As show up.

    Fortunately, your date ranges are contiguous. It is possible to assign a named dynamic range that looks only at those cells that have dates in them. I start with some helper cells.

    The first finds the row on which the first real date occurs. =MATCH(TRUE,ISNUMBER(Sheet2!$C:$C),0) - This is entered as an array formula.

    The next cell gets this starting position relative to the start of the data. Since the data starts on row 3, subtract 3 from the absolute row found.

    Next we need the number of dates there actually are: =COUNT(Sheet2!$C:$C) - count counts only numbers, and dates are numbers,

    We now have all the pieces we need to construct the named range: Plot_X =OFFSET(Sheet2!$C$3,'Helper Calculations'!$B$2,0,'Helper Calculations'!$B$3,1)
    This formula says:
    - Start in Cell C3 on sheet 2
    - Go down the number of rows shown in cell B2 on the helper sheet
    - Go right zero columns
    - Return a range of cells equal to the number in cell B3 on the helper sheet and 1 column wide.

    The second range is: Plot_Y =OFFSET(Plot_X,0,1) which essentially says PLot_Y, shifted one column to the right and no rows down.

    These are used to plot the chart. Make sure you set the chart to Text Axis.

    For more details on the Offset Command and Dynamic Charting see:
    http://www.utteraccess.com/wiki/Offs...Dynamic_Ranges
    http://www.utteraccess.com/wiki/Dynamic_Charting
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Alt Text on mouse hover
    By murray83 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2017, 08:20 AM
  2. Mouse hover in my drop down box
    By BHAV2404 in forum Excel General
    Replies: 14
    Last Post: 02-20-2017, 07:57 AM
  3. Mouse Hover Effect using VBA!!
    By meus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2015, 04:27 AM
  4. Mouse Hover Macro
    By Justair07 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2014, 08:01 AM
  5. Button changes in appearance with a mouse hover
    By jeff_kaufman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2013, 11:50 AM
  6. Mouse hover labels
    By SoMeOnE31619 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2012, 03:33 PM
  7. Chart Data Incorrect on Hover
    By adam.chucka in forum Excel Charting & Pivots
    Replies: 15
    Last Post: 08-11-2010, 11:44 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1