Changing the link to the onChange prop causes the DOM to be recreated, although onChange does not affect the rendering of the chart