Legend width should be calculated using font size. It will prevent overlapping in some scenarios.
Legend width should be calculated using font size. It will prevent overlapping in some scenarios.