The newly announced Advanced Charts custom widget has much more power and flexibility which should solve most of your charting needs. You can control many of the details of the styling including the exact margins of the axes.
Having said that, this particular problem was solved a while ago for normal Grist charts, i.e. the margins are automatically adjusted. I’ve also made sure that the new advanced charts do the same by default.