There are two solutions:
Method 1: Select the line inserted into the chart in word, click the paragraph under the Format menu, select indentation and spacing in the paragraph dialog box, and set the line spacing to single-line spacing.
Method 2: After inserting the chart, click on the chart and the Picture toolbox will appear, where you can change the "text wrapping" mode of the chart from "embedded" to non-embedded (such as "wrapping").