Group Abstract Group Abstract

Message Boards Message Boards

0
|
3K Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

[Solved] How to display a Barchart ChartLabels below the x-Axis with one group of data

Posted 2 years ago

Hello

The code below works as expected with 2 groups of data, `ChartLabels show up below the x-axis as expected

  BarChart[{{2, 3, 5}, {10, 20, 30}}, ChartLegends -> {"L1", "L2"}, 
  ChartLabels -> {Placed[{S1, S2}, Axis, Style[#, Bold, 12, Black] &], 
   None},
 LabelingFunction -> (Placed[Style[Row[{#}], Bold, Red], Above] &)]

But with one group of data only I am not able to add a `ChartLabels anymore below the single group on the X-axis (here S1). Nothing shows up.

BarChart[{2, 3, 5}, ChartLegends -> {"L1"}, 
ChartLabels -> {Placed[{S1}, Axis, Style[#, Bold, 12, Black] &], 
None},
LabelingFunction -> (Placed[Style[Row[{#}], Bold, Red], Above] &)]

What is the solution?

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard
Be respectful. Review our Community Guidelines to understand your role and responsibilities. Community Terms of Use