Custom Dashlet with bar chart

Hi sugar developers,

Thanks for looking on my issues I am facing.

I have created custom dashlet. I can able to get data from API query and then show it to dashlet in table format. which works fine.

But now I want to show same thing in Bar/multibarchart ....I have written the javascript code based on sugarcrm code which uses sucrose library to generate multibarChart. code is as below and the error I am getting.

Please help me find the issue or direction to make sucrose.charts.multibarChart() work on custom dashlet.

working custom dashlet screenshot with table