+ Reply to Thread
Results 1 to 3 of 3

Extraneous straight lines should not be on chart

  1. #1
    Forum Contributor
    Join Date
    12-26-2005
    Location
    annapolis, Md.
    MS-Off Ver
    2007
    Posts
    260

    Extraneous straight lines should not be on chart

    I plot the following kind of data on a scatter chart for dates 20070102 to 20140715 [seven years of daily data]
    DATE UP+DN
    20070102 0
    20070103 -500
    20070104 -1000
    20070105 0
    20070108 -500
    20070109 -270
    the resulting chart is attached.
    each years worth of data plots in within a short span of the chart horizontal space allocated for a year and then a straight line completes the yearly plot as displayed on the graph.
    each straight horizontal line should not be there.

    any thoughts, advise, etc will be appreciated.
    Attached Images Attached Images

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Extraneous straight lines should not be on chart

    Your date is not a date but a number which is why you get the jumps.

    where you might have 2 adjacent data points between a year.
    20071231, 20080101

    If those were real data values excel would treat them as 39447 and 39448, with a gap of 1, as you would expect.
    Because your data is simply numbers the gap between 20071231 and 20080101 is actually 8870. This causes the join line.

    Convert you numbers to real dates.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    12-26-2005
    Location
    annapolis, Md.
    MS-Off Ver
    2007
    Posts
    260

    Re: Extraneous straight lines should not be on chart

    thanks andy, much appreciated.
    cheers & peace

+ 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] Having stock chart to draw many individual straight line
    By DavidRoger in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 12-23-2013, 10:03 PM
  2. [SOLVED] straight line connecting first and last point on a chart
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2013, 06:42 AM
  3. Having stock chart to draw many individual straight line
    By DavidRoger in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-17-2013, 08:21 AM
  4. Straight Line and Trendline Chart together
    By sakmsb in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-24-2013, 05:25 AM
  5. Can't input date range as x-axis in scatter with straight lines chart using VBA
    By alapatik in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-24-2012, 11:32 AM

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