There are many legend/title overlapping import issues on the bug tracker. The only universal solution will be to teach the chart engine the concept of not allowing overlapping
legend/title and allow the importers to use this.
Awhile back Markus made some progress in this area. The basic work has already been done, but it has to be flushed out and extended with UNO API etc.