Error content:
iterators/generators require regenerator-runtime, which is too heavyweight for this guide to allow them. Separately, loops should be avoided in favor of array iterations no-restricted-syntax
error code
for (let item of params){
str += `${item.seriesName} : ${item.value}%<br>`;
}
solution:
params.forEach((item:any) => {
str += `${item.seriesName} : ${item.value}%<br>`;
});