+ Reply to Thread
Results 1 to 3 of 3

How Do I Make a Same Color Pie Chart that gets Lighter as the amounts descend

  1. #1
    Registered User
    Join Date
    03-18-2015
    Location
    Cincinnati, Ohio
    MS-Off Ver
    2010
    Posts
    10

    How Do I Make a Same Color Pie Chart that gets Lighter as the amounts descend

    I know i can use the monochromatic options but those are all pre-selected colors and i need to use red...Please help!

    Attached is example i just slapped together manually changing the colors 1 slice at a time.
    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: How Do I Make a Same Color Pie Chart that gets Lighter as the amounts descend

    I'm posting to get this on my subscribed list so I can follow-up tomorrow with an explanation. I actually want to modify it so you can use Green or Blue as well and possibly even a red to green scheme. Too close to quitting time now .
    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.

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

    Re: How Do I Make a Same Color Pie Chart that gets Lighter as the amounts descend

    Here is the spreadsheet and how it works.

    Select the color using the drop-down list in Cell V1.

    Select the maximum value. This needs a bit of an explanation. If you select 1, since we are working with percents, 100% will be the most intense color and 0% will be no color at all. Other colors will fade from darkest to lightest. However, when you have a lot of percentages, the biggest of them is rather small and the colors fade from light to lightest since, as in the example, you are a quarter of the way down the scale already.

    If you pick a maximum close to the maximum in the data then the program "rescales" the values so that internally, the biggest percent is treated as 100% and you get a better range of colors.

    Play with this to suit your tastes. It turns out that the blue in very dark and makes it difficult to read the text. I tried 0.5 as a value and it looks nice.

    If you select a number lower than the maximum, you will get a narrower range of colors on the darker side.

    A word of warning: the code expects the chart to be on the same sheet with the button and for it to be the first chart on the sheet (or what Excel thinks the first chart is). So if you have multiple pages, you can add a button assigned to the macro on each page.
    Attached Files Attached Files
    Last edited by dflak; 09-29-2017 at 10:19 AM. Reason: Add attachement

+ 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. Replies: 5
    Last Post: 11-12-2015, 04:43 PM
  2. [SOLVED] How to make some Chart TickLabels in black color?
    By HerryMarkowitz in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 08-24-2015, 05:31 AM
  3. Macros color cells to make something as gantt chart
    By karbidas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-22-2014, 09:22 AM
  4. make chart label color same color as data point
    By desertsp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2013, 05:02 PM
  5. Replies: 4
    Last Post: 07-05-2006, 11:10 AM
  6. [SOLVED] how to get lighter shade of gray for interior color of a cell?
    By Rich in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-21-2006, 12:45 AM
  7. is there a way for the cpu to work lighter with this macro?
    By bondcrash in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2005, 05:53 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