It depends on where in your widget lifecycle you are trying to access the html elements sound like you are try to do something in the postcreate or something. See the widget lifecycle doc. Try moving your code to create the chart to the startup.
Widget life cycle—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
Moving it to startup() worked excellently, thank you!!
Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.