# Grouped Bar Chart, grouping cut off with Observable Plot

**URL:** <https://talk.observablehq.com/t/grouped-bar-chart-grouping-cut-off-with-observable-plot/10030>\
**Category:** Help\
**Created:** [November 23, 2024, 6:15pm UTC](https://talk.observablehq.com/t/grouped-bar-chart-grouping-cut-off-with-observable-plot/10030 "2024-11-23T18:15:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m-clare](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/m-clare/32/8633_2.png) [@m-clare](https://talk.observablehq.com/u/m-clare)\
**Post date:** [November 23, 2024, 6:15pm UTC](https://talk.observablehq.com/t/grouped-bar-chart-grouping-cut-off-with-observable-plot/10030/1 "2024-11-23T18:15:09Z")

</div>

I’m trying to use Observable Plot for a grouped bar chart, but I’m having a hard time with getting cut off values on the groups for the Y axis.

This is my original code:

```auto
Plot.plot({
  y: {axis: null, type: "band"},
  x: {tickFormat: "s", grid: true},
  color: {scheme: "cool", legend: true, type: "ordinal"},
  marks: [
    Plot.barX(complaintsByBorough, {
      y: "borough",
      x: "count",
      fill: "borough",
      fy: "complaintCategory",
      sort: {y: "y"}
    }),
    Plot.ruleX([0]),
  ],
})

```

And I’m getting this:

 ![Screenshot 2024-11-23 at 10.01.12 AM](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/2/2c644a242fb873284440ad6c221668a5a9bd7c8a.png)

I know this has something to do with the y-axis settings, but it seems like certain things are turned on, even with “axis”: null, because when I remove `y: {axis: null, type: “band”}, I get this:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/8/8a1f8599b9875505c32cb6cab5f14b2074a49c16.jpeg)

I’d like the axis labels to either be not cut off, and still anchored at the end, _or_ I’d like for the axis labels to be anchored at the start, but only the grouping labels rather than each individual bar.
