width property

dynamic width
getter/setter pair

The width of the legend box. If a number is set, it translates to pixels. Since v7.0.2 it allows setting a percent string of the full chart width, for example 40%.

Defaults to the full chart width for legends below or above the chart, half the chart width for legends to the left and right.

API Docs: https://api.highcharts.com/highcharts/legend.width

Implementation

dynamic width;