Fix line chart legend x offset when position set to "top" or "inside"