I have tried to no avail. Is there anyway to pass in labels for a pie chart using ChartJS? Here's an example https://puu.sh/ELcIb/61faa5f27e.png I pass in an array of columns 'answer' and 'responses' The hover tip always shows "responses: 49" as an example. But I want it to show the answer or label so '7151A: 49' for example. Is there anyway to make the pie and donut chart use the first column key as the label?
Here's what I'm passing in as an example:
array:23 [▼
0 => array:2 [▼
"answer" => "7088B"
"responses" => 1
]
1 => array:2 [▼
"answer" => "7089B"
"responses" => 4
]
2 => array:2 [▼
"answer" => "7093B"
"responses" => 1
]