Button to display chart, fixing lifecycle issues with data streaming