Generates an empty space, measured in pixels, around the legend.
Number
Object
When set to a number, this option applies to all the legend's sides. The object allows you to control each side individually.
Specifies the legend's bottom margin in pixels.
Specifies the legend's left margin in pixels.
Specifies the legend's right margin in pixels.
Specifies the legend's top margin in pixels.