Thank you Indranil! This code pretty much does what I want/need it to! However, when I click on “click to render chart” the screen turns white and nothing is displayed. Do you know what could be the cause? Thank you!