+ Reply to Thread
Results 1 to 3 of 3

color fill a curve to the Y-axis

  1. #1
    Registered User
    Join Date
    12-14-2013
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    4

    color fill a curve to the Y-axis

    2016-11-29_172330.jpg

    Hi,

    I have a curve that needs plotting in Y-direction (coded in vba), and I need to color-fill the positive x-axis values and leave negative values with no color fill. The chart area as far as I tried, fills the area "below" a curve, not toward left/right hand side of the curve.

    Does anyone have a clue how I may do this?

    Thanks
    Nasser

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: color fill a curve to the Y-axis

    This page has a VBA procedure that will fill to the left between and XY scatter series and the Y axis http://peltiertech.com/Excel/Charts/VBAdraw.html I expect that it could be modified to fill left and right for a series that crosses the Y axis like yours.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    12-14-2013
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: color fill a curve to the Y-axis

    Quote Originally Posted by MrShorty View Post
    This page has a VBA procedure that will fill to the left between and XY scatter series and the Y axis http://peltiertech.com/Excel/Charts/VBAdraw.html I expect that it could be modified to fill left and right for a series that crosses the Y axis like yours.
    This is a possible solution. It works, but it's painfully slow, making it almost useless. For my plot, I had to wait for about a minutes to create the shading!

+ 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. Delete CF fill color, replace with regular fill color. Short code, can't figure it out!
    By excelfriend1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-11-2016, 09:03 PM
  2. [SOLVED] How to fill color cells based on another cell's fill color?
    By putritersenyum in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-22-2016, 08:58 AM
  3. [SOLVED] Click oval option button to fill/unfill color, also change border color to match fill
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2015, 08:29 PM
  4. [SOLVED] Problems with X axis in a bell curve
    By grey novice in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-29-2014, 01:02 PM
  5. [SOLVED]Fill Color (highlight cells) but not to print fill color
    By itszille in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-24-2012, 05:37 PM
  6. need help in scatter curve axis numbering
    By adam123 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-04-2012, 05:45 AM
  7. [SOLVED] How do I change the scale of logrithmic curve on the x-axis?
    By les in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-08-2005, 02:05 PM

Tags for this Thread

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