I noticed that the chart editor demo does not yet allow to set the legend border style and width.
Since this addition will not make it to the official ChartEditor demo, I attached the ChartEditor demo with this patch here for those who might need this as well.
I also attached the screenshot of how the dialogs look with this addition.