Chart Height

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

Hi,

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

/* 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:

#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.