Estoy trabajando con gráficos de Google por primera vez y no tengo idea de los errores de esta biblioteca. Por favor guíame donde estoy equivocado.
let initFlag = (this.leaderBoardData == null) ? true : false; let chartData = leaderBoardData; if (!this.resize) { for (var data of chartData) { let strLen = 14; let uname = data.username; let title = (uname.length > strLen) ? uname.substring(0, strLen) + '...' : uname; let value = data.socialPoint; let color = data.colorCode; let tooltipValue = data.userName + '\n Count: ' + value; this.usageData.push([title, value, color, value, tooltipValue]); } } let gcData = new google.visualization.DataTable(); if (initFlag) { gcData.addColumn('string', 'Dealer Name'); gcData.addColumn('number', 'Count'); gcData.addColumn({ type: 'string', role: "style" }); gcData.addColumn({ type: 'number', role: "annotation" }); gcData.addColumn({ type: 'string', role: 'tooltip' }); } gcData.addRows(this.usageData);Respuesta de la consola
¡Cualquier solución apreciada!