+ Reply to Thread
Results 1 to 11 of 11

Dashed Gridline

  1. #1
    Registered User
    Join Date
    08-13-2011
    Location
    Santa Cruz, Cali, US
    MS-Off Ver
    Excel 2007
    Posts
    41

    Dashed Gridline

    Hi all please see the attached excel chart. I got it from here:
    http://www.databison.com/index.php/b...roup-in-chart/

    Link to excel sheet is at bottom of that page Ill post here as well: http://www.databison.com/wp-content/...p-in-chart.xls

    I'm trying to get the same gridline look. When I download his excel file and check the line style on his gridline it says "No Line" and I'm so confused, how did he get this look on his gridlines?

    Also: if you look at his chart in step 5 and compare it to step 6. In step 5 chart, if you select the bars then select one bar and change the fill, then there is like 2px overflow of the bar on the x-axis. But if you change the fill in his step 6 chart there is no overflow. I can't figure this one out either, please help.

    Thanks!
    Last edited by pg300; 11-02-2011 at 05:20 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Dashed Gridline

    Hello,

    the chart uses a pattern fill for the grid line. Pattern fills are available in Excel 2003, but no longer in later versions.

    If you can get your hands on Excel 2003 or earlier, you should be able to re-create the effect.

    cheers,

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Dashed Gridline

    I can't find any step numbers in the article. Can you pinpoint this more exactly? Again, it may be due to the change of the charting engine with Excel 2007. A LOT has changed with that version.

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

    Re: Dashed Gridline

    in xl2007 you can set the gridline to solid and pick your colour.
    On the line style tab change the dash type to Round or square dot.

    try setting the zoom to 100%. Do you still get the overflow?

    Not sure I like the fact that the base line for the column and area chart is a negative value.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    08-13-2011
    Location
    Santa Cruz, Cali, US
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Dashed Gridline

    Thanks so much. Is there some other way to apply that pattern fill? Because if I copy paste the chart to '07 it looks fine.

    Oh sorry the steps are in the xls document.

    Thanks Andy! I actually see the overflow only at 100% it doesn't show on others, that's weird do you know how I can fix that?
    Can you please show me how i can set the base line to 0. I've been trying that and haven't been able to get it.

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

    Re: Dashed Gridline

    ignore the pattern fill approach, unless you have xl2003. Instead use the dashed gridlines suggested.

    I don't see any overflow at 100%

    Format Y axis to have Automatic cross at point.
    Format X axis labels to be Low rather than Next to axis.

  7. #7
    Registered User
    Join Date
    08-13-2011
    Location
    Santa Cruz, Cali, US
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Dashed Gridline

    thanks andy and teylyn again!

    I'll try to set it to 0 on the axis right now thanks!

    Edit:
    So I tried out the 0 technique but I still have "-" as my cross point and I have overflow at 100% can you please see my excel file.
    Attached Files Attached Files

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

    Re: Dashed Gridline

    The '-' instead of zero is your number format.

    Your data set does not have negative values so do not worry about axis crossing.

    Add a border to the columns

  9. #9
    Registered User
    Join Date
    08-13-2011
    Location
    Santa Cruz, Cali, US
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Dashed Gridline

    Quote Originally Posted by teylyn View Post
    Hello,

    the chart uses a pattern fill for the grid line. Pattern fills are available in Excel 2003, but no longer in later versions.

    If you can get your hands on Excel 2003 or earlier, you should be able to re-create the effect.

    cheers,
    Quote Originally Posted by teylyn View Post
    I can't find any step numbers in the article. Can you pinpoint this more exactly? Again, it may be due to the change of the charting engine with Excel 2007. A LOT has changed with that version.
    Quote Originally Posted by Andy Pope View Post
    in xl2007 you can set the gridline to solid and pick your colour.
    On the line style tab change the dash type to Round or square dot.

    try setting the zoom to 100%. Do you still get the overflow?

    Not sure I like the fact that the base line for the column and area chart is a negative value.
    Quote Originally Posted by Andy Pope View Post
    The '-' instead of zero is your number format.

    Your data set does not have negative values so do not worry about axis crossing.

    Add a border to the columns
    Thanks again Andy. But I'm not able to get rid of that -. Even a "-" gets plotted in the data labels.
    Is it because the array formulas can't be a blank? If i delete the array formulas for the blank cells in "Monthly Average Profit" the data labels don't show "-", it just shows on the one wehre there is a number.

    But I still get the negative "-" instead of 0 at bottom left.

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

    Re: Dashed Gridline

    Number format for axis and cells,

    _(* #,##0_);_(* (#,##0);0;_(@_)

    instead of the current one, where zero is displayed as -
    _(* #,##0_);_(* (#,##0);_(* "-"??_);_(@_)

  11. #11
    Registered User
    Join Date
    08-13-2011
    Location
    Santa Cruz, Cali, US
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Dashed Gridline

    Quote Originally Posted by Andy Pope View Post
    Number format for axis and cells,

    _(* #,##0_);_(* (#,##0);0;_(@_)

    instead of the current one, where zero is displayed as -
    _(* #,##0_);_(* (#,##0);_(* "-"??_);_(@_)
    Oh wow! Thanks so much! I'll go learn about custom formats now.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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