In version 11.0.1 it appears that ColorFunction
is being ignored for BarChart
with grouped data.
With
dat = <|0 -> <|2007 -> 7, 2008 -> 8, 2009 -> 9, 2010 -> 10|>,
1 -> <|2007 -> 5, 2008 -> 6, 2009 -> 7, 2010 -> 8|>|>;
Then
BarChart[dat,
ChartLabels -> {Automatic, None},
ChartLayout -> "Stacked",
ChartLegends -> Automatic,
ColorFunction -> ColorData["DeepSeaColors"]]
All of the 2010 entries are not the same colour and the colours in the legend are not using the colours of ColorFunction
. Similarly for the other groups.
This seems like a bug. Any ideas for workarounds? Win 7 Pro
Confirmed bug: Have to figure out the case number as I am getting a couple of confirms at the moment but all on the same case number. It is one of these but three where responded with separate emails all from one case number so I can't tell which one it is. [CASE:3780234] [CASE:3780235] [CASE:3780239]
ChartStyle->"DeepSeaColors"
instead ofColorFunction
? $\endgroup$ColorData
as I am actually usingColorData[{"DeepSeaColors", "Reverse"}]
. I took that part out to make the question minimal. $\endgroup$ColorFunction
option, then the bars for the years are the same color. $\endgroup$