novus/nvd3 — pull request #232 by tklun (2013-08-23 02:22:02+00:00)
Title: Allows for pie chart colors to be set through data. Fixes #224.

This commit allows for colors to be set through the data. It follows the same pattern that has been used in multiple other NVD3 modules, such as [legend.js](https://github.com/novus/nvd3/blob/master/src/models/legend.js#L62) and [sparkline.js](https://github.com/novus/nvd3/blob/master/src/models/sparkline.js#L61). Pie charts nest their data differently; using `d.data` is common throughout the [pie.js](https://github.com/novus/nvd3/blob/master/src/models/pie.js#L91) file.

This example has been test successfully in both `examples/pie.html` and `examples/pieChart.html`. The color data can be set in the following way:

```
{
key: "One",
y: 5,
color: "#ffff00"
}
```