Trying to set the colour of each slice of the pie chart via the dataTable.addRow
Using the following code this should work apparently:
//[...]
dataTable.addColumn({type: 'string', role: 'style'});
dataTable.addRow([graphData[i], parseFloat(graphData[i + 1]), 'color: #000000; fill-color:#000000'
//[...]
As per the style section found here: https://developers.google.com/chart/interactive/docs/roles#what-roles-are-available
Does anyone have any examples of doing this with a pie chart?
Cheers,