0
The data
you supply in
datasets: [
{
label: "Donors",
data: information,
}
]
ie. information
is a number[]
, an array of numbers. Your SQL query returns a JSON
object. So you will need to include only the numerical values from individual objects. You can use .map()
for this. Include all the fields except the donorName
Source:stackexchange.com