+ Reply to Thread
Results 1 to 3 of 3

Line chart with changing colours depending on values

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    81

    Line chart with changing colours depending on values

    Hi,

    I am looking to create a line graph with based on returns from stocks. Is there a way to make the line change colours depending if the returns begin to go negative? Is this something that is possible?

    Thanks

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,691

    Re: Line chart with changing colours depending on values

    I only know of one way to do this (although other people may have other ideas). You have one set of data that is the returns. From that set you create two other parallel sets, one for the positive values, one for the negative. Then you create two lines, one black for positive and one red for negative. When you plot the data it will look like a single line that turns red when it goes negative.

    If you post a workbook with some sample data I can provide a more detailed answer.

    Positive negative chart.png
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-23-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Line chart with changing colours depending on values

    Hey sorry for the very delayed Reply! That worked perfectly for what I needed! Thanks again!

+ 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. Different Colours on same Line Chart?
    By badmnton in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 11-24-2014, 06:33 PM
  2. [SOLVED] Changing line colours in multi listbox
    By molesy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-23-2014, 03:06 PM
  3. Line Graph colours changing when using Select Data
    By budvegas in forum Excel General
    Replies: 2
    Last Post: 10-04-2010, 06:34 AM
  4. Replies: 3
    Last Post: 10-02-2008, 06:45 AM
  5. Changing colours in chart
    By witzman in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-31-2005, 01:58 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