Skip to content

Legend fitting

mbarto edited this page Sep 25, 2013 · 1 revision

Support for legend fitting (legend resized to fit a given rectangle) has been added, through 2 new config.yaml configuration properties (to be used in legend blocks).

The properties are:

  • fitWidth: width of the rectangle for fitting (defaults to 0, meaning no fit)
  • fitHeight: height of the rectangle for fitting (defaults to 0, meaning no fit)

Both properties or only one of them can be specified. When only one property is set, the other dimension is calculated to mantain the original aspect ratio for the legend.