Chartjs-Update data from server for ChartJS graph

0๐Ÿ‘

โœ…

I find solution by doing that :

[datasets]="[
                {
                    data: [ graphikElec[0],
                            graphikElec[1],
                            graphikElec[2],
                            graphikElec[3],
                            graphikElec[4],
                            graphikElec[5],
                            graphikElec[6],
                            graphikElec[7],
                            graphikElec[8],
                            graphikElec[9]
                          ],
                          label: 'kWh'
                },

Leave a comment