Close. The show()
function accesses width
which is an external variable updated by the Observable runtime. When fullscreen is triggered the width changes, causing a reevaluation of the show
cell and all dependent cells. As a result, the content of the mainChart
cell is destroyed and recreated.
2 Likes