+ Reply to Thread
Results 1 to 2 of 2

Coloring Radial Pie Chart Slices Based on a Column's Format

  1. #1
    Registered User
    Join Date
    09-21-2016
    Location
    San Francisco
    MS-Off Ver
    2010
    Posts
    13

    Coloring Radial Pie Chart Slices Based on a Column's Format

    I have a radial pie chart created using this tutorial: https://superuser.com/questions/6870...ie-radar-chart

    I would like to color each of the sectors based on the colors in a column that is not used in the chart yet. For example, in the above example, it would be as if I had a separate column that is in the worksheet, and the values in that column are conditionally formatted.

    I found this thread (https://stackoverflow.com/questions/...0921818c683394) that is close, but it doesn't work for my particular type of chart, as each segment is a different SERIES.

    Is there anyway to do this??

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Re: Coloring Radial Pie Chart Slices Based on a Column's Format

    This will give you a start.

    I coloured a cell (A2) yellow. Then I made this code.

    Then I selected a cell other than A2, and ran this code.

    Sub colourme()
    With Selection.Interior
    .Pattern = Range("A2").Interior.Pattern
    .PatternColorIndex = xlAutomatic
    .Color = Range("A2").Interior.Color
    .TintAndShade = Range("A2").Interior.TintAndShade
    .PatternTintAndShade = Range("A2").Interior.PatternTintAndShade
    End With
    End Sub

    Now you probably only need the color property for a graph, but this should give you the basic idea.

+ 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. Sort pie chart slices
    By Jewelrose in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-04-2021, 10:25 AM
  2. Pie Chart Showing (some) Slices with Zero Value
    By sherylt13 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-13-2015, 06:48 AM
  3. Hide or delete a single division line in a radial chart
    By jdavid10 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-13-2013, 07:53 PM
  4. Waterfall Chart with automatic coloring and text coloring
    By amartino44 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-19-2013, 05:54 PM
  5. [SOLVED] Changing Pie chart slices' format dependant on the label
    By bigtrev2 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-15-2012, 07:39 AM
  6. Re-order pie chart slices
    By dalewms2 in forum Excel General
    Replies: 2
    Last Post: 10-08-2011, 08:06 AM
  7. [SOLVED] Pie chart slices too thin
    By Fred Smith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2006, 12:35 AM

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