I can't figure out how to get flot.pie to change the pie slice color, just the series color. Is this possible?
You need to specify the color as part of the data array.
So instead of
[1, 2, 3]
you do
[
{data: 1, color: '#f00'},
{data: 2, color: '#0f0'},
{data: 3, color: '#00f'}
]
You need to create multiple data series and set the color on each series. See the Flot Pie chart examples here: Flot Pie Chart
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With