I believe the intended use of chart code is to dynamically generate HTML code based on selections, but unfortunately this is not working. 