# Chart Height

**URL:** <https://forums.knack.com/t/chart-height/20660>\
**Category:** Get Answers\
**Created:** [November 27, 2026, 10:45pm UTC](https://forums.knack.com/t/chart-height/20660 "2026-11-27T22:45:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjdacey1965](https://avatars.discourse-cdn.com/v4/letter/c/7ab992/32.png) [@cjdacey1965](https://forums.knack.com/u/cjdacey1965)\
**Post date:** [November 27, 2026, 10:45pm UTC](https://forums.knack.com/t/chart-height/20660/1 "2026-11-27T22:45:33Z")

</div>

Hi, I’m wondering if anyone has a solution to fixing chart height. All my charts seem to tall,a nd I would like to fix the height, but not having luck using the AI.

Thanks

---

<div class="post-metadata">

**Author:** ![ivan](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/ivan/32/1019_2.png) [@ivan](https://forums.knack.com/u/ivan)\
**Post date:** [November 28, 2026, 1:11am UTC](https://forums.knack.com/t/chart-height/20660/2 "2026-11-28T01:11:50Z")

</div>

Hi,

This CSS worked for me in a Next-Gen app (App Settings \> API & Code \> CSS, with the toggle on):

```css
/* all charts */
.kn-page [data-chart] {
  aspect-ratio: auto !important;
  min-height: 0 !important;
  height: 300px !important;
}

```

To change only one chart, put its view id in front:

```css
#view_123 [data-chart] {
  aspect-ratio: auto !important;
  min-height: 0 !important;
  height: 250px !important;
}

```

I tested it on a column chart and a pie chart. Both were set to a 16:9 ratio by default, and the column chart also had a 400px minimum height, so the CSS turns both off.

Change the height to whatever you need.
