Can I automatically adjust a histogram?

You can do that in darktable as well, with the levels module or the exposure one.