4

Bug introduced in version 11.0


Using simple cuboids in BarChart3D results in flipped colours for negative bars. Any ideas how to fix this simply?

cuboid = Graphics3D[Cuboid[{0, 0, 0}, {1, 1, 1}],
   Boxed -> False, ImageSize -> 30, ViewPoint -> {1.3, -2.4, 2},
   ViewVertical -> {0, 0, 1}];

enter image description here

BarChart3D[{1, 2, -3, 4}, ChartStyle -> {Red, Green, Red, Yellow},
 ChartElements -> cuboid, ViewPoint -> {-1, -2, 0.5}]

enter image description here

The reversed shadows really mess up the roundedCuboids.

BarChart3D[{1, 2, -3, 4}, ChartStyle -> {Red, Green, Red, Yellow},
 ChartElements -> Graphics3D[{roundedCuboid[{0, 0, 0}, {1, 1, 1}, 1/8]}],
 ViewPoint -> {-1, -2, 0.5}]

enter image description here

Created using Mathematica 11.0.1 on Windows 10.

Chris Degnen
  • 30,927
  • 2
  • 54
  • 108

0 Answers0