Chartjs-Force chart to redraw or update Chart.js

0๐Ÿ‘

  1. try
    Please tried as mentioned bellow.

var confirmadosChartData = this.confirmadosChartData;

than assign it value

confirmadosChartData [0][0] = data.Confirmadas; confirmadosChartData
[0][1] = data. Oportunidades;

re assign it.

this.confirmadosChartData =confirmadosChartData;

  1. First try to empty array and than assign the value.

this.confirmadosChartData = [] [];

const data: any = x.ResponseData;

this.confirmadosChartData[0][0] = data.Confirmadas;
this.confirmadosChartData[0][1] = data.Oportunidades;

Leave a comment