Is there a way I can code the following excel bar chart into Mathematica. Is there any guidebook I can follow? I’m struggling displaying multiple data sets into one figure and filling in the bar with different pattern as such:

enter image description here

  • $\begingroup$ Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Take the tour and check the faqs! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, [by clicking the checkmark sign](tinyurl.com/4srwe26 $\endgroup$
    – Dunlop
    Commented Mar 11, 2020 at 5:00
  • $\begingroup$ Have you checked out the help for BarChart[], there are plenty of examples there that can help you do exactly this? $\endgroup$
    – Dunlop
    Commented Mar 11, 2020 at 5:02
  • $\begingroup$ reference.wolfram.com/language/ref/BarChart.html $\endgroup$
    – Rom38
    Commented Mar 11, 2020 at 5:49
  • $\begingroup$ I think one can do better than reproducing charts from Excel. Depending on what aspects you want compared (Series within populations? Populations within series?), you might consider "dot plots". Posts by @NickCox are very useful: stats.stackexchange.com/questions/149138/… and stats.stackexchange.com/questions/182096/…. $\endgroup$
    – JimB
    Commented Mar 11, 2020 at 19:42
  • $\begingroup$ Can you provide your data and what you have (probably) tried - so maybe we can help and improve it. $\endgroup$
    – mgamer
    Commented Mar 11, 2020 at 20:36

1 Answer 1


If you have version 12.1, you can use PatternFilling and HatchFilling in ChartStyle option setting:

data = RandomReal[10, {5, 3}];

 ChartStyle -> {Directive[Red, HatchFilling[45 Degree, 3, 5]], 
   PatternFilling[{"DiamondBox", Green}, ImageScaled[1/30]], 
   Directive[Blue, HatchFilling[135 Degree, 3, 5]]}, 
 ChartLegends -> {"A", "B", "C"}, 
 LegendAppearance -> {"LegendMarkerSize" -> 30}, ImageSize -> Large]

enter image description here

Note: See also this answer and this answer by Sjoerd C.de Vries


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.