Using legacy function: getChartFromId(DOMId)
The above sample showcases how to using legacy function. Click here to know more on how the code of this example works.