For the first question, the solution is to add the following configuration from highcharter in the graph generation code:
hc_plotOptions (
series = list (animation = FALSE)
)%>%
Now we are missing the second question, which I consider to be specifically a knitr problem. I hope more people in the community have been able to solve.