I find in grafana/public/sass/components/_panel_graph.scss I can change the height percentage of legend.
now I can show all legend and keep the chart at a suitable ratio. like this:
Two years later, is there any way to do this other than modifying the source? The only way I can show the whole legend (with several series) for my plot is to make the actual plot area far larger than it should be.