How can I catch/intercept 'Download plot as a ...' event?

Hello guys,

I am working on a chart, it is a simple line chart but I am using two features on x axis, range selector and range slider. When I want to download the plot, clicking on the camera icon, these two elements are overlapping the chart so it is not clear at all. Is there a way to catch the download event so I can prepare a new chart without range selector and range slider and then download that resulting chart? Thanks in advance for any help.