• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

How to define a data series color based on a value in a stacked column chart?|Dashboards & Charts|Excel Forum|My Online Training Hub

You are here: Home / How to define a data series color based on a value in a stacked column chart?|Dashboards & Charts|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumDashboards & ChartsHow to define a data series color b…
sp_PrintTopic sp_TopicIcon
How to define a data series color based on a value in a stacked column chart?
Avatar
Alan Ramsay
Member
Members
Level 0
Forum Posts: 79
Member Since:
April 23, 2015
sp_UserOfflineSmall Offline
1
March 27, 2019 - 7:22 am
sp_Permalink sp_Print

Hi there,

I am trying to come up with a "simple" way to create a stacked column chart that automatically colors individual data series based on a common value.  This is the Yamazumi chart format that you may have heard of from Kaizen / Lean processes.

In the example file I have attached you can see the simple data set I have in columns A and B, the first chart is generated from the data in column B, I need the final chart to look like the mock up I have in column P - where the data series points from column B are commonly colored based on the common value they have defined in column A.

I hope this makes sense - please help!

Alan

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
2
March 27, 2019 - 9:07 am
sp_Permalink sp_Print

Hi Alan

There is no attachment.

Avatar
Alan Ramsay
Member
Members
Level 0
Forum Posts: 79
Member Since:
April 23, 2015
sp_UserOfflineSmall Offline
3
March 27, 2019 - 9:29 pm
sp_Permalink sp_Print

Hi there, thanks for pointing that out!  I have added it now I hope - would appreciate any advice you can give me.

Alan

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4438
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
March 29, 2019 - 8:48 am
sp_Permalink sp_Print

Hi Alan,

It can't be done automatically. You'd have to select each segment of the chart and manually set the colour.

I can't suggest an alternate chart because 'm not sure what you're trying to represent. Each 'duration' is a discrete amount of time. It's not clear from the data that it relates to the previous period of time or even the previous category. Your vertical axis implies that the time is contiguous and I'm not sure that's the case and this makes me question whether this is the correct representation of the data.

What message are you trying to convey?

Mynda

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
5
March 29, 2019 - 11:33 am
sp_Permalink sp_Print

Hi Alan

You can try this macro to change the color of the series.

You will need to select the chart first before running the macro.

Hope this helps.

Sunny

Avatar
Alan Ramsay
Member
Members
Level 0
Forum Posts: 79
Member Since:
April 23, 2015
sp_UserOfflineSmall Offline
6
March 29, 2019 - 10:09 pm
sp_Permalink sp_Print

Hi Mynda/Sunny,

Thank you both for your help.  Sunny the macro worked a treat, thanks for that.

Mynda, I apologize for the lack of clarity in my definitions / questions, hopefully I can explain the desired output better here.  The chart is known as a "Yamazumi" chart, its not a specific excel chart type more like a concept that is part of the Lean kaizen process that businesses can adopt to analyze processes and drive out waste.  Each data series represents the time taken to do one step in a given process, each of these process steps is given a designation, VA - value added, I - Incidental, NVA - Non-Value Add.  The chart shows duration on the y-axis shows the time taken for each individual step, (series), and is cumulative.  So although we have all the steps or the process as individual data series, those steps/series are grouped by the designation, (NA, I, NVA).  We need to show each of those designations in a common color to highlight where there is waste in the process, (waste is defined as NVA).

I hope that makes some sense, the attached file has some information that might help - three tabs:

Orig Example - the file I sent originally

Picture Example - taken from a slide show that helps explain the Yamazumi "chart"

Basic Template - a very simple template example of the Yamazumi chart

Given all of the above is there any way the coloring of the designations can we done automatically using existing excel functions?

Thanks for all the time,

Alan

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4438
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
7
March 31, 2019 - 6:04 pm
sp_Permalink sp_Print

Hi Alan,

Thanks for explaining the objective of the chart. I've given it some thought and I think your best option is the stacked column chart and the macro Sunny wrote to colour the segments as required.

Unfortunately the stacked column chart will apply a unique colour to each layer and changing the layout of the source data won't alter that. I considered an area chart and treemap, but they also apply unique colours to each series.

Mynda

Avatar
Alan Ramsay
Member
Members
Level 0
Forum Posts: 79
Member Since:
April 23, 2015
sp_UserOfflineSmall Offline
8
April 2, 2019 - 9:12 pm
sp_Permalink sp_Print

Many thanks for taking the time to consider the requirement Mynda, sometimes its just as important to know something can't be (easily), done.  I'll work with Sunny's macro as you suggested.

Cheers,
Alan

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
9
April 3, 2019 - 1:25 pm
sp_Permalink sp_Print

Actually when I saw the 1st post, the first thing that came to my mind was to use Conditional Formatting as it will allow me to check the category in column a and format another column with the respective color and then adjusting the row height to keep the scale of the "chart" (big challenge).

Since I have spent quite some time on it I might as well share it. Maybe it may be of use for others and to be improved upon.

To "auto" adjust the row height, just select all rows and double click the row.

I have placed the "fake" chart beside the real one for comparison purpose (without the axis of course as it had none)

Sunny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Jessica Stewart, Mark Carlson, Calvin Richardson
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
yashal minahil
Oluwadamilola Ogun
Yannik H
dectator mang
Francis Drouillard
Orlando Inocente
Jovitha Clemence
Maloxat Axmatovna
Ricardo Freitas
Marko Meglic
Forum Stats:
Groups: 3
Forums: 24
Topics: 6201
Posts: 27185

 

Member Stats:
Guest Posters: 49
Members: 31861
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.