This is the html element on the page
I use a button press to display the chart by running the Javascript off the button press…other ways to trigger javascript too
Here is the javascript