-1

I have passed the variable Apexcharts name Managerslt which is type of array. But nothing is going to happen after running the code.

series: [{
    name: 'Favouritism',
    data: [managerslt]
        },

1 Answers1

0

If your variable managerslt is an array, you don't need to include it in another array.

var managerslt = [23, 34, 12, 54, 32]

series: [{
  name: 'Favouritism',
  data: managerslt
}]

Read more how to structure your data here - https://apexcharts.com/docs/series/

junedchhipa
  • 4,694
  • 1
  • 28
  • 28